fuzzyworld-tools / commit
Indent plain lists so numbers and bullets stay inside the text column
server/site/style.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/server/site/style.css b/server/site/style.css index 787eaf7..2a60803 100644 --- a/server/site/style.css +++ b/server/site/style.css @@ -412,6 +412,19 @@ td.cost .bar.hot { } /* Markdown content */ +/* Plain lists in page content: room for the numbers and bullets, which sit outside the list box + (the reset in _shared.css removes all list padding). Lists with a class style themselves. */ +main ul:not([class]), +main ol:not([class]) { + padding-left: 1.75em; + margin: 0 0 var(--spacing-md); +} + +main ul:not([class]) li + li, +main ol:not([class]) li + li { + margin-top: 0.25em; +} + .markdown img, main p > img, img.blob {