Merge "Restore sticky header class and update TOC styles"

This commit is contained in:
jenkins-bot 2022-06-22 20:34:07 +00:00 committed by Gerrit Code Review
commit bf117d1fc8
2 changed files with 13 additions and 15 deletions

View File

@ -136,12 +136,18 @@
// sticky header isn't visible yet but we still need scroll padding applied
// (e.g. when the user navigates to a page with a hash fragment in the URI).
scroll-padding-top: @height-sticky-header;
// T289817 Override other sticky element offsets to ensure that other
// sticky elements (i.e. table headers) appear below the sticky header.
.charts-stickyhead th {
/* stylelint-disable-next-line declaration-no-important */
top: @height-sticky-header !important;
}
}
}
.client-js .vector-sticky-header-visible {
// T289817 Override other sticky element offsets to ensure that other
// sticky elements (i.e. table headers) appear below the sticky header.
//
// @stable See the Integration notes for developers section at
// https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improvements/Features/Sticky_Header
.mw-sticky-header-element,
.charts-stickyhead th {
/* stylelint-disable-next-line declaration-no-important */
top: @height-sticky-header !important;
}
}

View File

@ -210,14 +210,6 @@ body {
}
}
@media ( min-width: @width-breakpoint-tablet ) {
// T289817 Override other sticky element offsets to ensure that other
// sticky elements (i.e. table headers) appear below the sticky header.
.mw-table-of-contents-container {
top: @height-sticky-header;
}
}
.parsoid-body {
padding: @padding-content;
}