Skip to content

Commit 479a84c

Browse files
WIP: T&C sections auto-enumeration
1 parent 4d57d58 commit 479a84c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

pages/terms.module.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
.card {
2-
max-width: 80rem;
3-
margin: 2rem auto 0;
2+
max-width: 80ch;
3+
margin: 2rem auto;
4+
}
5+
6+
/* In the following code .card must be removed */
7+
.card section {
8+
margin: 0 0 1.5rem;
9+
counter-increment: section;
10+
counter-set: section;
11+
}
12+
13+
.card :matches(h2, h3, h4, h5, h6)::before {
14+
content: counters(section, '.') '. ';
415
}

0 commit comments

Comments
 (0)