Skip to content

Commit 63844b4

Browse files
committed
Improve Antora code styling
1 parent badb28c commit 63844b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

antora-playbook.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ ui:
8383
.doc h3 { font-size: 1.5rem; font-weight: 400; }
8484
.doc h4 { font-size: 1.3rem; font-weight: 500; }
8585
.doc h5 { font-size: 1.1rem; font-weight: 500; text-decoration: underline; }
86+
/* Default `code`, `pre`, and `.colist` (source code annotations) fonts are too big, adjust them: */
87+
.doc .colist>table code, .doc p code, .doc thead code { font-size: 0.8em; }
88+
.doc pre { font-size: 0.7rem; }
89+
.doc .colist { font-size: 0.75rem; }
8690
/* Tab header fonts aren't rendered good, adjusting the font weight: */
8791
.tablist > ul li { font-weight: 500; }
8892
/* `page-toclevels` greater than 4 are not supported by Antora UI, patching it: */

0 commit comments

Comments
 (0)