Skip to content

Commit dad29bc

Browse files
committed
add code block bg and horizontal scroll to prevent broken page scrolling on mobile
1 parent dda45b2 commit dad29bc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

assets/sass/main.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,22 @@ big {
2727
small {
2828
font-size: 70%;
2929
}
30+
pre {
31+
background-color: rgb(247, 243, 239);
32+
border: 1px solid #c5bbb0;
33+
border-radius: 0.5em;
34+
padding: 1em;
35+
overflow-x: auto;
36+
}
37+
code {
38+
background-color: rgb(247, 243, 239);
39+
padding: 0.1em 0.3em;
40+
border-radius: 0.25em;
41+
}
42+
pre code {
43+
background-color: transparent;
44+
padding: 0;
45+
}
3046
div.feature-matrix {
3147
table {
3248
border-collapse: collapse;

0 commit comments

Comments
 (0)