forked from syndicate-lang/preserves
Single-colon pseudoselectors
This commit is contained in:
parent
afac7c5de1
commit
1e47286e2e
|
@ -22,7 +22,7 @@ pre { padding: 0.33rem; }
|
|||
body {
|
||||
counter-reset: section 0 subsection 0;
|
||||
}
|
||||
h2::before, h3::before {
|
||||
h2:before, h3:before {
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
|
@ -33,14 +33,14 @@ h2::before, h3::before {
|
|||
margin-right: -2em;
|
||||
height: 0;
|
||||
}
|
||||
h2::before {
|
||||
h2:before {
|
||||
counter-increment: section;
|
||||
content: counter(section) ". ";
|
||||
}
|
||||
h2 {
|
||||
counter-reset: subsection 0;
|
||||
}
|
||||
h3::before {
|
||||
h3:before {
|
||||
counter-increment: subsection;
|
||||
content: counter(section) "." counter(subsection) ". ";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue