Merge "[anon prefs] Update TOC pin/unpin classes for Zebra"

This commit is contained in:
jenkins-bot 2023-09-25 22:57:20 +00:00 committed by Gerrit Code Review
commit 315eb55b05
4 changed files with 10 additions and 10 deletions

View file

@ -111,9 +111,9 @@
display: none;
}
&.vector-feature-toc-pinned-disabled body:not( .vector-sticky-header-visible ) .vector-page-titlebar,
&.vector-feature-toc-pinned-disabled .vector-sticky-header-visible .vector-sticky-header-context-bar,
&.vector-feature-toc-pinned-enabled .mw-page-container-inner {
&.vector-feature-toc-pinned-clientpref-0 body:not( .vector-sticky-header-visible ) .vector-page-titlebar,
&.vector-feature-toc-pinned-clientpref-0 .vector-sticky-header-visible .vector-sticky-header-context-bar,
&.vector-feature-toc-pinned-clientpref-1 .mw-page-container-inner {
> .vector-toc-landmark {
display: block;
}

View file

@ -73,7 +73,7 @@
// Horizontally center content when column start is empty (i.e. no pinned ToC or pinned main menu)
&.vector-feature-main-menu-pinned-disabled .vector-sidebar-container-no-toc ~ .mw-content-container,
&.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-disabled .mw-content-container {
&.vector-feature-main-menu-pinned-disabled.vector-feature-toc-pinned-clientpref-0 .mw-content-container {
grid-column: mainMenu / pageContent;
.mw-body {

View file

@ -3,7 +3,7 @@
align-self: start;
}
&.vector-feature-toc-pinned-enabled #mw-panel-toc {
&.vector-feature-toc-pinned-clientpref-1 #mw-panel-toc {
// Support: Chrome
// Work around sticky-positioned layers disabling subpixel text rendering (T327460).
// NOTE: This property has an effect similar to 'overflow: hidden', and will prevent elements

View file

@ -57,7 +57,7 @@
//
// TOC in page titlebar
//
&.vector-feature-toc-pinned-disabled body:not( .vector-sticky-header-visible ) {
&.vector-feature-toc-pinned-clientpref-0 body:not( .vector-sticky-header-visible ) {
.vector-page-titlebar-toc {
.mixin-toc-unpinned();
}
@ -66,7 +66,7 @@
//
// TOC in page titlebar below page title
//
&.vector-feature-toc-pinned-disabled body:not( .vector-sticky-header-visible ).vector-below-page-title {
&.vector-feature-toc-pinned-clientpref-0 body:not( .vector-sticky-header-visible ).vector-below-page-title {
.vector-page-titlebar-toc {
.mixin-toc-below-page-title();
}
@ -75,7 +75,7 @@
//
// TOC in sticky header
//
&.vector-feature-toc-pinned-disabled .vector-sticky-header-visible {
&.vector-feature-toc-pinned-clientpref-0 .vector-sticky-header-visible {
.vector-sticky-header-toc {
.mixin-toc-unpinned();
}
@ -87,7 +87,7 @@
//
// No-JS TOC in page titlebar
//
&.vector-feature-toc-pinned-disabled {
&.vector-feature-toc-pinned-clientpref-0 {
.vector-page-titlebar-toc {
.mixin-toc-unpinned();
}
@ -100,7 +100,7 @@
// Make the TOC appear in the page titlebar on small viewports
// even when the TOC location in the DOM is actually in the sidebar
// This case only happens for no-js anon users.
&.vector-feature-toc-pinned-enabled {
&.vector-feature-toc-pinned-clientpref-1 {
#vector-toc-collapsed-button {
display: block;
}