2022-10-19 20:43:40 +00:00
|
|
|
.vector-pinnable-header {
|
2024-01-09 14:46:11 +00:00
|
|
|
padding-bottom: @padding-vertical-dropdown-menu-item;
|
|
|
|
margin-bottom: @padding-vertical-dropdown-menu-item;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-content-box;
|
|
|
|
// Line height helps space label & button when spanning multiple lines,
|
|
|
|
// while still keeping them vertically centered when on one line.
|
|
|
|
line-height: @line-height-medium;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.vector-pinnable-header-label {
|
|
|
|
display: inline-block;
|
2024-01-09 14:46:11 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
font-size: @font-size-dropdown;
|
2024-01-11 16:30:33 +00:00
|
|
|
// Override h2 styles in the case of the TOC
|
|
|
|
margin: 0 @size-50 0 0 !important; /* stylelint-disable-line declaration-no-important */
|
2022-10-19 20:43:40 +00:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2024-01-09 14:46:11 +00:00
|
|
|
font-weight: bold;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Styles for the "move to sidebar/hide" buttons, hidden by default.
|
|
|
|
.vector-pinnable-header-toggle-button {
|
|
|
|
display: none;
|
|
|
|
border: 0;
|
2024-01-09 14:46:11 +00:00
|
|
|
padding: @spacing-25 @spacing-50;
|
|
|
|
background-color: @background-color-interactive;
|
|
|
|
color: @color-base;
|
2022-10-19 20:43:40 +00:00
|
|
|
cursor: pointer;
|
2023-04-17 20:09:05 +00:00
|
|
|
text-align: left;
|
2024-01-09 14:46:11 +00:00
|
|
|
font-size: unit( 12 / @font-size-browser, rem );
|
|
|
|
border-radius: @border-radius-base;
|
2022-10-19 20:43:40 +00:00
|
|
|
|
|
|
|
&:hover {
|
2024-01-09 14:46:11 +00:00
|
|
|
background-color: @background-color-secondary--modern;
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-13 19:24:14 +00:00
|
|
|
// Pinnable behavior is only enabled when JS is enabled and on larger viewports
|
2023-10-19 07:10:22 +00:00
|
|
|
@media ( min-width: @min-width-breakpoint-desktop ) {
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-js {
|
2023-03-13 19:24:14 +00:00
|
|
|
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button,
|
|
|
|
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2022-11-21 20:46:04 +00:00
|
|
|
}
|
2022-10-19 20:43:40 +00:00
|
|
|
}
|