Skip to content

Commit d73542a

Browse files
author
ignace
committed
feat: tweak codeblock padding
1 parent 423aa1a commit d73542a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/styles/app.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,19 @@ code[data-diff] .diff-insertion::before {
169169

170170
.chapter pre, .chapter pre[class*=language-],
171171
.chapter code, .chapter code[class*=language-] {
172-
line-height: 1.4;
172+
line-height: 1.6;
173173
}
174174
.chapter .filename, .chapter pre, .chapter pre[class*=language-] {
175175
font-size: 85%;
176176
}
177177

178+
.chapter .filename {
179+
padding: var(--spacing-1) var(--spacing-2);
180+
}
181+
.chapter pre code {
182+
padding: var(--spacing-1) 0;
183+
}
184+
178185
/* ToC heading styles */
179186

180187
li.toc-heading.toc-level-0 {

0 commit comments

Comments
 (0)