From 8648e8569ed3f5c9ae56961af5bb02de38db5405 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 14 Sep 2025 22:16:03 +0200 Subject: [PATCH] Add list style --- web/styles/globals.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/web/styles/globals.css b/web/styles/globals.css index e33bd2d9..643edc66 100644 --- a/web/styles/globals.css +++ b/web/styles/globals.css @@ -316,4 +316,26 @@ ul { .body-bg { background-color: rgb(var(--color-canvas-0)); +} + +/* Restore normal ol numbers and ensure they are visible */ +ol { + list-style-position: inside; /* or 'inside' if you prefer */ + /*margin: 0 0 1rem 0;*/ + list-style: decimal; + padding-left: 0.5rem; /* space for numbers */ +} + +/* Ensure li behaves as a list item (some resets or flex can break markers) */ +ol > li { + display: list-item; /* prevents flex from removing marker layout */ + padding-left: 1rem; /* extra spacing after number */ + text-indent: -1rem; /* pull first line back so text aligns */ +} + +/* Style the marker (modern browsers) */ +ol > li::marker { + font-weight: 600; + font-size: 1em; + color: #374151; /* pick a visible color */ } \ No newline at end of file