Skip to content

Commit 2aaa600

Browse files
authored
Merge pull request #78 from raifdmueller/main
fix: Add CSS styles for AsciiDoc definition lists
2 parents 39df8e8 + f0411d3 commit 2aaa600

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

website/src/styles/asciidoctor-scoped.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,46 @@
104104
margin: 0.5rem 0;
105105
}
106106

107+
/* Definition Lists */
108+
& dl {
109+
margin: 1.25rem 0;
110+
}
111+
112+
& dt {
113+
font-weight: 700;
114+
margin-top: 1rem;
115+
margin-bottom: 0.5rem;
116+
color: inherit;
117+
}
118+
119+
& dt:first-child {
120+
margin-top: 0;
121+
}
122+
123+
& dd {
124+
margin-left: 2rem;
125+
margin-bottom: 1rem;
126+
}
127+
128+
& dd:last-child {
129+
margin-bottom: 0;
130+
}
131+
132+
/* Nested definition lists (:::) */
133+
& dd > dl {
134+
margin-top: 0.5rem;
135+
margin-left: 0;
136+
}
137+
138+
& dd > dl dt {
139+
font-weight: 600;
140+
margin-top: 0.5rem;
141+
}
142+
143+
& dd > dl dd {
144+
margin-left: 1.5rem;
145+
}
146+
107147
& table {
108148
border-collapse: collapse;
109149
width: 100%;

0 commit comments

Comments
 (0)