From 9788e3a9f506709b828f03191a64762275d814b4 Mon Sep 17 00:00:00 2001 From: Arne Brasseur Date: Mon, 9 Sep 2024 09:25:32 +0200 Subject: [PATCH] Style ul/ol in markdown --- resources/public/css/styles.css | 24 ++++++++++++++++++++++++ src/co/gaiwan/compass/css/styles.clj | 3 +++ 2 files changed, 27 insertions(+) diff --git a/resources/public/css/styles.css b/resources/public/css/styles.css index 7eb6779..f7561e5 100644 --- a/resources/public/css/styles.css +++ b/resources/public/css/styles.css @@ -150,6 +150,30 @@ body { margin-top: var(--size-1); } +ul { + padding-top: var(--size-2); + padding-bottom: var(--size-2); +} + +ul li { + padding-top: var(--size-1); + padding-bottom: var(--size-1); + list-style-type: disc; + list-style-position: inside; +} + +ol { + padding-top: var(--size-2); + padding-bottom: var(--size-2); +} + +ol li { + padding-top: var(--size-1); + padding-bottom: var(--size-1); + list-style-type: decimal; + list-style-position: inside; +} + .graphics-compass_logo path { fill: var(--hoc-pink); } diff --git a/src/co/gaiwan/compass/css/styles.clj b/src/co/gaiwan/compass/css/styles.clj index 5f63ca4..307cda3 100644 --- a/src/co/gaiwan/compass/css/styles.clj +++ b/src/co/gaiwan/compass/css/styles.clj @@ -30,4 +30,7 @@ [:h4 {:margin-top t/--size-2 :margin-bottom t/--size-1}] [:h5 {:margin-top t/--size-1}]] + + [:ul :py-2 [:li :py-1 :list-disc :list-inside]] + [:ol :py-2 [:li :py-1 :list-decimal :list-inside]] ])