mediawiki-skins-Vector/resources/skins.vector.styles/components/PageTools.less
bwang d2b413a721 Make client prefs fully pinnable
Bug: T351141
Change-Id: Ic4a166fb3234b27dbf3d37891abfdf15781c8867
2023-11-22 14:39:28 -06:00

46 lines
1.4 KiB
Plaintext

// Ensure there is only 1 page tools landmark at anytime
&.vector-feature-page-tools-pinned-enabled .vector-page-toolbar-container .vector-page-tools-landmark,
&.vector-feature-page-tools-pinned-disabled .vector-column-end .vector-page-tools-landmark {
display: none;
}
.vector-column-end {
// T327460: Prevent subpixel rendering issues associated with the text and Chrome.
contain: paint;
.vector-page-tools-landmark {
position: sticky;
top: 0;
margin-top: @margin-top-pinned-page-tools;
}
}
#vector-page-tools-pinned-container .vector-page-tools,
#vector-client-prefs-pinned-container .vector-client-prefs {
width: 140px;
// Match spacing of TOC and main menu
margin-left: @padding-horizontal-dropdown-menu-item;
max-height: ~'calc( 100vh - @{max-height-bottom-spacing-scroll-indicator} )';
overflow-y: auto;
box-sizing: border-box;
padding-top: @padding-top-pinned-element;
// Add fade indicator.
.mixin-vector-scroll-indicator();
}
// Ensure collapsible items are visible on lower resolutions
.vector-page-tools .vector-more-collapsible-item {
display: block;
@media ( min-width: @min-width-breakpoint-tablet ) {
display: none;
}
}
// Make sure pcactions is displayed on lower resolutions (even if .emptyPortlet present)
.vector-page-tools .vector-has-collapsible-items {
@media ( max-width: @max-width-breakpoint-mobile ) {
display: block;
}
}