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