Skip to content

Commit 36bfc9d

Browse files
authored
fix: sidebar style issue on firefox, fixed docsifyjs#184 (docsifyjs#297)
1 parent 4ad96f3 commit 36bfc9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/themes/basic/_layout.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ main {
232232
.sidebar {
233233
border-right: 1px solid rgba(0, 0, 0, 0.07);
234234
overflow-y: auto;
235-
padding: 40px 0;
235+
padding: 40px 0 0;
236236
position: absolute 0 * 0 0;
237237
transition: transform 250ms ease-out;
238238
width: $sidebar-width;
@@ -257,6 +257,7 @@ main {
257257

258258
.sidebar-nav {
259259
line-height: 2em;
260+
padding-bottom: 40px;
260261
}
261262

262263
ul {

src/themes/vue.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ body {
4747
}
4848

4949
.app-sub-sidebar {
50-
.section-link {
50+
li {
5151
&::before {
5252
content: '-';
5353
padding-right: 4px;
54+
float: left;
5455
}
5556
}
5657
}

0 commit comments

Comments
 (0)