Skip to content

Commit 8f5cd0b

Browse files
committed
Improve code display
1 parent 999bcee commit 8f5cd0b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

themes/opentermsarchive/assets/css/components/textContent/textContent.css

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
& blockquote + h2,
109109
& .highlight + h2,
110110
& details + h2,
111-
& video + h2{
111+
& video + h2
112+
& table + h2 {
112113
margin-top: var(--m2XL);
113114
}
114115

@@ -118,7 +119,8 @@
118119
& blockquote + h3,
119120
& .highlight + h3,
120121
& details + h3,
121-
& video + h3 {
122+
& video + h3,
123+
& table + h2 {
122124
margin-top: var(--mXL);
123125
}
124126

@@ -195,14 +197,19 @@
195197
margin-bottom: var(--mM);
196198
}
197199

198-
& pre{
199-
padding:0.8rem;
200+
& pre {
201+
padding: 1.5rem;
200202
overflow-x: scroll;
201203
}
202204

205+
& :not(pre) > code {
206+
padding: 0.2em 0.4em;
207+
border-radius: 0.3em;
208+
}
209+
203210
& code {
204211
background-color: var(--colorBlack200);
205-
font-size: 0.95em;
212+
font-size: 0.9em;
206213
}
207214

208215
& button {

0 commit comments

Comments
 (0)