From 5672647588ef2d08a0b0e0ab33dc23d1ef64e00a Mon Sep 17 00:00:00 2001 From: Thingersoft Date: Fri, 25 Oct 2024 06:08:32 +0200 Subject: [PATCH 1/2] fix ordered lists markers styling --- client/src/style.css | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/client/src/style.css b/client/src/style.css index 52b72f3d7ee..7f3b7f3cbbc 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -2006,7 +2006,7 @@ button.scroll-convo { list-style-position: outside; margin-top: 1em; margin-bottom: 1em; - padding-left: 1.625em; + padding-left: 2em; } .prose li, @@ -2019,19 +2019,16 @@ button.scroll-convo { .prose ol, .markdown ol { list-style-type: decimal; - counter-reset: list-counter; } .prose ol > li, .markdown ol > li { position: relative; padding-left: 0.375em; - counter-increment: list-counter; } .prose ol > li::marker, .markdown ol > li::marker { - content: counter(list-counter) '. '; color: var(--tw-prose-counters); font-weight: 400; } @@ -2048,11 +2045,6 @@ button.scroll-convo { counter-increment: list-counter-alpha; } -.prose ol ol > li::marker, -.markdown ol ol > li::marker { - content: counter(list-counter-alpha, lower-alpha) '. '; -} - .prose ol ol ol, .markdown ol ol ol { list-style-type: lower-roman; @@ -2064,11 +2056,6 @@ button.scroll-convo { counter-increment: list-counter-roman; } -.prose ol ol ol > li::marker, -.markdown ol ol ol > li::marker { - content: counter(list-counter-roman, lower-roman) '. '; -} - /* Unordered lists */ .prose ul, .markdown ul { From ee586e4b36936b4e7208c7ace973745d563fcb03 Mon Sep 17 00:00:00 2001 From: Thingersoft Date: Fri, 25 Oct 2024 17:58:22 +0200 Subject: [PATCH 2/2] cleanup --- client/src/style.css | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/client/src/style.css b/client/src/style.css index 7f3b7f3cbbc..5dd155588e1 100644 --- a/client/src/style.css +++ b/client/src/style.css @@ -2037,23 +2037,11 @@ button.scroll-convo { .prose ol ol, .markdown ol ol { list-style-type: lower-alpha; - counter-reset: list-counter-alpha; -} - -.prose ol ol > li, -.markdown ol ol > li { - counter-increment: list-counter-alpha; } .prose ol ol ol, .markdown ol ol ol { list-style-type: lower-roman; - counter-reset: list-counter-roman; -} - -.prose ol ol ol > li, -.markdown ol ol ol > li { - counter-increment: list-counter-roman; } /* Unordered lists */ @@ -2117,28 +2105,6 @@ button.scroll-convo { color: currentColor; } -/* Reset counter for new sections */ -.prose h1 + ol, -.prose h2 + ol, -.prose h3 + ol, -.prose h4 + ol, -.prose h5 + ol, -.prose h6 + ol, -.markdown h1 + ol, -.markdown h2 + ol, -.markdown h3 + ol, -.markdown h4 + ol, -.markdown h5 + ol, -.markdown h6 + ol { - counter-reset: list-counter; -} - -/* Reset counter after unordered lists */ -.prose ul + ol, -.markdown ul + ol { - counter-reset: list-counter; -} - /* Keyframes */ @keyframes slideFromLeftToRightAndFade {