account for weirdly parsed code blocks in styling (#20167)
This commit is contained in:
parent
ceefd67d01
commit
1d4bcf5ca8
3 changed files with 4 additions and 0 deletions
|
|
@ -288,6 +288,7 @@ body {
|
|||
}
|
||||
|
||||
pre:not(.highlight),
|
||||
div:not(.highlight) > pre.highlight,
|
||||
div.highlight {
|
||||
margin: 0 0 var(--content-rhythm) 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@
|
|||
}
|
||||
pre:not(.highlight),
|
||||
div.highlight,
|
||||
div:not(.highlight) > pre.highlight,
|
||||
li pre.highlight,
|
||||
blockquote pre.highlight {
|
||||
padding: var(--su-2);
|
||||
|
|
@ -115,6 +116,7 @@
|
|||
}
|
||||
|
||||
pre:not(.highlight),
|
||||
div:not(.highlight) > pre.highlight,
|
||||
div.highlight {
|
||||
margin: var(--su-1) auto;
|
||||
font-size: 90%; // little adjustment for feed comments since default monospace font looks really tiny there.
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
pre:not(.highlight),
|
||||
div.highlight,
|
||||
div:not(.highlight) > pre.highlight,
|
||||
li pre.highlight,
|
||||
blockquote pre.highlight {
|
||||
background: var(--syntax-background-color);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue