Modify Step guid ToC css: use class selector

This commit is contained in:
David 2023-01-01 10:12:29 +08:00 committed by Alex Cabal
parent 01bd373914
commit ed40d7ef0c

View file

@ -328,15 +328,15 @@ code.full .utf{
text-transform: uppercase; text-transform: uppercase;
} }
#step-toc{ .step-by-step-guide details{
padding: 1.0em 0; padding: 1.0em 0;
list-style-type: none; list-style-type: none;
counter-reset: css-counter 0; counter-reset: toc 0;
} }
.step-by-step-guide summary{ .step-by-step-guide summary{
cursor: pointer; cursor: pointer;
/* fake H2 styling: */ /* reproduce H2 styling: */
font-size: 1.4rem; font-size: 1.4rem;
font-family: "League Spartan", Arial, sans-serif; font-family: "League Spartan", Arial, sans-serif;
margin-top: 4rem; margin-top: 4rem;
@ -346,12 +346,12 @@ code.full .utf{
list-style-position: outside; list-style-position: outside;
} }
#step-toc p{ .step-by-step-guide details p {
counter-increment: css-counter 1; counter-increment: toc 1;
} }
#step-toc p:before{ .step-by-step-guide details p::before{
content: counter(css-counter) ". "; content: counter(toc) ". ";
} }
.alert p.warning{ .alert p.warning{