2023-01-11 14:52:45 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
|
2022-12-19 16:27:54 +00:00
|
|
|
.vector-pinned-container .vector-pinnable-element {
|
|
|
|
// Make the heading border line up with the edge of the text
|
|
|
|
// (Whereas in a dropdown, the border lines up with the edge of the dropdown container).
|
|
|
|
.vector-pinnable-header,
|
|
|
|
.vector-menu-heading,
|
2023-01-06 17:07:29 +00:00
|
|
|
.mw-list-item a {
|
2022-12-19 16:27:54 +00:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: 0;
|
2022-11-28 21:08:40 +00:00
|
|
|
}
|
|
|
|
}
|
2023-01-11 14:52:45 +00:00
|
|
|
|
|
|
|
/**
|
2023-03-13 20:52:45 +00:00
|
|
|
* At lower resolutions, we want to hide the pinned containers when JS is enabled since these
|
2023-01-11 14:52:45 +00:00
|
|
|
* elements collapse (become unpinned) at this resolution via PinnableElement.js.
|
|
|
|
* Although this is handled in JS, this rule prevents the pinned menu from
|
|
|
|
* appearing on pageload, at low resolutions, before the JS kicks in.
|
2023-03-13 20:52:45 +00:00
|
|
|
*
|
|
|
|
* When JS is disabled, we still want to hide the pinned containers at lower resolutions
|
|
|
|
* to fallback to the gradeC, single column layout.
|
2023-01-11 14:52:45 +00:00
|
|
|
*/
|
2023-01-13 22:18:20 +00:00
|
|
|
@media ( max-width: @max-width-tablet ) {
|
2023-03-13 20:52:45 +00:00
|
|
|
// .client-js and .client-nojs selectors needed to increase specificity to override gradeC.less
|
|
|
|
// Prefered to using !important as this still needs to be overridable to handle
|
|
|
|
// the anon, no-js TOC case found in layouts/toc/unpinned.less
|
2023-04-19 20:57:36 +00:00
|
|
|
&.client-js,
|
|
|
|
&.client-nojs {
|
2023-03-13 20:52:45 +00:00
|
|
|
.vector-pinned-container {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-01-11 14:52:45 +00:00
|
|
|
}
|
|
|
|
}
|