From 27c6c23dfc3ab7e10cf3817bc9fe680fbfaf0190 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 18 Jun 2024 19:07:48 -0500 Subject: [PATCH] Style "on this page" section on mobile --- site/.vitepress/theme/custom.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/site/.vitepress/theme/custom.css b/site/.vitepress/theme/custom.css index 3a107b60..bcdc87fb 100644 --- a/site/.vitepress/theme/custom.css +++ b/site/.vitepress/theme/custom.css @@ -395,6 +395,30 @@ a.title { } } +.VPLocalNavOutlineDropdown .items { + background: linear-gradient(to bottom, var(--vp-sidebar-bg-color) 29px, var(--vp-c-divider) 1px); + background-size: 100% 30px; + top: 85px; + border-radius: 0; +} + +.VPLocalNavOutlineDropdown ul>li>ul:before { + left: 0; +} + +.VPLocalNavOutlineDropdown .header, +.VPLocalNavOutlineDropdown .outline { + background: none !important; + padding: 0 !important; +} + +.VPLocalNavOutlineDropdown .top-link, +.VPLocalNavOutlineDropdown .outline-link { + line-height: 30px !important; + font-size: unset !important; + font-weight: unset !important; +} + .aside-curtain { display: none !important; }