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