Skip to content

Commit f507e38

Browse files
committed
fix definition lists
1 parent 977bac6 commit f507e38

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

docs/book/theme/css/markers.css

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
* extract the actual relevant information. Theoretically, this'll let us do
88
* stuff like transform the information for different screen widths. */
99

10+
/* Removes the counter from marker definitions */
11+
dd:has(+ dd)::before,
12+
dd + dd::before {
13+
content: normal;
14+
}
15+
1016
/* the marker */
1117
.marker {
1218
display: flex;
@@ -65,14 +71,14 @@
6571
font-style: inherit;
6672
}
6773
.marker dl.args.summary dt:first-child::before {
68-
content: ':';
74+
content: ":";
6975
}
7076
.marker dl.args.summary dt::before {
71-
content: ',';
77+
content: ",";
7278
}
7379
/* hide in non-summary view */
7480
.marker dd.args {
75-
display: none
81+
display: none;
7682
}
7783

7884
/* the description */
@@ -85,7 +91,7 @@
8591

8692
/* all arguments */
8793
.marker dl.args dt.argument::after {
88-
content: '=';
94+
content: "=";
8995
}
9096
.marker dl.args dd.type {
9197
font-style: italic;
@@ -98,14 +104,16 @@
98104
font-size: 0.875em;
99105
}
100106
.marker .literal {
101-
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
107+
font-family:
108+
"Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono",
109+
monospace, monospace;
102110
font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */
103111
}
104112
.marker .argument.type::before {
105-
content: '‹';
113+
content: "‹";
106114
}
107115
.marker .argument.type::after {
108-
content: '›';
116+
content: "›";
109117
}
110118

111119
/* summary args */
@@ -134,7 +142,7 @@
134142
}
135143

136144
.marker .type .slice::before {
137-
content: '[]';
145+
content: "[]";
138146
}
139147

140148
/* description args */
@@ -158,10 +166,10 @@
158166

159167
/* summary view */
160168
.markers-summarize:checked ~ dl > .marker dd.args {
161-
display: inline-block
169+
display: inline-block;
162170
}
163171
.markers-summarize:checked ~ dl > .marker dd.description dl.args {
164-
display: none
172+
display: none;
165173
}
166174
.markers-summarize:checked ~ dl > .marker dd.description {
167175
margin-bottom: 0.25em;
@@ -172,11 +180,11 @@ input.markers-summarize {
172180
}
173181
label.markers-summarize::before {
174182
margin-right: 0.5em;
175-
content: '\25bc';
183+
content: "\25bc";
176184
display: inline-block;
177185
}
178186
input.markers-summarize:checked ~ label.markers-summarize::before {
179-
content: '\25b6';
187+
content: "\25b6";
180188
}
181189

182190
/* misc */
@@ -280,7 +288,6 @@ details.collapse-code > summary::-webkit-details-marker {
280288
display: none;
281289
}
282290

283-
284291
/* diagrams */
285292

286293
.diagrams {
@@ -296,12 +303,15 @@ details.collapse-code > summary::-webkit-details-marker {
296303
font-weight: bold;
297304
}
298305

299-
.diagrams object, .diagrams svg {
306+
.diagrams object,
307+
.diagrams svg {
300308
max-width: 100%;
301309
max-height: 10em; /* force svg height to behave */
302310
}
303311

304-
.diagrams path, .diagrams polyline, .diagrams circle {
312+
.diagrams path,
313+
.diagrams polyline,
314+
.diagrams circle {
305315
stroke: var(--fg);
306316
}
307317

@@ -360,7 +370,9 @@ aside.note.warning > h1::before {
360370
/* literate source citations */
361371
cite.literate-source {
362372
font-size: 75%;
363-
font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
373+
font-family:
374+
"Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono",
375+
monospace, monospace;
364376
}
365377
cite.literate-source::before {
366378
content: "$ ";

0 commit comments

Comments
 (0)