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).
Add closing tags for description list terms
Without the closing tags, the dt elements contain whitespace after the
text. This normally isn't a big deal, but does mess some things up,
e.g: using ::after with content: ", " in stylesheets.
Restore float:left style for note lists
Unlike the original note list styles, this version sets the line-height
for all dt elements to be the same as the p elements contained
inside the dd, so that the second line has the same indentation as all
subsequent lines.
[ruby/rdoc] Use distinct styles for note lists and label lists
(https://github.com/ruby/rdoc/pull/1209)
label
description list styleAs 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 anddd
top margin, to reduce the gapbetween the term and its description (to only the standard line-height
gap).
Add closing tags for description list terms
Without the closing tags, the dt elements contain whitespace after the
text. This normally isn't a big deal, but does mess some things up,
e.g: using
::after
withcontent: ", "
in stylesheets.Unlike the original note list styles, this version sets the line-height
for all
dt
elements to be the same as thep
elements containedinside the
dd
, so that the second line has the same indentation as allsubsequent lines.
https://github.com/ruby/rdoc/commit/9e69ea6d75