forked from notcome/Constitution.PRC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
78 lines (69 loc) · 1.32 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
html {
font-family: sans-serif;
font-size: 16px;
line-height: 24px;
}
* {
margin: 0;
padding: 0;
}
main {
width: 40rem;
margin: auto;
}
h1 {
text-align: center;
margin: 1.5em 0 1em;
}
p
{ margin-bottom: 0.8em; }
ol
{ list-style-type: none; }
main
{ counter-reset: chapter -1; }
main > section
{ counter-increment: chapter; }
section > h1:before
{ content: "第" counter(chapter, cjk-ideographic) "章 "; }
section#intro > h1:before
{ content: ""; }
main > section
{ counter-reset: section; }
main > section > section
{ counter-increment: section; }
main > section > section > h1:before
{ content: "第" counter(section, cjk-ideographic) "节 "; }
main
{ counter-reset: item; }
section > ol > li {
counter-increment: item;
position: relative;
margin-bottom: 1.2em;
}
section > ol > li:before {
content: "第" counter(item, cjk-ideographic) "条 ";
font-weight: bold;
display: inline-block;
width: 8em;
text-align: right;
position: absolute;
top: 0;
left: -8em;
}
li > ol {
counter-reset: in-par-item;
margin-top: -0.8em;
}
li > ol > li {
counter-increment: in-par-item;
position: relative;
}
li > ol > li:before {
content: "(" counter(in-par-item, cjk-ideographic) ")";
display: inline-block;
width: 5em;
text-align: right;
position: absolute;
top: 0;
left: -5em;
}