Skip to content

Commit 24df714

Browse files
committed
Tweak inline code and preformatted blocks
Adds a contrasting border to preformatted blocks (mainly for code blocks, but a few others), gives a subtle style to inline code elements in prose Relates to #4193
1 parent 78d0533 commit 24df714

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

css/additional.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,26 @@ body {
55
}
66
code {
77
font-family: monospace;
8+
font-size: 0.85em;
89
}
10+
11+
/* preformatted blocks - generally contain code element */
12+
13+
pre {
14+
padding: 1em;
15+
border: 1px solid #909090;
16+
background: #fefefe;
17+
}
18+
19+
/* inline code not in a preformatted block or link */
20+
21+
:not(:is(pre, a)) > code {
22+
font-size: 0.85em;
23+
background: #ebebeb;
24+
padding: 0 0.25em;
25+
display: inline-block;
26+
}
27+
928
h3.section, h3.terms {font-weight: normal; margin-top: 1.5em; color: #000000; background: inherit;}
1029
h4 {font-weight: bold; margin-bottom: 0; color: #333; background: inherit;}
1130

0 commit comments

Comments
 (0)