style: fix list css

This commit is contained in:
Youwen Wu 2024-06-25 02:52:26 -07:00
parent 88d69e0002
commit 0c48c25a48
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
2 changed files with 6 additions and 25 deletions

View file

@ -52,39 +52,20 @@
} }
ol, ol,
ul { ul {
@apply list-inside leading-loose; @apply list-inside leading-loose sm:leading-[2] sm:text-lg font-light;
} }
ul { ul {
@apply list-disc ml-2; @apply list-disc ml-2;
} }
ol { ol {
counter-reset: item; @apply list-decimal ml-2;
}
ol li {
display: block;
}
ol li:before {
content: counters(item, ".") ". ";
counter-increment: item;
} }
ol ol { ol ol {
li { @apply list-disc ml-4;
@apply ml-2;
} }
counter-reset: subitem; ol ol ol {
} @apply list-["-"] ml-4;
ol ol li:before {
@apply ml-4;
content: counter(item, upper-alpha) ". ";
counter-increment: subitem;
}
ol ol ol li:before {
content: counter(subitem, lower-roman) ". ";
} }
li { li {
@apply my-1; @apply my-1;

File diff suppressed because one or more lines are too long