account for weirdly parsed code blocks in styling (#20167)

This commit is contained in:
PJ 2023-09-26 19:20:10 +01:00 committed by GitHub
parent ceefd67d01
commit 1d4bcf5ca8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View file

@ -288,6 +288,7 @@ body {
}
pre:not(.highlight),
div:not(.highlight) > pre.highlight,
div.highlight {
margin: 0 0 var(--content-rhythm) 0;
}

View file

@ -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.

View file

@ -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);