From aa0368f2e29bf84c50df02d0063fdaba6339913f Mon Sep 17 00:00:00 2001 From: Anneke Sinnema Date: Sun, 20 Oct 2024 18:53:35 +0200 Subject: [PATCH] Increase hit area on links in navigation on mobile Signed-off-by: Anneke Sinnema --- src/_includes/partials/page-header/navigation-triggers.css | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/_includes/partials/page-header/navigation-triggers.css b/src/_includes/partials/page-header/navigation-triggers.css index d542a9dd..9f0d1271 100644 --- a/src/_includes/partials/page-header/navigation-triggers.css +++ b/src/_includes/partials/page-header/navigation-triggers.css @@ -75,12 +75,17 @@ outline-offset: -2px; } +@media all and (max-width: 60.124em) { + .navigation-opened .navigation-list-item--toplevel > a { + flex: 1 1 auto; + } +} + .navigation-submenu-toggle[aria-expanded="true"] + .navigation-list--sublevel { display: block; width: 100%; } - @media all and (min-width: 60.125em) { .navigation-submenu-toggle[aria-expanded="true"] + .navigation-list--sublevel { width: auto;