Skip to content

Commit 0c59e73

Browse files
committed
feat: vitepress css compat
1 parent a3f4219 commit 0c59e73

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

assets/default/flexsearch.css

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
border-radius: 6px;
6363
padding: .4rem;
6464
list-style-type: none;
65-
z-index: 10;
65+
z-index: 100;
6666
right: 0;
6767
max-height: max(50vh, 250px);
6868
overflow-y: auto;
@@ -118,3 +118,16 @@
118118
margin: 10px 2em 4.5em 0;
119119
}
120120
}
121+
122+
/* vitepress */
123+
#app header.VPNav {
124+
top: var(--vp-layout-top-height, var(--navbar-height, 0px));
125+
}
126+
127+
#app aside.VPSidebar {
128+
top: var(--navbar-height, initial);
129+
}
130+
131+
#app .layout .VPLocalNav {
132+
top: var(--navbar-height, initial);
133+
}

0 commit comments

Comments
 (0)