Add list style

This commit is contained in:
MartinBraquet
2025-09-14 22:16:03 +02:00
parent 1be0ab8bcb
commit 8648e8569e

View File

@@ -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 */
}