Skip to content

Commit 141322d

Browse files
authored
Fix paragraph spacing in enum values. (#2286)
Since enum values listed on the enum class's page are, I think, the only case of multiple paragraphs inside a dd, they deserve some special styling.
1 parent b2297b8 commit 141322d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/resources/styles.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,12 @@ dd p {
341341
margin-bottom: 0;
342342
}
343343

344+
/* Enum values do not have their own pages; their full docs are presented on the
345+
* enum class's page. */
346+
dt.constant + dd p {
347+
margin-bottom: 1em;
348+
}
349+
344350
/* indents wrapped lines */
345351
section.summary dt {
346352
margin-left: 24px;

0 commit comments

Comments
 (0)