Skip to content

Commit 39f6c98

Browse files
committed
style title on lists (ordered and unordered)
1 parent 68f09db commit 39f6c98

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

preview-src/index.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ At ornatus splendide sed, phaedrum omittantur usu an, vix an noster voluptatibus
167167
Natum facilisis theophrastus an duo.
168168
No sea, at invenire voluptaria mnesarchum has.
169169

170+
.List with customized marker
170171
[square]
171172
* ultricies sociosqu tristique integer
172173
* lacus volutpat semper porttitor aliquet ornare primis nulla enim

src/css/doc.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,14 +657,24 @@
657657
.doc table.tableblock caption {
658658
color: var(--caption-font-color);
659659
font-size: calc(16 / var(--rem-base) * 1rem);
660+
font-style: var(--caption-font-style);
660661
font-weight: var(--caption-font-weight);
661-
font-style: italic;
662662
hyphens: none;
663663
letter-spacing: 0.01em;
664664
padding-bottom: 0.075rem;
665+
}
666+
667+
.doc table.tableblock caption {
665668
text-align: left;
666669
}
667670

671+
.doc .olist .title,
672+
.doc .ulist .title {
673+
font-weight: var(--caption-font-weight);
674+
font-style: var(--caption-font-style);
675+
margin-bottom: 0.25rem;
676+
}
677+
668678
.doc .imageblock .title {
669679
margin-top: 0.5rem;
670680
padding-bottom: 0;

src/css/vars.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
--admonition-background: var(--panel-background);
116116
--admonition-label-font-weight: var(--body-font-weight-bold);
117117
--caption-font-color: var(--color-gray-70);
118+
--caption-font-style: italic;
118119
--caption-font-weight: var(--body-font-weight-bold);
119120
--code-background: var(--panel-background);
120121
--code-font-color: var(--body-font-color);

0 commit comments

Comments
 (0)