Skip to content

Commit 03cdea4

Browse files
authored
Style tweak for API rendering (#1012)
Tighter bound on the `max-width` property for paragraphs inside rendered APIs. AFAICT it's only meant to apply to the summary.
1 parent dfb1bf2 commit 03cdea4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

assets/scss/custom.scss

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,13 @@ footer {
267267
margin: 1rem 0 3rem 0;
268268

269269
details {
270-
271270
summary {
272271
padding: .5rem 0;
273272
list-style-position: outside;
273+
274+
p {
275+
max-width: 80%;
276+
}
274277
}
275278
}
276279

@@ -313,10 +316,6 @@ footer {
313316
margin-bottom: 1.5rem;
314317
}
315318

316-
p {
317-
max-width: 80%;
318-
}
319-
320319
p code, table code {
321320
background-color: $white;
322321
}

0 commit comments

Comments
 (0)