mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-29 01:45:00 +00:00
3aaf8666cd
This removes CSS selectors associated with the Page tools feature flag, i.e. `vector-feature-page-tools-disabled` as well as `vector-feature-page-tools-enabled` by removing the 'disabled' styles and integrating the 'enabled' styles into the default page tools code. Bug: T332090 Change-Id: I382e12ca7ce741a3071582ffa84da03c2ba9e343
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
@import '../../common/variables.less';
|
|
@import '../../common/mixins.less';
|
|
|
|
// 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 {
|
|
// stylelint-disable-next-line plugin/no-unsupported-browser-features
|
|
position: sticky;
|
|
top: 0;
|
|
margin-top: @margin-top-pinned-page-tools;
|
|
}
|
|
}
|
|
|
|
.vector-page-tools {
|
|
#vector-page-tools-pinned-container & {
|
|
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-more-collapsible-item {
|
|
display: block;
|
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// Make sure pcactions is displayed on lower resolutions (even if .emptyPortlet present)
|
|
.vector-has-collapsible-items {
|
|
@media ( max-width: @max-width-mobile ) {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|