mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 04:55:21 +02:00
![]() (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
|
||
---|---|---|
.. | ||
attr_changer.rb | ||
attr_span.rb | ||
attribute_manager.rb | ||
attributes.rb | ||
blank_line.rb | ||
block_quote.rb | ||
document.rb | ||
formatter.rb | ||
hard_break.rb | ||
heading.rb | ||
include.rb | ||
indented_paragraph.rb | ||
list.rb | ||
list_item.rb | ||
paragraph.rb | ||
parser.rb | ||
pre_process.rb | ||
raw.rb | ||
regexp_handling.rb | ||
rule.rb | ||
table.rb | ||
to_ansi.rb | ||
to_bs.rb | ||
to_html.rb | ||
to_html_crossref.rb | ||
to_html_snippet.rb | ||
to_joined_paragraph.rb | ||
to_label.rb | ||
to_markdown.rb | ||
to_rdoc.rb | ||
to_table_of_contents.rb | ||
to_test.rb | ||
to_tt_only.rb | ||
verbatim.rb |