From 0c59e731808a732b1fc201f58eb31a1384b62bba Mon Sep 17 00:00:00 2001 From: Sebastian Pfitzner Date: Mon, 19 May 2025 09:27:08 +0200 Subject: [PATCH] feat: vitepress css compat --- assets/default/flexsearch.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/assets/default/flexsearch.css b/assets/default/flexsearch.css index 619aa512..e1a01450 100644 --- a/assets/default/flexsearch.css +++ b/assets/default/flexsearch.css @@ -62,7 +62,7 @@ border-radius: 6px; padding: .4rem; list-style-type: none; - z-index: 10; + z-index: 100; right: 0; max-height: max(50vh, 250px); overflow-y: auto; @@ -118,3 +118,16 @@ margin: 10px 2em 4.5em 0; } } + +/* vitepress */ +#app header.VPNav { + top: var(--vp-layout-top-height, var(--navbar-height, 0px)); +} + +#app aside.VPSidebar { + top: var(--navbar-height, initial); +} + +#app .layout .VPLocalNav { + top: var(--navbar-height, initial); +}