@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,475 @@
|
|
|
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__viewportWidth:100%;
|
|
27
|
+
|
|
28
|
+
--RS__pageGutter:0;
|
|
29
|
+
|
|
30
|
+
--RS__defaultLineLength:100%;
|
|
31
|
+
|
|
32
|
+
--RS__colGap:0;
|
|
33
|
+
|
|
34
|
+
--RS__colCount:1;
|
|
35
|
+
|
|
36
|
+
--RS__colWidth:100vw;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@page{
|
|
40
|
+
margin:0 !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
:root{
|
|
44
|
+
position:relative;
|
|
45
|
+
|
|
46
|
+
-webkit-column-width:var(--RS__colWidth);
|
|
47
|
+
-moz-column-width:var(--RS__colWidth);
|
|
48
|
+
column-width:var(--RS__colWidth);
|
|
49
|
+
-webkit-column-count:var(--RS__colCount);
|
|
50
|
+
-moz-column-count:var(--RS__colCount);
|
|
51
|
+
column-count:var(--RS__colCount);
|
|
52
|
+
|
|
53
|
+
-webkit-column-gap:var(--RS__colGap);
|
|
54
|
+
-moz-column-gap:var(--RS__colGap);
|
|
55
|
+
column-gap:var(--RS__colGap);
|
|
56
|
+
-moz-column-fill:auto;
|
|
57
|
+
column-fill:auto;
|
|
58
|
+
width:100%;
|
|
59
|
+
height:100vh;
|
|
60
|
+
max-width:100%;
|
|
61
|
+
max-height:100vh;
|
|
62
|
+
min-width:100%;
|
|
63
|
+
min-height:100vh;
|
|
64
|
+
padding:0 !important;
|
|
65
|
+
margin:0 !important;
|
|
66
|
+
font-size:1rem !important;
|
|
67
|
+
box-sizing:border-box;
|
|
68
|
+
|
|
69
|
+
hanging-punctuation:last allow-end;
|
|
70
|
+
-webkit-touch-callout:none;
|
|
71
|
+
-ms-writing-mode:tb-rl;
|
|
72
|
+
-webkit-writing-mode:vertical-rl;
|
|
73
|
+
writing-mode:vertical-rl;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:root:lang(mn-Mong){
|
|
77
|
+
-ms-writing-mode:tb;
|
|
78
|
+
-webkit-writing-mode:vertical-lr;
|
|
79
|
+
writing-mode:vertical-lr;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
body{
|
|
83
|
+
width:100%;
|
|
84
|
+
max-height:var(--RS__defaultLineLength) !important;
|
|
85
|
+
margin:auto 0 !important;
|
|
86
|
+
box-sizing:border-box;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:root:not([style*="readium-scroll-on"]) body{
|
|
90
|
+
padding:var(--RS__pageGutter) 0 !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:root:not([style*="readium-noOverflow-on"]) body{
|
|
94
|
+
overflow:hidden;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@supports (overflow: clip){
|
|
98
|
+
|
|
99
|
+
:root:not([style*="readium-noOverflow-on"]){
|
|
100
|
+
overflow:clip;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:root:not([style*="readium-noOverflow-on"]) body{
|
|
104
|
+
overflow:clip;
|
|
105
|
+
overflow-clip-margin:content-box;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:root[style*="readium-scroll-on"],
|
|
110
|
+
:root[style*="readium-noVerticalPagination-on"]{
|
|
111
|
+
-webkit-columns:auto auto !important;
|
|
112
|
+
-moz-columns:auto auto !important;
|
|
113
|
+
columns:auto auto !important;
|
|
114
|
+
width:auto !important;
|
|
115
|
+
max-width:none !important;
|
|
116
|
+
max-height:100vh !important;
|
|
117
|
+
min-width:0 !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:root[style*="readium-scroll-on"] body,
|
|
121
|
+
:root[style*="readium-noVerticalPagination-on"] body{
|
|
122
|
+
max-width:var(--RS__defaultLineLength) !important;
|
|
123
|
+
box-sizing:border-box !important;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@supports (overflow: clip){
|
|
127
|
+
|
|
128
|
+
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]){
|
|
129
|
+
overflow:auto;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
:root[style*="readium-scroll-on"]:not([style*="readium-noOverflow-on"]) body{
|
|
133
|
+
overflow:clip;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingTop"] body{
|
|
138
|
+
padding-top:var(--RS__scrollPaddingTop) !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingBottom"] body{
|
|
142
|
+
padding-bottom:var(--RS__scrollPaddingBottom) !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingLeft"] body{
|
|
146
|
+
padding-left:var(--RS__scrollPaddingLeft) !important;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
:root[style*="readium-scroll-on"][style*="--RS__scrollPaddingRight"] body{
|
|
150
|
+
padding-right:var(--RS__scrollPaddingRight) !important;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
:root[style*="--USER__backgroundColor"]{
|
|
154
|
+
background-color:var(--USER__backgroundColor) !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
:root[style*="--USER__backgroundColor"] *{
|
|
158
|
+
background-color:transparent !important;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
:root[style*="--USER__textColor"]{
|
|
162
|
+
color:var(--USER__textColor) !important;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
:root[style*="--USER__textColor"] *:not(a){
|
|
166
|
+
color:inherit !important;
|
|
167
|
+
background-color:transparent !important;
|
|
168
|
+
border-color:currentcolor !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
:root[style*="--USER__textColor"] svg text{
|
|
172
|
+
fill:currentcolor !important;
|
|
173
|
+
stroke:none !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:root[style*="--USER__linkColor"] a:link,
|
|
177
|
+
:root[style*="--USER__linkColor"] a:link *{
|
|
178
|
+
color:var(--USER__linkColor) !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:root[style*="--USER__visitedColor"] a:visited,
|
|
182
|
+
:root[style*="--USER__visitedColor"] a:visited *{
|
|
183
|
+
color:var(--USER__visitedColor) !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::-moz-selection{
|
|
187
|
+
color:var(--USER__selectionTextColor) !important;
|
|
188
|
+
background-color:var(--USER__selectionBackgroundColor) !important;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
:root[style*="--USER__selectionBackgroundColor"][style*="--USER__selectionTextColor"] ::selection{
|
|
192
|
+
color:var(--USER__selectionTextColor) !important;
|
|
193
|
+
background-color:var(--USER__selectionBackgroundColor) !important;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:root[style*="--USER__lineLength"] body{
|
|
197
|
+
max-height:var(--USER__lineLength) !important;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:root[style*="--USER__fontFamily"]{
|
|
201
|
+
font-family:var(--USER__fontFamily) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:root[style*="--USER__fontFamily"] *{
|
|
205
|
+
font-family:revert !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
|
|
209
|
+
zoom:var(--USER__fontSize) !important;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
:root:not([style*="readium-deprecatedFontSize-on"])[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
|
|
213
|
+
-webkit-text-size-adjust:var(--USER__fontSize) !important;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
@supports selector(figure:has(> img)){
|
|
217
|
+
|
|
218
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> img),
|
|
219
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> video),
|
|
220
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> svg),
|
|
221
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> canvas),
|
|
222
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> iframe),
|
|
223
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figure:has(> audio),
|
|
224
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> img:only-child),
|
|
225
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> video:only-child),
|
|
226
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> svg:only-child),
|
|
227
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> canvas:only-child),
|
|
228
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> iframe:only-child),
|
|
229
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] div:has(> audio:only-child),
|
|
230
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] table{
|
|
231
|
+
zoom:calc(100% / var(--USER__fontSize)) !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] figcaption,
|
|
235
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] caption,
|
|
236
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] td,
|
|
237
|
+
:root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] th{
|
|
238
|
+
zoom:var(--USER__fontSize) !important;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
@supports not (zoom: 1){
|
|
243
|
+
|
|
244
|
+
:root[style*="--USER__fontSize"]{
|
|
245
|
+
font-size:var(--USER__fontSize) !important;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
:root[style*="readium-deprecatedFontSize-on"][style*="--USER__fontSize"]{
|
|
250
|
+
font-size:var(--USER__fontSize) !important;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
:root[style*="--USER__lineHeight"]{
|
|
254
|
+
line-height:var(--USER__lineHeight) !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:root[style*="--USER__lineHeight"] body,
|
|
258
|
+
:root[style*="--USER__lineHeight"] p,
|
|
259
|
+
:root[style*="--USER__lineHeight"] li,
|
|
260
|
+
:root[style*="--USER__lineHeight"] div{
|
|
261
|
+
line-height:inherit;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
:root[style*="--USER__paraSpacing"] p{
|
|
265
|
+
margin-right:var(--USER__paraSpacing) !important;
|
|
266
|
+
margin-left:var(--USER__paraSpacing) !important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
:root[style*="--USER__fontWeight"] body{
|
|
270
|
+
font-weight:var(--USER__fontWeight) !important;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
:root[style*="--USER__fontWeight"] b,
|
|
274
|
+
:root[style*="--USER__fontWeight"] strong{
|
|
275
|
+
font-weight:bolder;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
:root[style*="--USER__fontWidth"] body{
|
|
279
|
+
font-stretch:var(--USER__fontWidth) !important;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
:root[style*="--USER__fontOpticalSizing"] body{
|
|
283
|
+
font-optical-sizing:var(--USER__fontOpticalSizing) !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
:root[style*="--USER__letterSpacing"] h1,
|
|
287
|
+
:root[style*="--USER__letterSpacing"] h2,
|
|
288
|
+
:root[style*="--USER__letterSpacing"] h3,
|
|
289
|
+
:root[style*="--USER__letterSpacing"] h4,
|
|
290
|
+
:root[style*="--USER__letterSpacing"] h5,
|
|
291
|
+
:root[style*="--USER__letterSpacing"] h6,
|
|
292
|
+
:root[style*="--USER__letterSpacing"] p,
|
|
293
|
+
:root[style*="--USER__letterSpacing"] li,
|
|
294
|
+
:root[style*="--USER__letterSpacing"] div,
|
|
295
|
+
:root[style*="--USER__letterSpacing"] dt,
|
|
296
|
+
:root[style*="--USER__letterSpacing"] dd{
|
|
297
|
+
letter-spacing:var(--USER__letterSpacing);
|
|
298
|
+
font-variant:none;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
:root[style*="readium-noRuby-on"] body rt,
|
|
302
|
+
:root[style*="readium-noRuby-on"] body rp{
|
|
303
|
+
display:none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:root[style*="readium-blend-on"] svg,
|
|
307
|
+
:root[style*="readium-blend-on"] img{
|
|
308
|
+
background-color:transparent !important;
|
|
309
|
+
mix-blend-mode:multiply !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
:root[style*="--USER__darkenImages"] img{
|
|
313
|
+
-webkit-filter:brightness(var(--USER__darkenImages)) !important;
|
|
314
|
+
filter:brightness(var(--USER__darkenImages)) !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
:root[style*="readium-darken-on"] img{
|
|
318
|
+
-webkit-filter:brightness(80%) !important;
|
|
319
|
+
filter:brightness(80%) !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
:root[style*="--USER__invertImages"] img{
|
|
323
|
+
-webkit-filter:invert(var(--USER__invertImages)) !important;
|
|
324
|
+
filter:invert(var(--USER__invertImages)) !important;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:root[style*="readium-invert-on"] img{
|
|
328
|
+
-webkit-filter:invert(100%) !important;
|
|
329
|
+
filter:invert(100%) !important;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:root[style*="--USER__darkenImages"][style*="--USER__invertImages"] img{
|
|
333
|
+
-webkit-filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
|
|
334
|
+
filter:brightness(var(--USER__darkenImages)) invert(var(--USER__invertImages)) !important;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
:root[style*="readium-darken-on"][style*="--USER__invertImages"] img{
|
|
338
|
+
-webkit-filter:brightness(80%) invert(var(--USER__invertImages)) !important;
|
|
339
|
+
filter:brightness(80%) invert(var(--USER__invertImages)) !important;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
:root[style*="--USER__darkenImages"][style*="readium-invert-on"] img{
|
|
343
|
+
-webkit-filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
|
|
344
|
+
filter:brightness(var(--USER__darkenImages)) invert(100%) !important;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
:root[style*="readium-darken-on"][style*="readium-invert-on"] img{
|
|
348
|
+
-webkit-filter:brightness(80%) invert(100%) !important;
|
|
349
|
+
filter:brightness(80%) invert(100%) !important;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
:root[style*="--USER__invertGaiji"] img[class*="gaiji"]{
|
|
353
|
+
-webkit-filter:invert(var(--USER__invertGaiji)) !important;
|
|
354
|
+
filter:invert(var(--USER__invertGaiji)) !important;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
:root[style*="readium-invertGaiji-on"] img[class*="gaiji"]{
|
|
358
|
+
-webkit-filter:invert(100%) !important;
|
|
359
|
+
filter:invert(100%) !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
:root[style*="readium-normalize-on"]{
|
|
363
|
+
--USER__typeScale:1.2;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
:root[style*="readium-normalize-on"] p,
|
|
367
|
+
:root[style*="readium-normalize-on"] li,
|
|
368
|
+
:root[style*="readium-normalize-on"] div,
|
|
369
|
+
:root[style*="readium-normalize-on"] pre,
|
|
370
|
+
:root[style*="readium-normalize-on"] dd{
|
|
371
|
+
font-size:1rem !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
:root[style*="readium-normalize-on"] h1{
|
|
375
|
+
font-size:1.75rem !important;
|
|
376
|
+
font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
:root[style*="readium-normalize-on"] h2{
|
|
380
|
+
font-size:1.5rem !important;
|
|
381
|
+
font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:root[style*="readium-normalize-on"] h3{
|
|
385
|
+
font-size:1.25rem !important;
|
|
386
|
+
font-size:calc(1rem * var(--USER__typeScale)) !important;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
:root[style*="readium-normalize-on"] h4,
|
|
390
|
+
:root[style*="readium-normalize-on"] h5,
|
|
391
|
+
:root[style*="readium-normalize-on"] h6{
|
|
392
|
+
font-size:1rem !important;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
:root[style*="readium-normalize-on"] small{
|
|
396
|
+
font-size:smaller !important;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
:root[style*="readium-normalize-on"] sub,
|
|
400
|
+
:root[style*="readium-normalize-on"] sup{
|
|
401
|
+
font-size:67.5% !important;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
:root[style*="readium-normalize-on"][style*="--USER__typeScale"] h1{
|
|
405
|
+
font-size:calc(((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
:root[style*="readium-normalize-on"][style*="--USER__typeScale"] h2{
|
|
409
|
+
font-size:calc((1rem * var(--USER__typeScale)) * var(--USER__typeScale)) !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
:root[style*="readium-normalize-on"][style*="--USER__typeScale"] h3{
|
|
413
|
+
font-size:calc(1rem * var(--USER__typeScale)) !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
:root[style*="readium-iPadOSPatch-on"] body{
|
|
417
|
+
-webkit-text-size-adjust:none;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
:root[style*="readium-iPadOSPatch-on"] p,
|
|
421
|
+
:root[style*="readium-iPadOSPatch-on"] h1,
|
|
422
|
+
:root[style*="readium-iPadOSPatch-on"] h2,
|
|
423
|
+
:root[style*="readium-iPadOSPatch-on"] h3,
|
|
424
|
+
:root[style*="readium-iPadOSPatch-on"] h4,
|
|
425
|
+
:root[style*="readium-iPadOSPatch-on"] h5,
|
|
426
|
+
:root[style*="readium-iPadOSPatch-on"] h6,
|
|
427
|
+
:root[style*="readium-iPadOSPatch-on"] li,
|
|
428
|
+
:root[style*="readium-iPadOSPatch-on"] th,
|
|
429
|
+
:root[style*="readium-iPadOSPatch-on"] td,
|
|
430
|
+
:root[style*="readium-iPadOSPatch-on"] dt,
|
|
431
|
+
:root[style*="readium-iPadOSPatch-on"] dd,
|
|
432
|
+
:root[style*="readium-iPadOSPatch-on"] pre,
|
|
433
|
+
:root[style*="readium-iPadOSPatch-on"] address,
|
|
434
|
+
:root[style*="readium-iPadOSPatch-on"] details,
|
|
435
|
+
:root[style*="readium-iPadOSPatch-on"] summary,
|
|
436
|
+
:root[style*="readium-iPadOSPatch-on"] figcaption,
|
|
437
|
+
:root[style*="readium-iPadOSPatch-on"] div:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)),
|
|
438
|
+
:root[style*="readium-iPadOSPatch-on"] aside:not(:has(p, h1, h2, h3, h4, h5, h6, li, th, td, dt, dd, pre, address, aside, details, figcaption, summary)){
|
|
439
|
+
-webkit-text-zoom:reset;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
:root[style*="readium-iPadOSPatch-on"] abbr,
|
|
443
|
+
:root[style*="readium-iPadOSPatch-on"] b,
|
|
444
|
+
:root[style*="readium-iPadOSPatch-on"] bdi,
|
|
445
|
+
:root[style*="readium-iPadOSPatch-on"] bdo,
|
|
446
|
+
:root[style*="readium-iPadOSPatch-on"] cite,
|
|
447
|
+
:root[style*="readium-iPadOSPatch-on"] code,
|
|
448
|
+
:root[style*="readium-iPadOSPatch-on"] dfn,
|
|
449
|
+
:root[style*="readium-iPadOSPatch-on"] em,
|
|
450
|
+
:root[style*="readium-iPadOSPatch-on"] i,
|
|
451
|
+
:root[style*="readium-iPadOSPatch-on"] kbd,
|
|
452
|
+
:root[style*="readium-iPadOSPatch-on"] mark,
|
|
453
|
+
:root[style*="readium-iPadOSPatch-on"] q,
|
|
454
|
+
:root[style*="readium-iPadOSPatch-on"] rp,
|
|
455
|
+
:root[style*="readium-iPadOSPatch-on"] rt,
|
|
456
|
+
:root[style*="readium-iPadOSPatch-on"] ruby,
|
|
457
|
+
:root[style*="readium-iPadOSPatch-on"] s,
|
|
458
|
+
:root[style*="readium-iPadOSPatch-on"] samp,
|
|
459
|
+
:root[style*="readium-iPadOSPatch-on"] small,
|
|
460
|
+
:root[style*="readium-iPadOSPatch-on"] span,
|
|
461
|
+
:root[style*="readium-iPadOSPatch-on"] strong,
|
|
462
|
+
:root[style*="readium-iPadOSPatch-on"] sub,
|
|
463
|
+
:root[style*="readium-iPadOSPatch-on"] sup,
|
|
464
|
+
:root[style*="readium-iPadOSPatch-on"] time,
|
|
465
|
+
:root[style*="readium-iPadOSPatch-on"] u,
|
|
466
|
+
:root[style*="readium-iPadOSPatch-on"] var{
|
|
467
|
+
-webkit-text-zoom:normal;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
:root[style*="readium-iPadOSPatch-on"] p:not(:has(b, cite, em, i, q, s, small, span, strong)):first-line{
|
|
471
|
+
-webkit-text-zoom:normal;
|
|
472
|
+
}`;
|
|
473
|
+
export {
|
|
474
|
+
n as default
|
|
475
|
+
};
|