Update main.scss to use nesting with &

This commit is contained in:
Blake Ashley 2023-05-02 08:33:13 -07:00 committed by GitHub
parent 0085fc68b9
commit fb50e39b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,13 +262,11 @@ ol {
ol {
list-style: none;
counter-reset: li;
}
ol > li {
> li {
counter-increment: li;
}
ol > li:before {
&:before {
content: counter(li);
position: absolute;
right: calc(100% + 10px);
@ -277,17 +275,19 @@ ol > li:before {
text-align: right;
}
ol > ol {
> ol {
margin-left: 38px;
}
ol > ol > li {
> li {
counter-increment: li;
}
ol > ol > li:before {
&:before {
content: counters(li, ".") " ";
}
}
}
}
}
mark {
background: $accent;