From 4b95e6c262e117752dec921eb2ea7d81b8f64ec9 Mon Sep 17 00:00:00 2001 From: Gigi Date: Mon, 13 Oct 2025 23:37:32 +0200 Subject: [PATCH] feat(ui): add comprehensive list styling for articles - Add proper ul/ol styling with disc and decimal markers - Add 2rem left padding for list indentation - Add proper spacing between list items (0.375rem) - Style nested lists with circle (ul) and lower-alpha (ol) - Reduce margins for nested lists - Handle paragraphs within list items with reduced margins - Use zinc-200 color for list items - Support both markdown and HTML content --- src/styles/components/reader.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/styles/components/reader.css b/src/styles/components/reader.css index ef2df757..73028dce 100644 --- a/src/styles/components/reader.css +++ b/src/styles/components/reader.css @@ -93,6 +93,33 @@ } .reader-markdown p { margin: 0.5rem 0; } .reader-html p, .reader-html div, .reader-html span, .reader-html li, .reader-html td, .reader-html th { font-size: 1em !important; } +/* Lists */ +.reader-markdown ul, .reader-html ul { + list-style-type: disc; + margin: 1rem 0; + padding-left: 2rem; +} +.reader-markdown ol, .reader-html ol { + list-style-type: decimal; + margin: 1rem 0; + padding-left: 2rem; +} +.reader-markdown li, .reader-html li { + margin: 0.375rem 0; + line-height: 1.6; + color: rgb(228 228 231); /* zinc-200 */ +} +.reader-markdown ul ul, .reader-markdown ol ul, .reader-html ul ul, .reader-html ol ul { + list-style-type: circle; + margin: 0.25rem 0; +} +.reader-markdown ul ol, .reader-markdown ol ol, .reader-html ul ol, .reader-html ol ol { + list-style-type: lower-alpha; + margin: 0.25rem 0; +} +.reader-markdown li p, .reader-html li p { + margin: 0.25rem 0; +} .reader-markdown blockquote, .reader-html blockquote { margin: 1.5rem 0; padding-left: 2rem;