Skip to content

Commit a5b768f

Browse files
committed
Add padding top only on smaller devices
1 parent f59799a commit a5b768f

File tree

3 files changed

+21
-3
lines changed

3 files changed

+21
-3
lines changed

src/theme/ayu-highlight.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ Original by Dempfi (https://github.com/dempfi/ayu)
88
overflow-x: auto;
99
background: #191f26;
1010
color: #e6e1cf;
11-
padding: 2em 0.5em;
11+
padding: 0.5em;
12+
}
13+
14+
@media (max-width: 640px) {
15+
.hljs {
16+
padding-top: 2em;
17+
}
1218
}
1319

1420
.hljs-comment,

src/theme/highlight.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@
6161
overflow-x: auto;
6262
background: #f6f7f6;
6363
color: #000;
64-
padding: 2em 0.5em;
64+
padding: 0.5em;
65+
}
66+
67+
@media (max-width: 640px) {
68+
.hljs {
69+
padding-top: 2em;
70+
}
6571
}
6672

6773
.hljs-emphasis {

src/theme/tomorrow-night.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,16 @@
8181
overflow-x: auto;
8282
background: #1d1f21;
8383
color: #c5c8c6;
84-
padding: 2em 0.5em;
84+
padding: 0.5em;
8585
-webkit-text-size-adjust: none;
8686
}
8787

88+
@media (max-width: 640px) {
89+
.hljs {
90+
padding-top: 2em;
91+
}
92+
}
93+
8894
.coffeescript .javascript,
8995
.javascript .xml,
9096
.tex .hljs-formula,

0 commit comments

Comments
 (0)