From b013b436c1511bc60052b5c27abb87082a7904bc Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 31 Aug 2024 17:59:34 +0800 Subject: [PATCH] Fix missing backgrounds for nav menu items --- src/components/nav-menu.css | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/components/nav-menu.css b/src/components/nav-menu.css index 0c82191b7..5d92cec9e 100644 --- a/src/components/nav-menu.css +++ b/src/components/nav-menu.css @@ -1,7 +1,18 @@ -.nav-menu section:last-child { - background-color: var(--bg-faded-color); - margin-bottom: -8px; - padding-bottom: 8px; +.nav-menu { + overflow: hidden; + + section:last-child { + background-color: var(--bg-faded-color); + margin-bottom: -4px; + padding-bottom: 4px; + + .szh-menu__item:before { + z-index: 0; + } + .szh-menu__item > * { + z-index: 1; + } + } } @media (min-width: 23em) {