Skip to content

Commit 1f57b4e

Browse files
committed
Tweak CSS
Add a little more whitespace and fix code blocks when used in admon tables.
1 parent 5565cce commit 1f57b4e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/main/css/asciidoctor.css

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,7 @@
120120
font-weight: var(--asciidoctor-heading-font-weight);
121121
hyphens: none;
122122
line-height: 1.3;
123-
margin: 1rem 0 0;
124-
}
125-
126-
.doc h3 {
127-
margin: 2rem 0 0;
123+
margin: 2.5rem 0 0;
128124
}
129125

130126
.doc h1.sect0 {
@@ -209,7 +205,8 @@
209205
/* Code and Pre */
210206

211207
.doc p code,
212-
.doc thead code {
208+
.doc thead code,
209+
.doc .admonitionblock code {
213210
color: var(--asciidoctor-code-font-color);
214211
background: var(--asciidoctor-code-background);
215212
border-radius: 0.25em;
@@ -284,7 +281,7 @@
284281
.doc .partintro,
285282
.doc details,
286283
.doc hr {
287-
margin: 0.8rem 0 0;
284+
margin: 1rem 0 0;
288285
}
289286

290287
/* Tables */
@@ -295,7 +292,7 @@
295292
}
296293

297294
.doc table.tableblock + * {
298-
margin-top: 1.5rem;
295+
margin-top: 2rem;
299296
}
300297

301298
.doc td.tableblock > .content > :first-child {
@@ -339,7 +336,7 @@
339336
/* Admonition blocks */
340337

341338
.doc .admonitionblock {
342-
margin: 1.6rem 0 0;
339+
margin: 2.5rem 0;
343340
}
344341

345342
.doc .admonitionblock p,

0 commit comments

Comments
 (0)