-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathReadiumCSS-default.css
More file actions
180 lines (145 loc) · 3.29 KB
/
ReadiumCSS-default.css
File metadata and controls
180 lines (145 loc) · 3.29 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/*!
* Readium CSS v.2.0.1
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
* Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
* Contributors:
* Daniel Weck
* Hadrien Gardeur
* Innovimax
* L. Le Meur
* Mickaël Menu
* k_taka
*/
@namespace url("http://www.w3.org/1999/xhtml");
@namespace epub url("http://www.idpf.org/2007/ops");
@namespace m url("http://www.w3.org/1998/Math/MathML");
@namespace svg url("http://www.w3.org/2000/svg");
:root{
--RS__compFontFamily:var(--RS__baseFontFamily);
--RS__codeFontFamily:var(--RS__monospaceTf);
--RS__typeScale:1.125;
--RS__baseFontSize:87.5%;
--RS__flowSpacing:1.5rem;
--RS__paraSpacing:0;
--RS__paraIndent:1em;
--RS__linkColor:#0000EE;
--RS__visitedColor:#551A8B;
--RS__primaryColor:;
--RS__secondaryColor:;
}
:root:lang(zh){
--RS__paraIndent:2em;
}
:lang("mn-Mong"){
--RS__baseFontSize:100%;
}
body{
font-size:var(--RS__baseFontSize);
text-align:justify;
text-justify:inter-character;
}
h1, h2, h3, h4, h5, h6{
font-family:var(--RS__baseFontFamily);
text-align:left;
text-align:start;
}
blockquote, figure, p, pre,
aside, footer, form, hr{
margin-right:var(--RS__flowSpacing);
margin-left:var(--RS__flowSpacing);
}
p{
margin-right:var(--RS__paraSpacing);
margin-left:var(--RS__paraSpacing);
text-indent:var(--RS__paraIndent);
}
pre{
font-family:var(--RS__codeFontFamily);
}
code, kbd, samp, tt{
font-family:var(--RS__codeFontFamily);
}
sub, sup{
position:relative;
font-size:67.5%;
line-height:1;
}
sub{
left:-0.2ex;
}
sup{
right:0;
}
em{
-webkit-text-emphasis:sesame;
-epub-text-emphasis:sesame;
text-emphasis:sesame;
}
:link{
color:var(--RS__linkColor);
}
:visited{
color:var(--RS__visitedColor);
}
h1{
margin-right:calc(var(--RS__flowSpacing) * 2);
margin-left:calc(var(--RS__flowSpacing) * 2);
font-size:calc(((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale));
text-indent:2rem;
}
h2{
margin-right:calc(var(--RS__flowSpacing) * 2);
margin-left:var(--RS__flowSpacing);
font-size:calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));
text-indent:3rem;
}
h3{
margin-right:var(--RS__flowSpacing);
margin-left:var(--RS__flowSpacing);
font-size:calc(1em * var(--RS__typeScale));
text-indent:4rem;
}
h4{
margin-right:var(--RS__flowSpacing);
margin-left:var(--RS__flowSpacing);
font-family:var(--RS__compFontFamily);
font-size:1em;
text-indent:4rem;
}
h5{
margin-right:var(--RS__flowSpacing);
margin-left:var(--RS__flowSpacing);
font-family:var(--RS__compFontFamily);
font-size:smaller;
text-indent:4rem;
}
h6{
margin-right:var(--RS__flowSpacing);
margin-left:0;
font-family:var(--RS__compFontFamily);
font-size:smaller;
font-weight:normal;
text-indent:4rem;
}
dl, ol, ul{
margin-right:var(--RS__flowSpacing);
margin-left:var(--RS__flowSpacing);
}
table{
margin:0 var(--RS__flowSpacing);
border:1px solid currentcolor;
border-collapse:collapse;
empty-cells:show;
}
thead, tbody, tfoot, table > tr{
vertical-align:top;
}
th{
text-align:left;
}
th, td{
padding:4px;
border:1px solid currentcolor;
}