@readium/navigator 2.5.2-beta.5 → 2.5.3

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.
Files changed (31) hide show
  1. package/dist/{ReadiumCSS-after-DBPN8It0.js → ReadiumCSS-after-BYNAMW5u.js} +4 -4
  2. package/dist/{ReadiumCSS-after-CVNJvQab.js → ReadiumCSS-after-C8SjJ_Rf.js} +4 -4
  3. package/dist/{ReadiumCSS-after-CPAYSG9F.js → ReadiumCSS-after-Dzd22Ssm.js} +6 -7
  4. package/dist/{ReadiumCSS-after-Cpw6SSeZ.js → ReadiumCSS-after-b-ykC0_O.js} +11 -12
  5. package/dist/ReadiumCSS-before-6kD9Qj82.js +529 -0
  6. package/dist/ReadiumCSS-before-CvMFpmud.js +529 -0
  7. package/dist/ReadiumCSS-before-crwPhKrV.js +529 -0
  8. package/dist/ReadiumCSS-before-usMdEglk.js +530 -0
  9. package/dist/{ReadiumCSS-default-BMLfH2r9.js → ReadiumCSS-default-BVp3Ygi2.js} +1 -1
  10. package/dist/{ReadiumCSS-default-C_BHdXWz.js → ReadiumCSS-default-CL_hP__L.js} +1 -1
  11. package/dist/{ReadiumCSS-default-BTgk8NbH.js → ReadiumCSS-default-nJgSC4Z_.js} +1 -1
  12. package/dist/{ReadiumCSS-default-C7kHIm6s.js → ReadiumCSS-default-vv7hNCaM.js} +1 -1
  13. package/dist/index.js +483 -448
  14. package/dist/index.umd.cjs +702 -289
  15. package/package.json +2 -2
  16. package/src/Navigator.ts +5 -0
  17. package/src/audio/AudioNavigator.ts +3 -3
  18. package/src/epub/EpubNavigator.ts +1 -5
  19. package/src/epub/preferences/EpubPreferencesEditor.ts +6 -6
  20. package/src/helpers/lineLength.ts +1 -1
  21. package/src/preferences/Types.ts +21 -1
  22. package/src/webpub/WebPubNavigator.ts +2 -3
  23. package/types/src/Navigator.d.ts +4 -1
  24. package/types/src/audio/AudioNavigator.d.ts +3 -3
  25. package/types/src/epub/EpubNavigator.d.ts +2 -5
  26. package/types/src/preferences/Types.d.ts +15 -0
  27. package/types/src/webpub/WebPubNavigator.d.ts +2 -2
  28. package/dist/ReadiumCSS-before-CA1r4W7i.js +0 -425
  29. package/dist/ReadiumCSS-before-D5x0zuZP.js +0 -425
  30. package/dist/ReadiumCSS-before-DXNoxSjL.js +0 -426
  31. package/dist/ReadiumCSS-before-DtkzLMzT.js +0 -425
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.0
2
+ * Readium CSS v.2.0.4
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -258,7 +258,7 @@ body{
258
258
  :root[style*="--USER__lineHeight"] p,
259
259
  :root[style*="--USER__lineHeight"] li,
260
260
  :root[style*="--USER__lineHeight"] div{
261
- line-height:inherit;
261
+ line-height:var(--USER__lineHeight) !important;
262
262
  }
263
263
 
264
264
  :root[style*="--USER__paraSpacing"] p{
@@ -294,8 +294,8 @@ body{
294
294
  :root[style*="--USER__letterSpacing"] div,
295
295
  :root[style*="--USER__letterSpacing"] dt,
296
296
  :root[style*="--USER__letterSpacing"] dd{
297
- letter-spacing:var(--USER__letterSpacing);
298
- font-variant:none;
297
+ letter-spacing:var(--USER__letterSpacing) !important;
298
+ font-variant:none !important;
299
299
  }
300
300
 
301
301
  :root[style*="readium-noRuby-on"] body rt,
@@ -1,5 +1,5 @@
1
1
  const t = `/*!
2
- * Readium CSS v.2.0.0
2
+ * Readium CSS v.2.0.4
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -273,7 +273,7 @@ body{
273
273
  :root[style*="--USER__lineHeight"] p,
274
274
  :root[style*="--USER__lineHeight"] li,
275
275
  :root[style*="--USER__lineHeight"] div{
276
- line-height:inherit;
276
+ line-height:var(--USER__lineHeight) !important;
277
277
  }
278
278
 
279
279
  :root[style*="--USER__paraSpacing"] p{
@@ -309,8 +309,8 @@ body{
309
309
  :root[style*="--USER__letterSpacing"] div,
310
310
  :root[style*="--USER__letterSpacing"] dt,
311
311
  :root[style*="--USER__letterSpacing"] dd{
312
- letter-spacing:var(--USER__letterSpacing);
313
- font-variant:none;
312
+ letter-spacing:var(--USER__letterSpacing) !important;
313
+ font-variant:none !important;
314
314
  }
315
315
 
316
316
  :root[style*="readium-noRuby-on"] body rt,
@@ -1,5 +1,5 @@
1
- const t = `/*!
2
- * Readium CSS v.2.0.0
1
+ const n = `/*!
2
+ * Readium CSS v.2.0.4
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -295,7 +295,7 @@ body{
295
295
  :root[style*="--USER__lineHeight"] p,
296
296
  :root[style*="--USER__lineHeight"] li,
297
297
  :root[style*="--USER__lineHeight"] div{
298
- line-height:inherit;
298
+ line-height:var(--USER__lineHeight) !important;
299
299
  }
300
300
 
301
301
  :root[style*="--USER__paraSpacing"] p{
@@ -315,8 +315,7 @@ body{
315
315
  text-indent:var(--USER__paraIndent) !important;
316
316
  }
317
317
 
318
- :root[style*="--USER__paraIndent"] p *,
319
- :root[style*="--USER__paraIndent"] p:first-letter{
318
+ :root[style*="--USER__paraIndent"] p *{
320
319
  text-indent:0 !important;
321
320
  }
322
321
 
@@ -331,7 +330,7 @@ body{
331
330
  :root[style*="--USER__wordSpacing"] div,
332
331
  :root[style*="--USER__wordSpacing"] dt,
333
332
  :root[style*="--USER__wordSpacing"] dd{
334
- word-spacing:var(--USER__wordSpacing);
333
+ word-spacing:var(--USER__wordSpacing) !important;
335
334
  }
336
335
 
337
336
  :root[style*="--USER__ligatures"]{
@@ -527,5 +526,5 @@ body{
527
526
  -webkit-text-zoom:normal;
528
527
  }`;
529
528
  export {
530
- t as default
529
+ n as default
531
530
  };
@@ -1,5 +1,5 @@
1
1
  const n = `/*!
2
- * Readium CSS v.2.0.0
2
+ * Readium CSS v.2.0.4
3
3
  * Copyright (c) 2017–2026. Readium Foundation. All rights reserved.
4
4
  * Use of this source code is governed by a BSD-style license which is detailed in the
5
5
  * LICENSE file present in the project repository where this source code is maintained.
@@ -247,11 +247,11 @@ body{
247
247
  :root[style*="--USER__bodyHyphens"] li,
248
248
  :root[style*="--USER__bodyHyphens"] div,
249
249
  :root[style*="--USER__bodyHyphens"] dd{
250
- -webkit-hyphens:inherit;
251
- -moz-hyphens:inherit;
252
- -ms-hyphens:inherit;
253
- -epub-hyphens:inherit;
254
- hyphens:inherit;
250
+ -webkit-hyphens:var(--USER__bodyHyphens) !important;
251
+ -moz-hyphens:var(--USER__bodyHyphens) !important;
252
+ -ms-hyphens:var(--USER__bodyHyphens) !important;
253
+ -epub-hyphens:var(--USER__bodyHyphens) !important;
254
+ hyphens:var(--USER__bodyHyphens) !important;
255
255
  }
256
256
 
257
257
  :root[style*="--USER__fontFamily"]{
@@ -342,7 +342,7 @@ body{
342
342
  :root[style*="--USER__lineHeight"] p,
343
343
  :root[style*="--USER__lineHeight"] li,
344
344
  :root[style*="--USER__lineHeight"] div{
345
- line-height:inherit;
345
+ line-height:var(--USER__lineHeight) !important;
346
346
  }
347
347
 
348
348
  :root[style*="--USER__paraSpacing"] p{
@@ -362,8 +362,7 @@ body{
362
362
  text-indent:var(--USER__paraIndent) !important;
363
363
  }
364
364
 
365
- :root[style*="--USER__paraIndent"] p *,
366
- :root[style*="--USER__paraIndent"] p:first-letter{
365
+ :root[style*="--USER__paraIndent"] p *{
367
366
  text-indent:0 !important;
368
367
  }
369
368
 
@@ -378,7 +377,7 @@ body{
378
377
  :root[style*="--USER__wordSpacing"] div,
379
378
  :root[style*="--USER__wordSpacing"] dt,
380
379
  :root[style*="--USER__wordSpacing"] dd{
381
- word-spacing:var(--USER__wordSpacing);
380
+ word-spacing:var(--USER__wordSpacing) !important;
382
381
  }
383
382
 
384
383
  :root[style*="--USER__letterSpacing"] h1,
@@ -392,8 +391,8 @@ body{
392
391
  :root[style*="--USER__letterSpacing"] div,
393
392
  :root[style*="--USER__letterSpacing"] dt,
394
393
  :root[style*="--USER__letterSpacing"] dd{
395
- letter-spacing:var(--USER__letterSpacing);
396
- font-variant:none;
394
+ letter-spacing:var(--USER__letterSpacing) !important;
395
+ font-variant:none !important;
397
396
  }
398
397
 
399
398
  :root[style*="--USER__ligatures"]{
@@ -0,0 +1,529 @@
1
+ const n = `/*!
2
+ * Readium CSS v.2.0.4
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
+ @-ms-viewport{
25
+ width:device-width;
26
+ }
27
+
28
+ @viewport{
29
+ width:device-width;
30
+ zoom:1;
31
+ }
32
+
33
+ :root{
34
+
35
+ --RS__sans-serif-ja-v:'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ W3', 'YuGothic', 'Yu Gothic Medium', 'BIZ UDGothic', 'Yu Gothic', 'MSゴシック', 'MS Gothic', sans-serif;
36
+
37
+ --RS__serif-ja-v:'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'YuMincho', 'BIZ UDMincho', 'Yu Mincho', 'MS明朝', 'MS Mincho', serif;
38
+
39
+ --RS__sans-serif-ja:'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ W3', 'YuGothic', 'Yu Gothic Medium', 'BIZ UDPGothic', 'Yu Gothic', 'MS Pゴシック', 'MS PGothic', sans-serif;
40
+
41
+ --RS__serif-ja:'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'YuMincho', 'BIZ UDPMincho', 'Yu Mincho', 'MS P明朝', 'MS PMincho', serif;
42
+
43
+ --RS__monospaceTf:ui-monospace, 'Andale Mono', 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
44
+
45
+ --RS__humanistTf:Seravek, Calibri, 'Gill Sans Nova', Roboto, Ubuntu, 'DejaVu Sans', source-sans-pro, sans-serif;
46
+
47
+ --RS__sansTf:-ui-sans-serif, -apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI', Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Liberation Sans', Arial, sans-serif;
48
+
49
+ --RS__modernTf:Athelas, Constantia, Charter, 'Bitstream Charter', Cambria, 'Georgia Pro', Georgia, serif;
50
+
51
+ --RS__oldStyleTf:'Iowan Old Style', Sitka, 'Sitka Text', Palatino, 'Book Antiqua', 'URW Palladio L', P052, serif;
52
+
53
+ --RS__zh-HK-lineHeightCompensation:1.167;
54
+
55
+ --RS__zh-HK-baseFontFamily:'方體', 'PingFang HK', '方體', 'PingFang TC', '黑體', 'Heiti TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto, 'Noto Sans CJK TC', sans-serif;
56
+
57
+ --RS__zh-TW-lineHeightCompensation:1.167;
58
+
59
+ --RS__zh-TW-baseFontFamily:'方體', 'PingFang TC', '黑體', 'Heiti TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto, 'Noto Sans CJK TC', sans-serif;
60
+
61
+ --RS__zh-Hant-lineHeightCompensation:1.167;
62
+
63
+ --RS__zh-Hant-baseFontFamily:'方體', 'PingFang TC', '黑體', 'Heiti TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto, 'Noto Sans CJK TC', sans-serif;
64
+
65
+ --RS__zh-lineHeightCompensation:1.167;
66
+
67
+ --RS__zh-baseFontFamily:'方体', 'PingFang SC', '黑体', 'Heiti SC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', Roboto, Noto, 'Noto Sans CJK SC', sans-serif;
68
+
69
+ --RS__th-lineHeightCompensation:1.067;
70
+
71
+ --RS__th-baseFontFamily:Thonburi, 'Leelawadee UI', 'Cordia New', Roboto, Noto, 'Noto Sans Thai', sans-serif;
72
+
73
+ --RS__te-baseFontFamily:'Kohinoor Telugu', 'Telugu Sangam MN', 'Nirmala UI', Gautami, Roboto, Noto, 'Noto Sans Telugu', sans-serif;
74
+
75
+ --RS__ta-lineHeightCompensation:1.067;
76
+
77
+ --RS__ta-baseFontFamily:'Tamil Sangam MN', 'Nirmala UI', Latha, Roboto, Noto, 'Noto Sans Tamil', sans-serif;
78
+
79
+ --RS__si-lineHeightCompensation:1.167;
80
+
81
+ --RS__si-baseFontFamily:'Sinhala Sangam MN', 'Nirmala UI', 'Iskoola Pota', Roboto, Noto, 'Noto Sans Sinhala', sans-serif;
82
+
83
+ --RS__pa-lineHeightCompensation:1.1;
84
+
85
+ --RS__pa-baseFontFamily:'Gurmukhi MN', 'Nirmala UI', Kartika, Roboto, Noto, 'Noto Sans Gurmukhi', sans-serif;
86
+
87
+ --RS__or-lineHeightCompensation:1.167;
88
+
89
+ --RS__or-baseFontFamily:'Oriya Sangam MN', 'Nirmala UI', Kalinga, Roboto, Noto, 'Noto Sans Oriya', sans-serif;
90
+
91
+ --RS__ml-lineHeightCompensation:1.067;
92
+
93
+ --RS__ml-baseFontFamily:'Malayalam Sangam MN', 'Nirmala UI', Kartika, Roboto, Noto, 'Noto Sans Malayalam', sans-serif;
94
+
95
+ --RS__lo-baseFontFamily:'Lao Sangam MN', 'Leelawadee UI', 'Lao UI', Roboto, Noto, 'Noto Sans Lao', sans-serif;
96
+
97
+ --RS__ko-lineHeightCompensation:1.167;
98
+
99
+ --RS__ko-baseFontFamily:'Nanum Gothic', 'Apple SD Gothic Neo', 'Malgun Gothic', Roboto, Noto, 'Noto Sans CJK KR', sans-serif;
100
+
101
+ --RS__kn-lineHeightCompensation:1.1;
102
+
103
+ --RS__kn-baseFontFamily:'Kannada Sangam MN', 'Nirmala UI', Tunga, Roboto, Noto, 'Noto Sans Kannada', sans-serif;
104
+
105
+ --RS__km-lineHeightCompensation:1.067;
106
+
107
+ --RS__km-baseFontFamily:'Khmer Sangam MN', 'Leelawadee UI', 'Khmer UI', Roboto, Noto, 'Noto Sans Khmer', sans-serif;
108
+
109
+ --RS__ja-lineHeightCompensation:1.167;
110
+
111
+ --RS__ja-baseFontFamily:YuGothic, 'Hiragino Maru Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo UI', 'MS Gothic', Roboto, Noto, 'Noto Sans CJK JP', sans-serif;
112
+
113
+ --RS__iu-baseFontFamily:'Euphemia UCAS', Euphemia, Roboto, Noto, 'Noto Sans Canadian Aboriginal', sans-serif;
114
+
115
+ --RS__hy-baseFontFamily:Mshtakan, Sylfaen, Roboto, Noto, 'Noto Serif Armenian', serif;
116
+
117
+ --RS__hi-lineHeightCompensation:1.1;
118
+
119
+ --RS__hi-baseFontFamily:'Kohinoor Devanagari', 'Devanagari Sangam MN', Kokila, 'Nirmala UI', Roboto, Noto, 'Noto Sans Devanagari', sans-serif;
120
+
121
+ --RS__he-lineHeightCompensation:1.1;
122
+
123
+ --RS__he-baseFontFamily:'New Peninim MT', 'Arial Hebrew', Gisha, 'Times New Roman', Roboto, Noto, 'Noto Sans Hebrew', sans-serif;
124
+
125
+ --RS__gu-lineHeightCompensation:1.167;
126
+
127
+ --RS__gu-baseFontFamily:'Gujarati Sangam MN', 'Nirmala UI', Shruti, Roboto, Noto, 'Noto Sans Gujarati', sans-serif;
128
+
129
+ --RS__fa-baseFontFamily:'Geeza Pro', 'Arabic Typesetting', Roboto, Noto, 'Noto Naskh Arabic', 'Times New Roman', serif;
130
+
131
+ --RS__chr-lineHeightCompensation:1.167;
132
+
133
+ --RS__chr-baseFontFamily:'Plantagenet Cherokee', Roboto, Noto, 'Noto Sans Cherokee';
134
+
135
+ --RS__bo-baseFontFamily:Kailasa, 'Microsoft Himalaya', Roboto, Noto, 'Noto Sans Tibetan', sans-serif;
136
+
137
+ --RS__bn-lineHeightCompensation:1.067;
138
+
139
+ --RS__bn-baseFontFamily:'Kohinoor Bangla', 'Bangla Sangam MN', Vrinda, Roboto, Noto, 'Noto Sans Bengali', sans-serif;
140
+
141
+ --RS__ar-baseFontFamily:'Geeza Pro', 'Arabic Typesetting', Roboto, Noto, 'Noto Naskh Arabic', 'Times New Roman', serif;
142
+
143
+ --RS__am-lineHeightCompensation:1.167;
144
+
145
+ --RS__am-baseFontFamily:Kefa, Nyala, Roboto, Noto, 'Noto Sans Ethiopic', serif;
146
+
147
+ --RS__default-lineHeightCompensation:1;
148
+
149
+ --RS__default-baseFontFamily:var(--RS__oldStyleTf);
150
+ --RS__baseFontFamily:var(--RS__default-baseFontFamily);
151
+ --RS__lineHeightCompensation:var(--RS__default-lineHeightCompensation);
152
+ --RS__baseLineHeight:calc(1.5 * var(--RS__lineHeightCompensation));
153
+
154
+ --RS__selectionTextColor:inherit;
155
+
156
+ --RS__selectionBackgroundColor:#b4d8fe;
157
+
158
+ --RS__visitedColor:#551A8B;
159
+
160
+ --RS__linkColor:#0000EE;
161
+
162
+ --RS__textColor:#121212;
163
+
164
+ --RS__backgroundColor:#FFFFFF;
165
+ color:var(--RS__textColor) !important;
166
+
167
+ background-color:var(--RS__backgroundColor) !important;
168
+ }
169
+
170
+ ::-moz-selection{
171
+ color:var(--RS__selectionTextColor);
172
+ background-color:var(--RS__selectionBackgroundColor);
173
+ }
174
+
175
+ ::selection{
176
+ color:var(--RS__selectionTextColor);
177
+ background-color:var(--RS__selectionBackgroundColor);
178
+ }
179
+
180
+ html{
181
+ font-family:var(--RS__baseFontFamily);
182
+ line-height:1.6;
183
+ line-height:var(--RS__baseLineHeight);
184
+ text-rendering:optimizelegibility;
185
+ }
186
+
187
+ h1, h2, h3{
188
+ line-height:normal;
189
+ }
190
+
191
+ :lang(ja),
192
+ :lang(zh),
193
+ :lang(ko){
194
+ word-wrap:break-word;
195
+ -webkit-line-break:strict;
196
+ -epub-line-break:strict;
197
+ line-break:strict;
198
+ }
199
+
200
+ math{
201
+ font-family:"Latin Modern Math", "STIX Two Math", "XITS Math", "STIX Math", "Libertinus Math", "TeX Gyre Termes Math", "TeX Gyre Bonum Math", "TeX Gyre Schola", "DejaVu Math TeX Gyre", "TeX Gyre Pagella Math", "Asana Math", "Cambria Math", "Lucida Bright Math", "Minion Math", STIXGeneral, STIXSizeOneSym, Symbol, "Times New Roman", serif;
202
+ }
203
+
204
+ :lang(am){
205
+ --RS__baseFontFamily:var(--RS__am-baseFontFamily);
206
+ --RS__lineHeightCompensation:var(--RS__am-lineHeightCompensation);
207
+ }
208
+
209
+ :lang(ar){
210
+ --RS__baseFontFamily:var(--RS__ar-baseFontFamily);
211
+ }
212
+
213
+ :lang(bn){
214
+ --RS__baseFontFamily:var(--RS__bn-baseFontFamily);
215
+ --RS__lineHeightCompensation:var(--RS__bn-lineHeightCompensation);
216
+ }
217
+
218
+ :lang(bo){
219
+ --RS__baseFontFamily:var(--RS__bo-baseFontFamily);
220
+ }
221
+
222
+ :lang(chr){
223
+ --RS__baseFontFamily:var(--RS__chr-baseFontFamily);
224
+ --RS__lineHeightCompensation:var(--RS__chr-lineHeightCompensation);
225
+ }
226
+
227
+ :lang(fa){
228
+ --RS__baseFontFamily:var(--RS__fa-baseFontFamily);
229
+ }
230
+
231
+ :lang(gu){
232
+ --RS__baseFontFamily:var(--RS__gu-baseFontFamily);
233
+ --RS__lineHeightCompensation:var(--RS__gu-lineHeightCompensation);
234
+ }
235
+
236
+ :lang(he){
237
+ --RS__baseFontFamily:var(--RS__he-baseFontFamily);
238
+ --RS__lineHeightCompensation:var(--RS__he-lineHeightCompensation);
239
+ }
240
+
241
+ :lang(hi){
242
+ --RS__baseFontFamily:var(--RS__hi-baseFontFamily);
243
+ --RS__lineHeightCompensation:var(--RS__hi-lineHeightCompensation);
244
+ }
245
+
246
+ :lang(hy){
247
+ --RS__baseFontFamily:var(--RS__hy-baseFontFamily);
248
+ }
249
+
250
+ :lang(iu){
251
+ --RS__baseFontFamily:var(--RS__iu-baseFontFamily);
252
+ }
253
+
254
+ :lang(ja){
255
+ --RS__baseFontFamily:var(--RS__ja-baseFontFamily);
256
+ --RS__lineHeightCompensation:var(--RS__ja-lineHeightCompensation);
257
+ }
258
+
259
+ :lang(km){
260
+ --RS__baseFontFamily:var(--RS__km-baseFontFamily);
261
+ --RS__lineHeightCompensation:var(--RS__km-lineHeightCompensation);
262
+ }
263
+
264
+ :lang(kn){
265
+ --RS__baseFontFamily:var(--RS__kn-baseFontFamily);
266
+ --RS__lineHeightCompensation:var(--RS__kn-lineHeightCompensation);
267
+ }
268
+
269
+ :lang(ko){
270
+ --RS__baseFontFamily:var(--RS__ko-baseFontFamily);
271
+ --RS__lineHeightCompensation:var(--RS__ko-lineHeightCompensation);
272
+ }
273
+
274
+ :lang(lo){
275
+ --RS__baseFontFamily:var(--RS__lo-baseFontFamily);
276
+ }
277
+
278
+ :lang(ml){
279
+ --RS__baseFontFamily:var(--RS__ml-baseFontFamily);
280
+ --RS__lineHeightCompensation:var(--RS__ml-lineHeightCompensation);
281
+ }
282
+
283
+ :lang(or){
284
+ --RS__baseFontFamily:var(--RS__or-baseFontFamily);
285
+ --RS__lineHeightCompensation:var(--RS__or-lineHeightCompensation);
286
+ }
287
+
288
+ :lang(pa){
289
+ --RS__baseFontFamily:var(--RS__pa-baseFontFamily);
290
+ --RS__lineHeightCompensation:var(--RS__pa-lineHeightCompensation);
291
+ }
292
+
293
+ :lang(si){
294
+ --RS__baseFontFamily:var(--RS__si-baseFontFamily);
295
+ --RS__lineHeightCompensation:var(--RS__si-lineHeightCompensation);
296
+ }
297
+
298
+ :lang(ta){
299
+ --RS__baseFontFamily:var(--RS__ta-baseFontFamily);
300
+ --RS__lineHeightCompensation:var(--RS__ta-lineHeightCompensation);
301
+ }
302
+
303
+ :lang(te){
304
+ --RS__baseFontFamily:var(--RS__te-baseFontFamily);
305
+ }
306
+
307
+ :lang(th){
308
+ --RS__baseFontFamily:var(--RS__th-baseFontFamily);
309
+ --RS__lineHeightCompensation:var(--RS__th-lineHeightCompensation);
310
+ }
311
+
312
+ :lang(zh){
313
+ --RS__baseFontFamily:var(--RS__zh-baseFontFamily);
314
+ --RS__lineHeightCompensation:var(--RS__zh-lineHeightCompensation);
315
+ }
316
+
317
+ :lang(zh-Hant){
318
+ --RS__baseFontFamily:var(--RS__zh-Hant-baseFontFamily);
319
+ --RS__lineHeightCompensation:var(--RS__zh-Hant-lineHeightCompensation);
320
+ }
321
+
322
+ :lang(zh-TW){
323
+ --RS__baseFontFamily:var(--RS__zh-TW-baseFontFamily);
324
+ --RS__lineHeightCompensation:var(--RS__zh-TW-lineHeightCompensation);
325
+ }
326
+
327
+ :lang(zh-HK){
328
+ --RS__baseFontFamily:var(--RS__zh-HK-baseFontFamily);
329
+ --RS__lineHeightCompensation:var(--RS__zh-HK-lineHeightCompensation);
330
+ }
331
+
332
+ body{
333
+ widows:2;
334
+ orphans:2;
335
+ }
336
+
337
+ figcaption, th, td{
338
+ widows:1;
339
+ orphans:1;
340
+ }
341
+
342
+ h2, h3, h4, h5, h6, dt,
343
+ hr, caption{
344
+ -webkit-column-break-after:avoid;
345
+ page-break-after:avoid;
346
+ break-after:avoid;
347
+ }
348
+
349
+ h1, h2, h3, h4, h5, h6, dt,
350
+ figure, tr{
351
+ -webkit-column-break-inside:avoid;
352
+ page-break-inside:avoid;
353
+ break-inside:avoid;
354
+ }
355
+
356
+ body{
357
+ -webkit-hyphenate-character:"\\002D";
358
+ -moz-hyphenate-character:"\\002D";
359
+ -ms-hyphenate-character:"\\002D";
360
+ hyphenate-character:"\\002D";
361
+ -webkit-hyphenate-limit-lines:3;
362
+ -ms-hyphenate-limit-lines:3;
363
+ hyphenate-limit-lines:3;
364
+ }
365
+
366
+ h1, h2, h3, h4, h5, h6, dt,
367
+ figcaption, pre, caption, address,
368
+ center, code, var{
369
+ -ms-hyphens:none;
370
+ -moz-hyphens:none;
371
+ -webkit-hyphens:none;
372
+ -epub-hyphens:none;
373
+ hyphens:none;
374
+ }
375
+
376
+ body{
377
+ font-variant-numeric:oldstyle-nums proportional-nums;
378
+ }
379
+
380
+ :lang(ja) body,
381
+ :lang(zh) body,
382
+ :lang(ko) body{
383
+ font-variant-numeric:lining-nums proportional-nums;
384
+ }
385
+
386
+ h1, h2, h3, h4, h5, h6, dt{
387
+ font-variant-numeric:lining-nums proportional-nums;
388
+ }
389
+
390
+ table{
391
+ font-variant-numeric:lining-nums tabular-nums;
392
+ }
393
+
394
+ code, var{
395
+ font-variant-ligatures:none;
396
+ font-variant-numeric:lining-nums tabular-nums slashed-zero;
397
+ }
398
+
399
+ rt{
400
+ font-variant-east-asian:ruby;
401
+ }
402
+
403
+ :lang(ar){
404
+ font-variant-ligatures:common-ligatures;
405
+ }
406
+
407
+ :lang(ko){
408
+ font-kerning:normal;
409
+ }
410
+
411
+ hr{
412
+ color:inherit;
413
+ border-color:currentcolor;
414
+ }
415
+
416
+ table, th, td{
417
+ border-color:currentcolor;
418
+ }
419
+
420
+ figure, blockquote{
421
+ margin:1em 5%;
422
+ }
423
+
424
+ ul, ol{
425
+ padding-left:5%;
426
+ }
427
+
428
+ dd{
429
+ margin-left:5%;
430
+ }
431
+
432
+ pre{
433
+ white-space:pre-wrap;
434
+ -ms-tab-size:2;
435
+ -moz-tab-size:2;
436
+ -webkit-tab-size:2;
437
+ tab-size:2;
438
+ }
439
+
440
+ abbr[title], acronym[title]{
441
+ text-decoration:dotted underline;
442
+ }
443
+
444
+ nobr wbr{
445
+ white-space:normal;
446
+ }
447
+
448
+ ruby > rt, ruby > rp{
449
+ -webkit-user-select:none;
450
+ -moz-user-select:none;
451
+ -ms-user-select:none;
452
+ user-select:none;
453
+ }
454
+
455
+ *:lang(ja):not(:lang(ja-Latn)):not(:lang(ja-Cyrl)),
456
+ *:lang(zh):not(:lang(zh-Latn)):not(:lang(zh-Cyrl)),
457
+ *:lang(ko):not(:lang(ko-Latn)):not(:lang(ko-Cyrl)),
458
+ :lang(ja):not(:lang(ja-Latn)):not(:lang(ja-Cyrl)) cite,
459
+ :lang(ja):not(:lang(ja-Latn)):not(:lang(ja-Cyrl)) dfn,
460
+ :lang(ja):not(:lang(ja-Latn)):not(:lang(ja-Cyrl)) em,
461
+ :lang(ja):not(:lang(ja-Latn)):not(:lang(ja-Cyrl)) i,
462
+ :lang(zh):not(:lang(zh-Latn)):not(:lang(zh-Cyrl)) cite,
463
+ :lang(zh):not(:lang(zh-Latn)):not(:lang(zh-Cyrl)) dfn,
464
+ :lang(zh):not(:lang(zh-Latn)):not(:lang(zh-Cyrl)) em,
465
+ :lang(zh):not(:lang(zh-Latn)):not(:lang(zh-Cyrl)) i,
466
+ :lang(ko):not(:lang(ko-Latn)):not(:lang(ko-Cyrl)) cite,
467
+ :lang(ko):not(:lang(ko-Latn)):not(:lang(ko-Cyrl)) dfn,
468
+ :lang(ko):not(:lang(ko-Latn)):not(:lang(ko-Cyrl)) em,
469
+ :lang(ko):not(:lang(ko-Latn)):not(:lang(ko-Cyrl)) i{
470
+ font-style:normal;
471
+ }
472
+
473
+ :lang(ja) a,
474
+ :lang(zh) a,
475
+ :lang(ko) a{
476
+ text-decoration:none;
477
+ }
478
+
479
+ :root{
480
+ --RS__maxMediaWidth:100%;
481
+ --RS__maxMediaHeight:95vh;
482
+ --RS__boxSizingMedia:border-box;
483
+ --RS__boxSizingTable:border-box;
484
+ }
485
+
486
+ a, a span, span a, h1, h2, h3, h4, h5, h6{
487
+ word-wrap:break-word;
488
+ }
489
+
490
+ div{
491
+ max-width:var(--RS__maxMediaWidth);
492
+ }
493
+
494
+ img, svg|svg, video{
495
+ object-fit:contain;
496
+
497
+ width:auto;
498
+ height:auto;
499
+ max-width:var(--RS__maxMediaWidth);
500
+ max-height:var(--RS__maxMediaHeight) !important;
501
+ box-sizing:var(--RS__boxSizingMedia);
502
+ -webkit-column-break-inside:avoid;
503
+ page-break-inside:avoid;
504
+ break-inside:avoid;
505
+ }
506
+
507
+ @supports (zoom: 1) and (not ((-webkit-column-axis: horizontal) and (-webkit-column-progression: normal))){
508
+
509
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] img,
510
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] svg|svg,
511
+ :root[style*="readium-experimentalZoom-on"]:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] video{
512
+ zoom:calc(100% / var(--USER__fontSize));
513
+ }
514
+ }
515
+
516
+ audio{
517
+ max-width:100%;
518
+ -webkit-column-break-inside:avoid;
519
+ page-break-inside:avoid;
520
+ break-inside:avoid;
521
+ }
522
+
523
+ table{
524
+ max-width:var(--RS__maxMediaWidth);
525
+ box-sizing:var(--RS__boxSizingTable);
526
+ }`;
527
+ export {
528
+ n as default
529
+ };