Skip to content

Commit 3afc357

Browse files
committed
Use the original label description list style
As a default for all description lists, the original "label" style is more readable. This is slightly different from the original `label` dl though: * slightly increased left margin for `dd` (to 1em) * removed right margin on `dd` * removed `dt` bottom margin and `dd` top margin, to reduce the gap between the term and its description (to only the standard line-height gap).
1 parent 6852567 commit 3afc357

File tree

1 file changed

+5
-4
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+5
-4
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,15 @@ main dl {
469469
}
470470

471471
main dt {
472-
margin-bottom: 0.5em;
473-
margin-right: 1em;
474-
float: left;
475472
font-weight: bold;
476473
}
477474

478475
main dd {
479-
margin: 0 1em 1em 0.5em;
476+
margin: 0 0 1em 1em;
477+
}
478+
479+
main dd p:first-child {
480+
margin-top: 0;
480481
}
481482

482483
/* Headers within Main */

0 commit comments

Comments
 (0)