blob: c03e3bc813870b0f3c4a1a958b528bba1cb51344 (
plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
|
[data-small-caps="true"] {
.post-body {
h1, h2, h3, h4, h5, h6 {
font-variant: small-caps;
}
}
.contents-title {
font-variant: small-caps;
}
}
[data-align="justify"] {
.post-body {
p, li, dd {
text-align: justify;
text-justify: distribute;
}
}
.footnotes {
a {
word-break: break-all;
}
}
}
[data-align="center"] {
.post-body p {
text-align: center;
}
}
[data-type="poetry"] {
.post-body {
display: table;
margin: 0 auto;
p {
margin: 0 0 1em;
}
}
.post-body > p:first-child {
img, video {
margin-top: 0;
}
}
.post-body > blockquote:first-child {
margin-top: 0;
}
.post-body > blockquote:last-child {
margin-bottom: 0;
}
.post-body > p:last-child {
margin: 0;
}
.post-body > p:last-child {
img, video {
margin-bottom: 0;
}
.caption {
margin: 1em 0 0;
}
}
section.footnotes > ol > li:last-child > p:last-child {
margin: 0;
}
}
[data-toc-num="true"] {
.contents {
ol {
counter-reset: item;
li {
&::before {
counter-increment: item;
margin-right: 0.5em;
}
}
}
}
// First level
.contents > ol > li {
&::before {
content: counters(item, ".") ".";
}
}
// Sub level
.contents li > ol > li {
&::before {
content: counters(item, ".");
}
}
}
|