mediawiki-skins-Vector/resources/skins.vector.zebra.styles/components/PinnableHeader.less
Jan Drewniak bd05ff4ae5 Add initial Zebra design update for page layout
Implements the zebra design update via the
skins.vector.zebra.styles module.

Refactors:
- Moves common variable and mixin imports from
individual files to skin.less file.
- Applies font-sizes to menu containers instead
of individual menu links.
- Adds mixins for dropdown and content-box styles.
- Unifies padding for pinned and unpinned menu states
  (including TOC).

Bug: T332600
Change-Id: I3d49095d84fa205cb5dcc889574133f42f1fd4ea
2023-04-21 11:02:56 -05:00

44 lines
947 B
Plaintext

.vector-pinnable-header-label {
display: inline-block;
color: @color-base--subtle;
font-size: unit( 14 / @font-size-browser, rem );
margin: 0;
padding: 0;
border: 0;
}
// Styles for the "move to sidebar/hide" buttons, hidden by default.
.vector-pinnable-header-toggle-button {
display: none;
border: 0;
padding: 0;
background-color: transparent;
color: @color-primary;
cursor: pointer;
text-align: left;
&:hover {
color: @color-primary--hover;
}
&::before {
content: '@{msg-brackets-start}';
color: @color-base--subtle;
}
&::after {
content: '@{msg-brackets-end}';
color: @color-base--subtle;
}
}
// Pinnable behavior is only enabled when JS is enabled and on larger viewports
@media ( min-width: @min-width-desktop ) {
&.client-js {
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button,
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button {
display: inline-block;
}
}
}