Skip to content

Commit 7593282

Browse files
committed
fix syntaxhighlighter styles to properly override theme
1 parent bf76a47 commit 7593282

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

root/static/less/syntaxhighlighter.less

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
1-
html body .syntaxhighlighter {
2-
font-size: 100% !important;
3-
margin: 0 !important;
4-
overflow: visible !important;
1+
html > body .syntaxhighlighter {
2+
font-size: unset !important;
3+
margin: unset !important;
4+
overflow: unset !important;
5+
}
6+
7+
html > body .syntaxhighlighter {
58
/* needs higher specificity than the syntax highligher's rules */
6-
&, *, * *, * * *, * * * *, .line.alt2, .line.alt1 {
7-
font-family: inherit !important;
9+
&,
10+
*,
11+
* *,
12+
* * *,
13+
* * * *,
14+
.line.alt2,
15+
.line.alt1 {
16+
font-family: unset !important;
817
line-height: normal !important;
918
}
1019
}

0 commit comments

Comments
 (0)