@readium/navigator 2.4.0-beta.9 → 2.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ReadiumCSS-after-B_e3a-PY.js +592 -0
- package/dist/ReadiumCSS-after-C-T_0paD.js +530 -0
- package/dist/ReadiumCSS-after-lr-n3fz2.js +475 -0
- package/dist/ReadiumCSS-after-mXeKKPap.js +490 -0
- package/dist/ReadiumCSS-before-Bjd3POej.js +426 -0
- package/dist/ReadiumCSS-before-CfXPAGaQ.js +425 -0
- package/dist/ReadiumCSS-before-CrNWvuyE.js +425 -0
- package/dist/ReadiumCSS-before-KVen5ceo.js +425 -0
- package/dist/ReadiumCSS-default-BKAG5pGU.js +162 -0
- package/dist/ReadiumCSS-default-C63bYOYF.js +183 -0
- package/dist/ReadiumCSS-default-CclvbeNC.js +162 -0
- package/dist/ReadiumCSS-default-DnlgDaBu.js +180 -0
- package/dist/ReadiumCSS-ebpaj_fonts_patch-Dt2XliTg.js +82 -0
- package/dist/index.js +2642 -3430
- package/dist/index.umd.cjs +4407 -995
- package/package.json +2 -2
- package/src/audio/AudioNavigator.ts +155 -42
- package/src/audio/AudioPoolManager.ts +27 -14
- package/src/audio/engine/AudioEngine.ts +4 -3
- package/src/audio/engine/PreservePitchProcessor.js +166 -101
- package/src/audio/engine/PreservePitchWorklet.ts +2 -17
- package/src/audio/engine/WebAudioEngine.ts +138 -160
- package/src/audio/engine/index.ts +2 -2
- package/src/audio/index.ts +3 -3
- package/src/audio/preferences/AudioDefaults.ts +2 -2
- package/src/audio/preferences/AudioPreferences.ts +11 -11
- package/src/audio/preferences/AudioPreferencesEditor.ts +13 -13
- package/src/audio/preferences/AudioSettings.ts +3 -3
- package/src/audio/preferences/index.ts +4 -4
- package/src/audio/protection/AudioNavigatorProtector.ts +4 -4
- package/src/css/index.ts +1 -1
- package/src/epub/EpubNavigator.ts +113 -78
- package/src/epub/css/Properties.ts +15 -15
- package/src/epub/css/ReadiumCSS.ts +43 -43
- package/src/epub/css/index.ts +2 -2
- package/src/epub/frame/FrameBlobBuilder.ts +31 -31
- package/src/epub/frame/FrameComms.ts +1 -1
- package/src/epub/frame/FrameManager.ts +13 -9
- package/src/epub/frame/FramePoolManager.ts +13 -13
- package/src/epub/frame/index.ts +4 -4
- package/src/epub/fxl/FXLCoordinator.ts +3 -3
- package/src/epub/fxl/FXLFrameManager.ts +8 -8
- package/src/epub/fxl/FXLFramePoolManager.ts +18 -14
- package/src/epub/fxl/FXLPeripherals.ts +4 -4
- package/src/epub/fxl/index.ts +5 -5
- package/src/epub/helpers/scriptMode.ts +45 -0
- package/src/epub/index.ts +6 -5
- package/src/epub/preferences/EpubDefaults.ts +23 -23
- package/src/epub/preferences/EpubPreferences.ts +16 -16
- package/src/epub/preferences/EpubPreferencesEditor.ts +53 -53
- package/src/epub/preferences/EpubSettings.ts +101 -101
- package/src/epub/preferences/index.ts +4 -4
- package/src/helpers/index.ts +2 -2
- package/src/index.ts +8 -8
- package/src/injection/Injector.ts +42 -42
- package/src/injection/epubInjectables.ts +86 -17
- package/src/injection/index.ts +2 -2
- package/src/injection/webpubInjectables.ts +2 -2
- package/src/preferences/Configurable.ts +2 -2
- package/src/preferences/PreferencesEditor.ts +2 -2
- package/src/preferences/guards.ts +2 -2
- package/src/preferences/index.ts +5 -5
- package/src/protection/CopyProtector.ts +5 -1
- package/src/protection/DevToolsDetector.ts +16 -16
- package/src/protection/DragAndDropProtector.ts +14 -1
- package/src/protection/NavigatorProtector.ts +6 -6
- package/src/webpub/WebPubBlobBuilder.ts +1 -1
- package/src/webpub/WebPubFrameManager.ts +8 -8
- package/src/webpub/WebPubFramePoolManager.ts +7 -7
- package/src/webpub/WebPubNavigator.ts +27 -27
- package/src/webpub/css/Properties.ts +3 -3
- package/src/webpub/css/WebPubCSS.ts +11 -11
- package/src/webpub/css/index.ts +2 -2
- package/src/webpub/index.ts +6 -6
- package/src/webpub/preferences/WebPubDefaults.ts +12 -12
- package/src/webpub/preferences/WebPubPreferences.ts +8 -8
- package/src/webpub/preferences/WebPubPreferencesEditor.ts +31 -31
- package/src/webpub/preferences/WebPubSettings.ts +45 -45
- package/src/webpub/preferences/index.ts +4 -4
- package/types/src/audio/AudioNavigator.d.ts +34 -5
- package/types/src/audio/AudioPoolManager.d.ts +7 -4
- package/types/src/audio/engine/AudioEngine.d.ts +4 -3
- package/types/src/audio/engine/PreservePitchWorklet.d.ts +1 -4
- package/types/src/audio/engine/WebAudioEngine.d.ts +15 -9
- package/types/src/audio/engine/index.d.ts +2 -2
- package/types/src/audio/index.d.ts +3 -3
- package/types/src/audio/preferences/AudioPreferences.d.ts +9 -9
- package/types/src/audio/preferences/AudioPreferencesEditor.d.ts +4 -4
- package/types/src/audio/preferences/AudioSettings.d.ts +3 -3
- package/types/src/audio/preferences/index.d.ts +4 -4
- package/types/src/audio/protection/AudioNavigatorProtector.d.ts +2 -2
- package/types/src/css/index.d.ts +1 -1
- package/types/src/epub/EpubNavigator.d.ts +15 -14
- package/types/src/epub/css/Properties.d.ts +2 -2
- package/types/src/epub/css/ReadiumCSS.d.ts +3 -3
- package/types/src/epub/css/index.d.ts +2 -2
- package/types/src/epub/frame/FrameBlobBuilder.d.ts +1 -1
- package/types/src/epub/frame/FrameComms.d.ts +1 -1
- package/types/src/epub/frame/FrameManager.d.ts +3 -2
- package/types/src/epub/frame/FramePoolManager.d.ts +3 -3
- package/types/src/epub/frame/index.d.ts +4 -4
- package/types/src/epub/fxl/FXLFrameManager.d.ts +3 -3
- package/types/src/epub/fxl/FXLFramePoolManager.d.ts +5 -5
- package/types/src/epub/fxl/FXLPeripherals.d.ts +2 -2
- package/types/src/epub/fxl/index.d.ts +5 -5
- package/types/src/epub/helpers/scriptMode.d.ts +16 -0
- package/types/src/epub/index.d.ts +6 -5
- package/types/src/epub/preferences/EpubDefaults.d.ts +1 -1
- package/types/src/epub/preferences/EpubPreferences.d.ts +2 -2
- package/types/src/epub/preferences/EpubPreferencesEditor.d.ts +5 -5
- package/types/src/epub/preferences/EpubSettings.d.ts +4 -4
- package/types/src/epub/preferences/index.d.ts +4 -4
- package/types/src/helpers/index.d.ts +2 -2
- package/types/src/index.d.ts +8 -8
- package/types/src/injection/Injector.d.ts +1 -1
- package/types/src/injection/epubInjectables.d.ts +5 -3
- package/types/src/injection/index.d.ts +2 -2
- package/types/src/injection/webpubInjectables.d.ts +1 -1
- package/types/src/preferences/Configurable.d.ts +1 -1
- package/types/src/preferences/PreferencesEditor.d.ts +1 -1
- package/types/src/preferences/guards.d.ts +1 -1
- package/types/src/preferences/index.d.ts +5 -5
- package/types/src/protection/CopyProtector.d.ts +1 -0
- package/types/src/protection/DragAndDropProtector.d.ts +2 -0
- package/types/src/protection/NavigatorProtector.d.ts +1 -1
- package/types/src/webpub/WebPubBlobBuilder.d.ts +1 -1
- package/types/src/webpub/WebPubFrameManager.d.ts +2 -2
- package/types/src/webpub/WebPubFramePoolManager.d.ts +3 -3
- package/types/src/webpub/WebPubNavigator.d.ts +10 -10
- package/types/src/webpub/css/Properties.d.ts +2 -2
- package/types/src/webpub/css/WebPubCSS.d.ts +2 -2
- package/types/src/webpub/css/index.d.ts +2 -2
- package/types/src/webpub/index.d.ts +6 -6
- package/types/src/webpub/preferences/WebPubDefaults.d.ts +1 -1
- package/types/src/webpub/preferences/WebPubPreferences.d.ts +2 -2
- package/types/src/webpub/preferences/WebPubPreferencesEditor.d.ts +5 -5
- package/types/src/webpub/preferences/WebPubSettings.d.ts +4 -4
- package/types/src/webpub/preferences/index.d.ts +4 -4
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
const n = `/*!
|
|
2
|
+
* Readium CSS v.2.0.1
|
|
3
|
+
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
|
|
4
|
+
* Use of this source code is governed by a BSD-style license which is detailed in the
|
|
5
|
+
* LICENSE file present in the project repository where this source code is maintained.
|
|
6
|
+
* Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
|
|
7
|
+
* Contributors:
|
|
8
|
+
* Daniel Weck
|
|
9
|
+
* Hadrien Gardeur
|
|
10
|
+
* Innovimax
|
|
11
|
+
* L. Le Meur
|
|
12
|
+
* Mickaël Menu
|
|
13
|
+
* k_taka
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@namespace url("http://www.w3.org/1999/xhtml");
|
|
17
|
+
|
|
18
|
+
@namespace epub url("http://www.idpf.org/2007/ops");
|
|
19
|
+
|
|
20
|
+
@namespace m url("http://www.w3.org/1998/Math/MathML");
|
|
21
|
+
|
|
22
|
+
@namespace svg url("http://www.w3.org/2000/svg");
|
|
23
|
+
|
|
24
|
+
:root{
|
|
25
|
+
|
|
26
|
+
--RS__compFontFamily:var(--RS__baseFontFamily);
|
|
27
|
+
--RS__codeFontFamily:var(--RS__monospaceTf);
|
|
28
|
+
|
|
29
|
+
--RS__typeScale:1.125;
|
|
30
|
+
--RS__baseFontSize:87.5%;
|
|
31
|
+
|
|
32
|
+
--RS__flowSpacing:1.5rem;
|
|
33
|
+
--RS__paraSpacing:0;
|
|
34
|
+
--RS__paraIndent:1em;
|
|
35
|
+
|
|
36
|
+
--RS__linkColor:#0000EE;
|
|
37
|
+
--RS__visitedColor:#551A8B;
|
|
38
|
+
|
|
39
|
+
--RS__primaryColor:;
|
|
40
|
+
--RS__secondaryColor:;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:root:lang(zh){
|
|
44
|
+
--RS__paraIndent:2em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:lang("mn-Mong"){
|
|
48
|
+
--RS__baseFontSize:100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
body{
|
|
52
|
+
font-size:var(--RS__baseFontSize);
|
|
53
|
+
text-align:justify;
|
|
54
|
+
text-justify:inter-character;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h1, h2, h3, h4, h5, h6{
|
|
58
|
+
font-family:var(--RS__baseFontFamily);
|
|
59
|
+
text-align:left;
|
|
60
|
+
text-align:start;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
blockquote, figure, p, pre,
|
|
64
|
+
aside, footer, form, hr{
|
|
65
|
+
margin-right:var(--RS__flowSpacing);
|
|
66
|
+
margin-left:var(--RS__flowSpacing);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
p{
|
|
70
|
+
margin-right:var(--RS__paraSpacing);
|
|
71
|
+
margin-left:var(--RS__paraSpacing);
|
|
72
|
+
text-indent:var(--RS__paraIndent);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
pre{
|
|
76
|
+
font-family:var(--RS__codeFontFamily);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
code, kbd, samp, tt{
|
|
80
|
+
font-family:var(--RS__codeFontFamily);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sub, sup{
|
|
84
|
+
position:relative;
|
|
85
|
+
font-size:67.5%;
|
|
86
|
+
line-height:1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
sub{
|
|
90
|
+
left:-0.2ex;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
sup{
|
|
94
|
+
right:0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
em{
|
|
98
|
+
-webkit-text-emphasis:sesame;
|
|
99
|
+
-epub-text-emphasis:sesame;
|
|
100
|
+
text-emphasis:sesame;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:link{
|
|
104
|
+
color:var(--RS__linkColor);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:visited{
|
|
108
|
+
color:var(--RS__visitedColor);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
h1{
|
|
112
|
+
margin-right:calc(var(--RS__flowSpacing) * 2);
|
|
113
|
+
margin-left:calc(var(--RS__flowSpacing) * 2);
|
|
114
|
+
font-size:calc(((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
115
|
+
text-indent:2rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
h2{
|
|
119
|
+
margin-right:calc(var(--RS__flowSpacing) * 2);
|
|
120
|
+
margin-left:var(--RS__flowSpacing);
|
|
121
|
+
font-size:calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
122
|
+
text-indent:3rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
h3{
|
|
126
|
+
margin-right:var(--RS__flowSpacing);
|
|
127
|
+
margin-left:var(--RS__flowSpacing);
|
|
128
|
+
font-size:calc(1em * var(--RS__typeScale));
|
|
129
|
+
text-indent:4rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
h4{
|
|
133
|
+
margin-right:var(--RS__flowSpacing);
|
|
134
|
+
margin-left:var(--RS__flowSpacing);
|
|
135
|
+
font-family:var(--RS__compFontFamily);
|
|
136
|
+
font-size:1em;
|
|
137
|
+
text-indent:4rem;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
h5{
|
|
141
|
+
margin-right:var(--RS__flowSpacing);
|
|
142
|
+
margin-left:var(--RS__flowSpacing);
|
|
143
|
+
font-family:var(--RS__compFontFamily);
|
|
144
|
+
font-size:smaller;
|
|
145
|
+
text-indent:4rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
h6{
|
|
149
|
+
margin-right:var(--RS__flowSpacing);
|
|
150
|
+
margin-left:0;
|
|
151
|
+
font-family:var(--RS__compFontFamily);
|
|
152
|
+
font-size:smaller;
|
|
153
|
+
font-weight:normal;
|
|
154
|
+
text-indent:4rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
dl, ol, ul{
|
|
158
|
+
margin-right:var(--RS__flowSpacing);
|
|
159
|
+
margin-left:var(--RS__flowSpacing);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
table{
|
|
163
|
+
margin:0 var(--RS__flowSpacing);
|
|
164
|
+
border:1px solid currentcolor;
|
|
165
|
+
border-collapse:collapse;
|
|
166
|
+
empty-cells:show;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
thead, tbody, tfoot, table > tr{
|
|
170
|
+
vertical-align:top;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
th{
|
|
174
|
+
text-align:left;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
th, td{
|
|
178
|
+
padding:4px;
|
|
179
|
+
border:1px solid currentcolor;
|
|
180
|
+
}`;
|
|
181
|
+
export {
|
|
182
|
+
n as default
|
|
183
|
+
};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
const n = `/*!
|
|
2
|
+
* Readium CSS v.2.0.1
|
|
3
|
+
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
|
|
4
|
+
* Use of this source code is governed by a BSD-style license which is detailed in the
|
|
5
|
+
* LICENSE file present in the project repository where this source code is maintained.
|
|
6
|
+
* Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
|
|
7
|
+
* Contributors:
|
|
8
|
+
* Daniel Weck
|
|
9
|
+
* Hadrien Gardeur
|
|
10
|
+
* Innovimax
|
|
11
|
+
* L. Le Meur
|
|
12
|
+
* Mickaël Menu
|
|
13
|
+
* k_taka
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@namespace url("http://www.w3.org/1999/xhtml");
|
|
17
|
+
|
|
18
|
+
@namespace epub url("http://www.idpf.org/2007/ops");
|
|
19
|
+
|
|
20
|
+
@namespace m url("http://www.w3.org/1998/Math/MathML");
|
|
21
|
+
|
|
22
|
+
@namespace svg url("http://www.w3.org/2000/svg");
|
|
23
|
+
|
|
24
|
+
:root{
|
|
25
|
+
--RS__compFontFamily:var(--RS__baseFontFamily);
|
|
26
|
+
--RS__codeFontFamily:var(--RS__monospaceTf);
|
|
27
|
+
|
|
28
|
+
--RS__typeScale:1.125;
|
|
29
|
+
--RS__baseFontSize:100%;
|
|
30
|
+
|
|
31
|
+
--RS__flowSpacing:1.5rem;
|
|
32
|
+
--RS__paraSpacing:0;
|
|
33
|
+
--RS__paraIndent:1em;
|
|
34
|
+
|
|
35
|
+
--RS__linkColor:#0000EE;
|
|
36
|
+
--RS__visitedColor:#551A8B;
|
|
37
|
+
|
|
38
|
+
--RS__primaryColor:;
|
|
39
|
+
--RS__secondaryColor:;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
body{
|
|
43
|
+
font-size:var(--RS__baseFontSize);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
h1, h2, h3, h4, h5, h6{
|
|
47
|
+
font-family:var(--RS__compFontFamily);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
blockquote, figure, p, pre,
|
|
51
|
+
aside, footer, form, hr{
|
|
52
|
+
margin-top:var(--RS__flowSpacing);
|
|
53
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
p{
|
|
57
|
+
margin-top:var(--RS__paraSpacing);
|
|
58
|
+
margin-bottom:var(--RS__paraSpacing);
|
|
59
|
+
text-indent:var(--RS__paraIndent);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p,
|
|
63
|
+
hr + p{
|
|
64
|
+
text-indent:0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
pre{
|
|
68
|
+
font-family:var(--RS__codeFontFamily);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
code, kbd, samp, tt{
|
|
72
|
+
font-family:var(--RS__codeFontFamily);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
sub, sup{
|
|
76
|
+
position:relative;
|
|
77
|
+
font-size:67.5%;
|
|
78
|
+
line-height:1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
sub{
|
|
82
|
+
bottom:-0.2ex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
sup{
|
|
86
|
+
bottom:0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:link{
|
|
90
|
+
color:var(--RS__linkColor);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:visited{
|
|
94
|
+
color:var(--RS__visitedColor);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
h1{
|
|
98
|
+
margin-top:calc(var(--RS__flowSpacing) * 2);
|
|
99
|
+
margin-bottom:calc(var(--RS__flowSpacing) * 2);
|
|
100
|
+
font-size:calc(((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
h2{
|
|
104
|
+
margin-top:calc(var(--RS__flowSpacing) * 2);
|
|
105
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
106
|
+
font-size:calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h3{
|
|
110
|
+
margin-top:var(--RS__flowSpacing);
|
|
111
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
112
|
+
font-size:calc(1em * var(--RS__typeScale));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
h4{
|
|
116
|
+
margin-top:var(--RS__flowSpacing);
|
|
117
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
118
|
+
font-size:1em;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
h5{
|
|
122
|
+
margin-top:var(--RS__flowSpacing);
|
|
123
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
124
|
+
font-size:1em;
|
|
125
|
+
font-variant:small-caps;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
h6{
|
|
129
|
+
margin-top:var(--RS__flowSpacing);
|
|
130
|
+
margin-bottom:0;
|
|
131
|
+
font-size:1em;
|
|
132
|
+
text-transform:lowercase;
|
|
133
|
+
font-variant:small-caps;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
dl, ol, ul{
|
|
137
|
+
margin-top:var(--RS__flowSpacing);
|
|
138
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
table{
|
|
142
|
+
margin:var(--RS__flowSpacing) 0;
|
|
143
|
+
border:1px solid currentcolor;
|
|
144
|
+
border-collapse:collapse;
|
|
145
|
+
empty-cells:show;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
thead, tbody, tfoot, table > tr{
|
|
149
|
+
vertical-align:top;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
th{
|
|
153
|
+
text-align:left;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
th, td{
|
|
157
|
+
padding:4px;
|
|
158
|
+
border:1px solid currentcolor;
|
|
159
|
+
}`;
|
|
160
|
+
export {
|
|
161
|
+
n as default
|
|
162
|
+
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
const n = `/*!
|
|
2
|
+
* Readium CSS v.2.0.1
|
|
3
|
+
* Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
|
|
4
|
+
* Use of this source code is governed by a BSD-style license which is detailed in the
|
|
5
|
+
* LICENSE file present in the project repository where this source code is maintained.
|
|
6
|
+
* Core maintainer: Jiminy Panoz <jiminy.panoz@edrlab.org>
|
|
7
|
+
* Contributors:
|
|
8
|
+
* Daniel Weck
|
|
9
|
+
* Hadrien Gardeur
|
|
10
|
+
* Innovimax
|
|
11
|
+
* L. Le Meur
|
|
12
|
+
* Mickaël Menu
|
|
13
|
+
* k_taka
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@namespace url("http://www.w3.org/1999/xhtml");
|
|
17
|
+
|
|
18
|
+
@namespace epub url("http://www.idpf.org/2007/ops");
|
|
19
|
+
|
|
20
|
+
@namespace m url("http://www.w3.org/1998/Math/MathML");
|
|
21
|
+
|
|
22
|
+
@namespace svg url("http://www.w3.org/2000/svg");
|
|
23
|
+
|
|
24
|
+
:root{
|
|
25
|
+
|
|
26
|
+
--RS__compFontFamily:var(--RS__baseFontFamily);
|
|
27
|
+
--RS__codeFontFamily:var(--RS__monospaceTf);
|
|
28
|
+
|
|
29
|
+
--RS__typeScale:1.125;
|
|
30
|
+
--RS__baseFontSize:87.5%;
|
|
31
|
+
|
|
32
|
+
--RS__flowSpacing:1.5rem;
|
|
33
|
+
--RS__paraSpacing:0;
|
|
34
|
+
--RS__paraIndent:1em;
|
|
35
|
+
|
|
36
|
+
--RS__linkColor:#0000EE;
|
|
37
|
+
--RS__visitedColor:#551A8B;
|
|
38
|
+
|
|
39
|
+
--RS__primaryColor:;
|
|
40
|
+
--RS__secondaryColor:;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:root:lang(zh){
|
|
44
|
+
--RS__paraIndent:2em;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:root{
|
|
48
|
+
quotes:"\\201c" "\\201d" "\\2018" "\\2019";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
body{
|
|
52
|
+
font-size:var(--RS__baseFontSize);
|
|
53
|
+
text-align:justify;
|
|
54
|
+
text-justify:inter-character;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h1, h2, h3, h4, h5, h6{
|
|
58
|
+
font-family:var(--RS__baseFontFamily);
|
|
59
|
+
text-align:left;
|
|
60
|
+
text-align:start;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
blockquote, figure, p, pre,
|
|
64
|
+
aside, footer, form, hr{
|
|
65
|
+
margin-top:var(--RS__flowSpacing);
|
|
66
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
p{
|
|
70
|
+
margin-top:var(--RS__paraSpacing);
|
|
71
|
+
margin-bottom:var(--RS__paraSpacing);
|
|
72
|
+
text-indent:var(--RS__paraIndent);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
pre{
|
|
76
|
+
font-family:var(--RS__codeFontFamily);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
code, kbd, samp, tt{
|
|
80
|
+
font-family:var(--RS__codeFontFamily);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sub, sup{
|
|
84
|
+
position:relative;
|
|
85
|
+
font-size:67.5%;
|
|
86
|
+
line-height:1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
sub{
|
|
90
|
+
bottom:-0.2ex;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
sup{
|
|
94
|
+
bottom:0;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
em{
|
|
98
|
+
-webkit-text-emphasis:dot;
|
|
99
|
+
-epub-text-emphasis:dot;
|
|
100
|
+
text-emphasis:dot;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:link{
|
|
104
|
+
color:var(--RS__linkColor);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:visited{
|
|
108
|
+
color:var(--RS__visitedColor);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
h1{
|
|
112
|
+
margin-top:calc(var(--RS__flowSpacing) * 2);
|
|
113
|
+
margin-bottom:calc(var(--RS__flowSpacing) * 2);
|
|
114
|
+
font-size:calc(((1em * var(--RS__typeScale)) * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
115
|
+
text-align:center;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
h2{
|
|
119
|
+
margin-top:calc(var(--RS__flowSpacing) * 2);
|
|
120
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
121
|
+
font-size:calc((1em * var(--RS__typeScale)) * var(--RS__typeScale));
|
|
122
|
+
text-align:center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
h3{
|
|
126
|
+
margin-top:var(--RS__flowSpacing);
|
|
127
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
128
|
+
font-size:calc(1em * var(--RS__typeScale));
|
|
129
|
+
text-align:center;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
h4{
|
|
133
|
+
margin-top:var(--RS__flowSpacing);
|
|
134
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
135
|
+
font-family:var(--RS__compFontFamily);
|
|
136
|
+
font-size:1em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
h5{
|
|
140
|
+
margin-top:var(--RS__flowSpacing);
|
|
141
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
142
|
+
font-family:var(--RS__compFontFamily);
|
|
143
|
+
font-size:smaller;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
h6{
|
|
147
|
+
margin-top:var(--RS__flowSpacing);
|
|
148
|
+
margin-bottom:0;
|
|
149
|
+
font-family:var(--RS__compFontFamily);
|
|
150
|
+
font-size:smaller;
|
|
151
|
+
font-weight:normal;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
dl, ol, ul{
|
|
155
|
+
margin-top:var(--RS__flowSpacing);
|
|
156
|
+
margin-bottom:var(--RS__flowSpacing);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
table{
|
|
160
|
+
margin:var(--RS__flowSpacing) 0;
|
|
161
|
+
border:1px solid currentcolor;
|
|
162
|
+
border-collapse:collapse;
|
|
163
|
+
empty-cells:show;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
thead, tbody, tfoot, table > tr{
|
|
167
|
+
vertical-align:top;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
th{
|
|
171
|
+
text-align:left;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
th, td{
|
|
175
|
+
padding:4px;
|
|
176
|
+
border:1px solid currentcolor;
|
|
177
|
+
}`;
|
|
178
|
+
export {
|
|
179
|
+
n as default
|
|
180
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const o = `/* Readium CSS
|
|
2
|
+
EBPAJ Fonts Patch module
|
|
3
|
+
|
|
4
|
+
A stylesheet improving EBPAJ @font-face declarations to cover all platforms
|
|
5
|
+
|
|
6
|
+
Repo: https://github.com/readium/css */
|
|
7
|
+
|
|
8
|
+
/* EBPAJ template only references fonts from MS Windows…
|
|
9
|
+
so we must reference fonts from other platforms
|
|
10
|
+
and override authors’ stylesheets.
|
|
11
|
+
What we do there is keeping their default value and providing fallbacks.
|
|
12
|
+
|
|
13
|
+
/!\\ /!\\ /!\\ /!\\ /!\\
|
|
14
|
+
FYI, you might want to load this polyfill only if you find
|
|
15
|
+
one of the following metadata items in the OPF package:
|
|
16
|
+
- version 1:
|
|
17
|
+
<dc:description id="ebpaj-guide">ebpaj-guide-1.0</dc:description>
|
|
18
|
+
- version 1.1:
|
|
19
|
+
<meta property="ebpaj:guide-version">1.1</meta>
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
Hiragino PostScript Font name lists:
|
|
24
|
+
https://www.screen.co.jp/ga_product/sento/support/QA/ss_psname.html
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/* 横組み用 (horizontal writing) */
|
|
28
|
+
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "serif-ja";
|
|
31
|
+
src: local("MS P明朝"), /* for IE */
|
|
32
|
+
local("MS PMincho"), /* MS P明朝 */
|
|
33
|
+
local("HiraMinProN-W3"), local("Hiragino Mincho ProN"), /* ヒラギノ明朝 ProN W3 */
|
|
34
|
+
local("HiraMinPro-W3"), local("Hiragino Mincho Pro"), /* ヒラギノ明朝 Pro W3 */
|
|
35
|
+
local("YuMin-Medium"), local("YuMincho"), /* 游明朝体(macOS) */
|
|
36
|
+
local("Yu Mincho"), /* 游明朝(Windows) */
|
|
37
|
+
local("BIZ UDPMincho"); /* BIZ UDP明朝 */
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: "sans-serif-ja";
|
|
42
|
+
src: local("MS Pゴシック"), /* for IE */
|
|
43
|
+
local("MS PGothic"), /* MS Pゴシック */
|
|
44
|
+
local("HiraginoSans-W3"), local("Hiragino Sans"), /* ヒラギノ角ゴシック */
|
|
45
|
+
local("HiraKakuProN-W3"), local("Hiragino Kaku Gothic ProN"), /* ヒラギノ角ゴ ProN W3 */
|
|
46
|
+
local("HiraKakuPro-W3"), local("Hiragino Kaku Gothic Pro"), /* ヒラギノ角ゴ Pro W3 */
|
|
47
|
+
local("ヒラギノ角ゴ W3"), /* for old Safari */
|
|
48
|
+
local("HiraginoKaku-W3-90msp-RKSJ-H"), /* ヒラギノ角ゴ W3(TrueType) */
|
|
49
|
+
local("YuGothic-Medium"), local("YuGothic"), /* 游ゴシック体(macOS) */
|
|
50
|
+
local("Yu Gothic Medium"), local("Yu Gothic"), /* 游ゴシック(Windows) "Yu Gothic" is a fallback. */
|
|
51
|
+
local("BIZ UDPGothic"); /* BIZ UDPゴシック */
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* 縦組み用 (vertical writing) */
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: "serif-ja-v";
|
|
58
|
+
src: local("MS 明朝"), /* for IE */
|
|
59
|
+
local("MS Mincho"), /* MS 明朝 */
|
|
60
|
+
local("HiraMinProN-W3"), local("Hiragino Mincho ProN"), /* ヒラギノ明朝 ProN W3 */
|
|
61
|
+
local("HiraMinPro-W3"), local("Hiragino Mincho Pro"), /* ヒラギノ明朝 Pro W3 */
|
|
62
|
+
local("YuMin-Medium"), local("YuMincho"), /* 游明朝体(macOS) */
|
|
63
|
+
local("Yu Mincho"), /* 游明朝(Windows) */
|
|
64
|
+
local("BIZ UDMincho"); /* BIZ UD明朝 */
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@font-face {
|
|
68
|
+
font-family: "sans-serif-ja-v";
|
|
69
|
+
src: local("MS ゴシック"), /* for IE */
|
|
70
|
+
local("MS Gothic"), /* MS ゴシック */
|
|
71
|
+
local("HiraginoSans-W3"), local("Hiragino Sans"), /* ヒラギノ角ゴシック */
|
|
72
|
+
local("HiraKakuProN-W3"), local("Hiragino Kaku Gothic ProN"), /* ヒラギノ角ゴ ProN W3 */
|
|
73
|
+
local("HiraKakuPro-W3"), local("Hiragino Kaku Gothic Pro"), /* ヒラギノ角ゴ Pro W3 */
|
|
74
|
+
local("ヒラギノ角ゴ W3"), /* for old Safari */
|
|
75
|
+
local("HiraKakuDS-W3-83pv-RKSJ-H"), /* ヒラギノ角ゴ W3(TrueType) */
|
|
76
|
+
local("YuGothic-Medium"), local("YuGothic"), /* 游ゴシック体(macOS) */
|
|
77
|
+
local("Yu Gothic Medium"), local("Yu Gothic"), /* 游ゴシック(Windows) "Yu Gothic" is a fallback. */
|
|
78
|
+
local("BIZ UDGothic"); /* BIZ UDゴシック */
|
|
79
|
+
}`;
|
|
80
|
+
export {
|
|
81
|
+
o as default
|
|
82
|
+
};
|