2023-02-04 02:01:56 +00:00
|
|
|
@import '../../common/variables.less';
|
|
|
|
@import '../../common/mixins.less';
|
|
|
|
|
2022-11-08 19:55:23 +00:00
|
|
|
// Ensure there is only 1 page tools landmark at anytime
|
|
|
|
.vector-page-tools-landmark {
|
2022-12-07 22:15:31 +00:00
|
|
|
.vector-feature-page-tools-pinned-enabled .vector-page-toolbar-container &,
|
2022-12-15 22:52:24 +00:00
|
|
|
.vector-feature-page-tools-pinned-disabled .vector-column-end & {
|
2022-11-08 19:55:23 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2022-11-28 21:08:40 +00:00
|
|
|
}
|
|
|
|
|
2023-02-04 02:01:56 +00:00
|
|
|
.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;
|
2023-02-09 22:50:25 +00:00
|
|
|
margin-top: @margin-top-pinned-page-tools;
|
2023-02-04 02:01:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-14 20:49:33 +00:00
|
|
|
.vector-page-tools {
|
2022-11-28 21:08:40 +00:00
|
|
|
#vector-page-tools-pinned-container & {
|
|
|
|
width: 140px;
|
2023-01-09 18:20:21 +00:00
|
|
|
// Match spacing of TOC and main menu
|
2023-02-04 02:01:56 +00:00
|
|
|
margin-left: @padding-horizontal-dropdown-menu-item;
|
|
|
|
max-height: ~'calc( 100vh - @{max-height-bottom-spacing-scroll-indicator} )';
|
|
|
|
overflow-y: auto;
|
|
|
|
box-sizing: border-box;
|
2023-02-09 22:50:25 +00:00
|
|
|
padding-top: @padding-top-pinned-element;
|
2023-02-04 02:01:56 +00:00
|
|
|
// Add fade indicator.
|
2023-02-07 22:14:45 +00:00
|
|
|
.mixin-vector-scroll-indicator();
|
2022-11-17 04:45:51 +00:00
|
|
|
}
|
2022-11-08 19:55:23 +00:00
|
|
|
}
|
|
|
|
|
2022-11-28 21:08:40 +00:00
|
|
|
// FIXME: Remove the following selector when page tools feature is on by default, needed for LegacyMoreDropdown
|
|
|
|
.vector-feature-page-tools-disabled .vector-page-tools-landmark,
|
2022-12-14 20:49:33 +00:00
|
|
|
.vector-page-tools {
|
2022-11-28 21:08:40 +00:00
|
|
|
// Ensure collapsible items are visible on lower resolutions
|
|
|
|
.vector-more-collapsible-item {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
@media ( min-width: @min-width-tablet ) {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-11-08 19:55:23 +00:00
|
|
|
}
|
|
|
|
|
2022-11-28 21:08:40 +00:00
|
|
|
// Make sure pcactions is displayed on lower resolutions (even if .emptyPortlet present)
|
|
|
|
.vector-has-collapsible-items {
|
|
|
|
@media ( max-width: @max-width-mobile ) {
|
|
|
|
display: block;
|
|
|
|
}
|
2022-11-08 19:55:23 +00:00
|
|
|
}
|
|
|
|
}
|