From 3afc357c0779c3170a35b2d39a71ccb3b0ac58a4 Mon Sep 17 00:00:00 2001 From: nick evans Date: Fri, 15 Nov 2024 09:16:54 -0500 Subject: [PATCH] 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). --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 9 +++++---- 1 file changed, 5 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..8d495e3767 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -469,14 +469,15 @@ main dl { } main dt { - margin-bottom: 0.5em; - margin-right: 1em; - float: left; font-weight: bold; } main dd { - margin: 0 1em 1em 0.5em; + margin: 0 0 1em 1em; +} + +main dd p:first-child { + margin-top: 0; } /* Headers within Main */