diff options
| author | Adam Porter <adam@alphapapa.net> | 2024-03-16 22:59:18 -0500 |
|---|---|---|
| committer | Philip Kaludercic <philipk@posteo.net> | 2024-05-25 10:05:01 +0200 |
| commit | e926c4cd4c36f514209425ed23013eb9dd92fca9 (patch) | |
| tree | a9b54d3eb12da1deb6bc761adfaf8080fdd50000 /html/layout.css | |
| parent | 879861de4d9983f82e8016b360bb86bebe8635a1 (diff) | |
* html/layout.css: Improve readability of DL elements
(dl): Don't decrease font size. Indent list slightly to set off from
body text.
(dt): Don't limit width. Don't display inline. Ensure small margin
above each term.
(dd): Don't limit width. Don't display inline.
While DL lists might be expected to be, e.g. a glossary, where each DT
element is just one term, these lists are commonly used for other
purposes, in which DT elements may be a sentence or more; this is
especially so for some ELPA packages' manuals which are exported to
HTML from Org files. Cramming these terms into a narrow column next
to their definition makes such lists hard to read. Instead, this
change puts the terms and definitions on their own lines.
Diffstat (limited to 'html/layout.css')
| -rw-r--r-- | html/layout.css | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/html/layout.css b/html/layout.css index f01814a..0a80942 100644 --- a/html/layout.css +++ b/html/layout.css @@ -168,24 +168,13 @@ p.centered { } dl { - margin: 30px 0; - font-size: .8em; + margin: 30px 2em; } dt { - font-weight: bold; - width: 300px; - display: inline-block; - vertical-align: top; -} - -dd { - /* We should reduce vertical space use in the "header". - Yuan Fu <casouri@gmail.com> suggested to do that simply by - commenting this out: - margin-bottom: 10px; */ - width: 460px; - display: inline-block; + font-weight: bold; + margin: 0.25em 0 0 0; + vertical-align: top; } .button { |
