feat: dyanmic ordered-list style

This commit is contained in:
Philipinho
2025-07-08 06:53:37 -07:00
parent 27a9c0ebe4
commit 6d7a0a179f
2 changed files with 35 additions and 1 deletions

View File

@ -10,4 +10,4 @@
@import "./code.css";
@import "./print.css";
@import "./mention.css";
@import "./ordered-list.css";

View File

@ -0,0 +1,34 @@
/* Ordered list type cycling based on nesting depth */
ol,
ol ol ol ol,
ol ol ol ol ol ol ol,
ol ol ol ol ol ol ol ol ol ol {
list-style-type: decimal;
}
ol ol,
ol ol ol ol ol,
ol ol ol ol ol ol ol ol,
ol ol ol ol ol ol ol ol ol ol ol {
list-style-type: lower-alpha;
}
ol ol ol,
ol ol ol ol ol ol,
ol ol ol ol ol ol ol ol ol,
ol ol ol ol ol ol ol ol ol ol ol ol {
list-style-type: lower-roman;
}
ol {
list-style-position: outside;
margin-left: 0.25rem;
}
/* Nested list spacing */
ol ol,
ol ul,
ul ol {
margin-top: 0.1rem;
margin-bottom: 0.1rem;
}