Skip to content

Commit 38c1768

Browse files
committed
Make previous <code> fix specific to those within <pre>
1 parent cc61b96 commit 38c1768

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

assets/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ a:hover {
209209

210210
code {
211211
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
212-
display: block;
213-
overflow-x: auto;
214212
}
215213

216214
/* I heard using :not() is slow for reflows.
@@ -231,6 +229,11 @@ Not really any of those on the website though AFAIK.
231229
content: "\00a0";
232230
}
233231

232+
pre > code {
233+
display: block;
234+
overflow-x: auto;
235+
}
236+
234237

235238
/* blogs */
236239

0 commit comments

Comments
 (0)