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,31 +262,31 @@ ol {
ol { ol {
list-style: none; list-style: none;
counter-reset: li; counter-reset: li;
}
ol > li { > li {
counter-increment: li; counter-increment: li;
}
ol > li:before { &:before {
content: counter(li); content: counter(li);
position: absolute; position: absolute;
right: calc(100% + 10px); right: calc(100% + 10px);
color: $accent; color: $accent;
display: inline-block; display: inline-block;
text-align: right; text-align: right;
} }
ol > ol { > ol {
margin-left: 38px; margin-left: 38px;
}
ol > ol > li { > li {
counter-increment: li; counter-increment: li;
}
ol > ol > li:before { &:before {
content: counters(li, ".") " "; content: counters(li, ".") " ";
}
}
}
}
} }
mark { mark {