From 43ba21129e3df824fcaec32f44660039ed76a146 Mon Sep 17 00:00:00 2001 From: Keegan Rankin Date: Fri, 12 Apr 2024 11:59:56 -0700 Subject: [PATCH] Inject CSS to add scrollbar to the main menu on mobile --- config/asset_injector.css.sticky_navbar.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/asset_injector.css.sticky_navbar.yml b/config/asset_injector.css.sticky_navbar.yml index c3f9585..0015690 100644 --- a/config/asset_injector.css.sticky_navbar.yml +++ b/config/asset_injector.css.sticky_navbar.yml @@ -10,8 +10,18 @@ code: |- .navbar { position: sticky; top: 0; + overflow-y: scroll; + max-height: 100vh; } + @media screen and (min-width: 1024px) { + .navbar { + overflow-y: inherit; + max-height: none; + } + } + + .navbar-burger { align-self: center; }