From 70fb73c69201e85a0f22073a3b61613247811e2a Mon Sep 17 00:00:00 2001 From: bwang Date: Mon, 8 May 2023 18:20:02 -0500 Subject: [PATCH] Fix CSS causing multiple TOC landmarks to be present Change-Id: Ib54fa49df5def9372a2a42b66a73a0c4936df5a2 --- resources/skins.vector.styles/components/TableOfContents.less | 4 ++-- .../skins.vector.zebra.styles/components/TableOfContents.less | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/skins.vector.styles/components/TableOfContents.less b/resources/skins.vector.styles/components/TableOfContents.less index c9ed08f97..6a1c7894d 100644 --- a/resources/skins.vector.styles/components/TableOfContents.less +++ b/resources/skins.vector.styles/components/TableOfContents.less @@ -132,9 +132,9 @@ } &.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, +&.vector-feature-toc-pinned-disabled .vector-sticky-header-visible .vector-sticky-header-context-bar, &.vector-feature-toc-pinned-enabled .mw-page-container-inner { - .vector-toc-landmark { + > .vector-toc-landmark { display: block; } } diff --git a/resources/skins.vector.zebra.styles/components/TableOfContents.less b/resources/skins.vector.zebra.styles/components/TableOfContents.less index 09d0db969..73ed63339 100644 --- a/resources/skins.vector.zebra.styles/components/TableOfContents.less +++ b/resources/skins.vector.zebra.styles/components/TableOfContents.less @@ -112,9 +112,9 @@ } &.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, +&.vector-feature-toc-pinned-disabled .vector-sticky-header-visible .vector-sticky-header-context-bar, &.vector-feature-toc-pinned-enabled .mw-page-container-inner { - .vector-toc-landmark { + > .vector-toc-landmark { display: block; } }