Listes ordonnées

This commit is contained in:
Adrien Bourmault 2022-04-14 17:09:01 +02:00
parent d6e0965a44
commit 3386d87166
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 32 additions and 6 deletions

View File

@ -331,9 +331,35 @@ abbr {
margin-left: 40px; margin-left: 40px;
} }
.chalec_list-1::before, .chalec_list-ol li {
.chalec_list-2::before, counter-increment: step-counter;
.chalec_list-3::before { }
.chalec_list-ol .chalec_list-1::before,
.chalec_list-ol .chalec_list-2::before,
.chalec_list-ol .chalec_list-3::before {
display: inline-block;
content: counter(step-counter) ".";
padding-left: 0px;
margin-right: 5px;
list-style-type: upper-roman;
}
.chalec_list-ol .chalec_list-1::before {
color: var(--chalec_red);
}
.chalec_list-ol .chalec_list-2::before {
color: var(--chalec_blue);
}
.chalec_list-ol .chalec_list-3::before {
color: var(--chalec_yellow);
}
.chalec_list-ul .chalec_list-1::before,
.chalec_list-ul .chalec_list-2::before,
.chalec_list-ul .chalec_list-3::before {
display: inline-block; display: inline-block;
content: "\2022"; content: "\2022";
width: 10px; width: 10px;
@ -342,15 +368,15 @@ abbr {
font-weight: bold; font-weight: bold;
} }
.chalec_list-1::before { .chalec_list-ul .chalec_list-1::before {
color: var(--chalec_red); color: var(--chalec_red);
} }
.chalec_list-2::before { .chalec_list-ul .chalec_list-2::before {
color: var(--chalec_blue); color: var(--chalec_blue);
} }
.chalec_list-3::before { .chalec_list-ul .chalec_list-3::before {
color: var(--chalec_yellow); color: var(--chalec_yellow);
} }