Skip to content

Commit 2d00f40

Browse files
committed
Tweak css for inline code blocks in sidebar
1 parent e40b293 commit 2d00f40

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/theme/book.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ h3 {
4040
left: -300px;
4141
}
4242
}
43+
.sidebar code {
44+
line-height: 2em;
45+
}
4346
.sidebar-hidden .sidebar {
4447
left: -300px;
4548
}

src/theme/stylus/sidebar.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
@media only screen and (max-width: 1060px) {
1919
left: - $sidebar-width
2020
}
21+
22+
code {
23+
line-height: 2em;
24+
}
2125
}
2226

2327
.sidebar-hidden .sidebar {

0 commit comments

Comments
 (0)