Skip to content

Commit

Permalink
Use the original label description list style
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
nevans committed Nov 15, 2024
1 parent 6852567 commit 3afc357
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -469,14 +469,15 @@ main dl {
}

main dt {
margin-bottom: 0.5em;
margin-right: 1em;
float: left;
font-weight: bold;
}

main dd {
margin: 0 1em 1em 0.5em;
margin: 0 0 1em 1em;
}

main dd p:first-child {
margin-top: 0;
}

/* Headers within Main */
Expand Down

0 comments on commit 3afc357

Please sign in to comment.