ruby/lib/rdoc/generator
nicholas a. evans dd43af3be7 [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

9e69ea6d75
2024-12-08 10:43:47 +00:00
..
pot [ruby/rdoc] Improve rubocop setup 2024-07-17 20:43:08 +00:00
template [ruby/rdoc] Use distinct styles for note lists and label lists 2024-12-08 10:43:47 +00:00
darkfish.rb [ruby/rdoc] Extract excerpt from raw pages correctly 2024-11-18 10:32:31 +00:00
json_index.rb [ruby/rdoc] Use flat_map for better performance 2023-06-14 23:47:25 +00:00
markup.rb [ruby/rdoc] Auto-correct trailing new lines 2023-06-03 01:42:29 +00:00
pot.rb [ruby/rdoc] [DOC] nodoc for probably internal methods 2023-12-16 00:26:39 +09:00
ri.rb [ruby/rdoc] Auto-correct trailing new lines 2023-06-03 01:42:29 +00:00