From 305b3a5f0eb66d3a9401530cb520417b19c7ea4f Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sun, 21 May 2023 14:12:21 +0800 Subject: [PATCH] Make it sticky --- src/components/nav-menu.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/nav-menu.css b/src/components/nav-menu.css index f58a0d6b..ae8e48dd 100644 --- a/src/components/nav-menu.css +++ b/src/components/nav-menu.css @@ -22,6 +22,8 @@ background-position: 0 0, 0 0, 2em 90%; background-blend-mode: normal, normal, overlay; box-shadow: inset 0 0 1px var(--bg-color); + position: sticky; + top: 0; } .nav-menu section:last-child > .szh-menu__divider:first-child { display: none;