diff options
author | Anthony Johnson <aj@ohess.org> | 2020-06-16 22:54:47 +0300 |
---|---|---|
committer | Anthony Johnson <aj@ohess.org> | 2020-06-16 22:54:47 +0300 |
commit | aa0a108543ddbfa5f1ba95f3459d5de09ec74518 (patch) | |
tree | 6c217fdbf616b51decc4c2c64b90e2eb4af4ebd6 /src | |
parent | d85f8f89279fe8cb1ce8781a1c6553017abe1832 (diff) |
Add complex list margins, use margin-less items for ul.simple margins
0.5.0 was moving in the direction of treating everything like a simple
list. 0.4.3 had some bugs that made complex lists look closer to the
spacing that complex lists use. This resolves both and adds specific
item margins for both cases.
See https://docutils.sourceforge.io/sandbox/html4strict/data/simple-lists.html
Diffstat (limited to 'src')
-rw-r--r-- | src/sass/_theme_rst.sass | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sass/_theme_rst.sass b/src/sass/_theme_rst.sass index bee6a5c..7f42d21 100644 --- a/src/sass/_theme_rst.sass +++ b/src/sass/_theme_rst.sass @@ -147,14 +147,23 @@ list-style: upper-alpha .section ol, ol.arabic @extend .wy-plain-list-decimal + // Complex bullet lists, they have more item margins than simple lists .section ol li, .section ul li > * margin-top: $base-line-height / 2 + margin-bottom: $base-line-height / 2 &:first-child margin-top: 0rem > p margin-bottom: 0rem > ul, > ol + margin-bottom: $base-line-height / 2 + // Simple lists, no item margins + .section ol.simple li, .section ul.simple li + > * + margin-top: 0rem + margin-bottom: 0rem + ul, ol margin-top: 0rem margin-bottom: 0rem .line-block |