mediawiki-skins-Vector/resources/skins.vector.styles/components/PinnableElement.less

25 lines
759 B
Plaintext
Raw Normal View History

@import '../../common/variables.less';
.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,
.mw-list-item a {
padding-left: 0;
padding-right: 0;
}
}
/**
* At lower resolutions, we want to hide the pinned containers since these
* 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.
*/
@media ( max-width: @max-width-tablet ) {
.vector-pinned-container {
display: none;
}
}