💄 Add list number before table of content and article's head outline.
This commit is contained in:
@@ -42,6 +42,32 @@
|
||||
}
|
||||
}
|
||||
|
||||
.autonumber {
|
||||
h2 {
|
||||
counter-reset: h3;
|
||||
&:before{
|
||||
counter-increment: h2;
|
||||
content: counter(h2) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
counter-reset: h4;
|
||||
&:before{
|
||||
counter-increment: h3;
|
||||
content: counter(h2) ". " counter(h3) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
counter-reset: h5;
|
||||
&:before{
|
||||
counter-increment: h4;
|
||||
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import 'post-collapse';
|
||||
@import 'post-body';
|
||||
@import 'post-gallery';
|
||||
|
||||
Reference in New Issue
Block a user