From f5afd66efb6be175f0f594eb4d28beb80b69ec72 Mon Sep 17 00:00:00 2001 From: Tim deBoer Date: Fri, 8 Mar 2024 09:03:43 -0500 Subject: [PATCH] chore: improve doc nav styling (#6125) Makes the main doc navigation elements (sections + root pages) bold, and reduces the size of child elements to make the main elements stand out better and child elements wrap less. Fixes styling part of #5338. Signed-off-by: Tim deBoer --- website/src/css/custom.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 5c4255755ff..adf063b81b4 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -149,6 +149,19 @@ li.footer__item a svg { display: none; } +/* main nav items bold */ +.theme-doc-sidebar-item-link-level-1 { + font-weight: bold; +} +li.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible { + font-weight: bold; +} + +/* child nav slightly smaller */ +li.theme-doc-sidebar-item-category-level-1 > .menu__list { + font-size: 0.85em; +} + @media (min-width: 1200px) { .navbar__title { font-size: 2em;