Skip to content

Commit 356bca7

Browse files
committed
edit app.css/counter
1 parent 632542b commit 356bca7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

css/app.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ body {
114114
line-height:1.3rem;
115115

116116
/* border: 1px solid black; */
117+
118+
counter-reset: section;
117119
}
118120

119121
@media (min-width: 40rem) {
@@ -167,6 +169,12 @@ body {
167169
text-align: left;
168170

169171
border-top: 2px solid #666;
172+
173+
counter-increment: section;
174+
}
175+
176+
#content h2:before {
177+
content: counters(section, ".") " ";
170178
}
171179

172180
#content h3 {

0 commit comments

Comments
 (0)