summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/generator/template/darkfish/css/rdoc.css22
-rw-r--r--lib/rdoc/markup/to_html.rb2
2 files changed, 20 insertions, 4 deletions
diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css
index 82c1e4baf6..69b1d08577 100644
--- a/lib/rdoc/generator/template/darkfish/css/rdoc.css
+++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css
@@ -469,14 +469,30 @@ main dl {
}
main dt {
- margin-bottom: 0.5em;
+ line-height: 1.5; /* matches `main p` */
+ font-weight: bold;
+}
+
+main dl.note-list dt {
margin-right: 1em;
float: left;
- font-weight: bold;
+}
+
+main dl.note-list dt:has(+ dt) {
+ margin-right: 0.25em;
+}
+
+main dl.note-list dt:has(+ dt)::after {
+ content: ', ';
+ font-weight: normal;
}
main dd {
- margin: 0 1em 1em 0.5em;
+ margin: 0 0 1em 1em;
+}
+
+main dd p:first-child {
+ margin-top: 0;
}
/* Headers within Main */
diff --git a/lib/rdoc/markup/to_html.rb b/lib/rdoc/markup/to_html.rb
index 91cadf9d16..dd37bf9eb3 100644
--- a/lib/rdoc/markup/to_html.rb
+++ b/lib/rdoc/markup/to_html.rb
@@ -407,7 +407,7 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
"<li>"
when :LABEL, :NOTE then
Array(list_item.label).map do |label|
- "<dt>#{to_html label}\n"
+ "<dt>#{to_html label}</dt>\n"
end.join << "<dd>"
else
raise RDoc::Error, "Invalid list type: #{list_type.inspect}"