Skip to content

Commit 19e28aa

Browse files
committed
Move media query to chrome.css
1 parent a5b768f commit 19e28aa

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

src/theme/ayu-highlight.css

-6
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ Original by Dempfi (https://github.com/dempfi/ayu)
1111
padding: 0.5em;
1212
}
1313

14-
@media (max-width: 640px) {
15-
.hljs {
16-
padding-top: 2em;
17-
}
18-
}
19-
2014
.hljs-comment,
2115
.hljs-quote {
2216
color: #5c6773;

src/theme/css/chrome.css

+5
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,11 @@ a:hover > .hljs {
204204

205205
pre {
206206
position: relative;
207+
}
208+
@media (max-width: 640px) {
209+
pre {
210+
padding-top: 2em;
211+
}
207212
}
208213
pre > .buttons {
209214
position: absolute;

src/theme/highlight.css

-6
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,6 @@
6464
padding: 0.5em;
6565
}
6666

67-
@media (max-width: 640px) {
68-
.hljs {
69-
padding-top: 2em;
70-
}
71-
}
72-
7367
.hljs-emphasis {
7468
font-style: italic;
7569
}

src/theme/tomorrow-night.css

-6
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@
8585
-webkit-text-size-adjust: none;
8686
}
8787

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

0 commit comments

Comments
 (0)