| 1 |
.vector-pinnable-header { |
| 2 |
padding-bottom: @padding-vertical-dropdown-menu-item; |
| 3 |
margin-bottom: @padding-vertical-dropdown-menu-item; |
| 4 |
border-bottom: @border-width-base @border-style-base @border-color-content-box; |
| 5 |
// Line height helps space label & button when spanning multiple lines, |
| 6 |
// while still keeping them vertically centered when on one line. |
| 7 |
line-height: @line-height-medium; |
| 8 |
} |
| 9 |
|
| 10 |
.vector-pinnable-header-label { |
| 11 |
display: inline-block; |
| 12 |
vertical-align: middle; |
| 13 |
font-size: @font-size-dropdown; |
| 14 |
// Override h2 styles in the case of the TOC |
| 15 |
margin: 0 @size-50 0 0 !important; /* stylelint-disable-line declaration-no-important */ |
| 16 |
padding: 0; |
| 17 |
border: 0; |
| 18 |
font-weight: bold; |
| 19 |
} |
| 20 |
|
| 21 |
// Styles for the "move to sidebar/hide" buttons, hidden by default. |
| 22 |
.vector-pinnable-header-toggle-button { |
| 23 |
display: none; |
| 24 |
border: 0; |
| 25 |
padding: @spacing-25 @spacing-50; |
| 26 |
background-color: @background-color-interactive; |
| 27 |
color: @color-base; |
| 28 |
cursor: pointer; |
| 29 |
text-align: left; |
| 30 |
font-size: unit( 12 / @font-size-browser, rem ); |
| 31 |
border-radius: @border-radius-base; |
| 32 |
|
| 33 |
&:hover { |
| 34 |
background-color: @background-color-secondary--modern; |
| 35 |
} |
| 36 |
} |
| 37 |
|
| 38 |
// Pinnable behavior is only enabled when JS is enabled and on larger viewports |
| 39 |
@media ( min-width: @min-width-breakpoint-desktop ) { |
| 40 |
.client-js { |
| 41 |
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button, |
| 42 |
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button { |
| 43 |
display: inline-block; |
| 44 |
} |
| 45 |
} |
| 46 |
} |