From aaa677f2d6f4a464995349cc712be9215b82bd04 Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 8 Jul 2024 15:35:01 -0400 Subject: [PATCH] =?UTF-8?q?fix(toc):=20=F0=9F=90=9B=20fix=20transparent=20?= =?UTF-8?q?ToC=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/TableOfContents.less | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/resources/skins.citizen.styles/components/TableOfContents.less b/resources/skins.citizen.styles/components/TableOfContents.less index 3ef90690..2dacca69 100644 --- a/resources/skins.citizen.styles/components/TableOfContents.less +++ b/resources/skins.citizen.styles/components/TableOfContents.less @@ -123,10 +123,6 @@ } .citizen-dropdown { - &-details[ open ] + .citizen-menu__card { - pointer-events: auto; // HACK: Make ToC clickable after ToC is expanded - } - &-summary { position: absolute; bottom: 0; @@ -150,6 +146,16 @@ background: ~'linear-gradient( var( --background-color-button-quiet--active ), var( --background-color-button-quiet--active ) ) var( --color-surface-1 )'; } } + + &-details[ open ] { + + .citizen-menu__card { + pointer-events: auto; // HACK: Make ToC clickable after ToC is expanded + } + + > .citizen-dropdown-summary { + background: ~'linear-gradient( var( --background-color-button-quiet--active ), var( --background-color-button-quiet--active ) ) var( --color-surface-1 )'; + } + } } } }