2023-05-04 17:23:34 +00:00
|
|
|
.vector-pinnable-header {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2023-04-19 15:35:48 +00:00
|
|
|
.vector-pinnable-header-label {
|
|
|
|
display: inline-block;
|
2023-05-04 17:23:34 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
font-size: @font-size-dropdown;
|
|
|
|
margin: 0 @size-50 0 0;
|
2023-04-19 15:35:48 +00:00
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
2023-05-04 17:23:34 +00:00
|
|
|
font-weight: bold;
|
2023-04-19 15:35:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Styles for the "move to sidebar/hide" buttons, hidden by default.
|
|
|
|
.vector-pinnable-header-toggle-button {
|
|
|
|
display: none;
|
|
|
|
border: 0;
|
2023-05-04 17:23:34 +00:00
|
|
|
padding: @spacing-25 @spacing-50;
|
|
|
|
background-color: @background-color-interactive;
|
|
|
|
color: @color-base;
|
2023-04-19 15:35:48 +00:00
|
|
|
cursor: pointer;
|
|
|
|
text-align: left;
|
2023-05-04 17:23:34 +00:00
|
|
|
font-size: unit( 12 / @font-size-browser, rem );
|
|
|
|
border-radius: @border-radius-base;
|
2023-04-19 15:35:48 +00:00
|
|
|
|
|
|
|
&:hover {
|
2023-05-04 17:23:34 +00:00
|
|
|
background-color: @background-color-secondary--modern;
|
2023-04-19 15:35:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pinnable behavior is only enabled when JS is enabled and on larger viewports
|
|
|
|
@media ( min-width: @min-width-desktop ) {
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-js {
|
2023-04-19 15:35:48 +00:00
|
|
|
.vector-pinnable-header-unpinned .vector-pinnable-header-pin-button,
|
|
|
|
.vector-pinnable-header-pinned .vector-pinnable-header-unpin-button {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|