summaryrefslogtreecommitdiff
path: root/spec/ruby/core
diff options
context:
space:
mode:
authornicholas a. evans <nick@rubinick.dev>2024-12-08 05:43:43 -0500
committergit <svn-admin@ruby-lang.org>2024-12-08 10:43:47 +0000
commitdd43af3be7eddb832c77ef367456fa023fed7d7a (patch)
tree9f1f4b18eb420b94b7baf7f433d8da8cfa2b1850 /spec/ruby/core
parentbd831bcca534955533d9135d8c2f22d7ae5b9aa8 (diff)
[ruby/rdoc] Use distinct styles for note lists and label lists
(https://github.com/ruby/rdoc/pull/1209) * 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). * 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. * Add commas between note list terms https://github.com/ruby/rdoc/commit/9e69ea6d75
Diffstat (limited to 'spec/ruby/core')
0 files changed, 0 insertions, 0 deletions