Skip to content

Commit aa73c5c

Browse files
authored
Merge pull request #190 from readium/iOS-patch
iOS patch
2 parents 1293135 + b6d9b98 commit aa73c5c

23 files changed

Lines changed: 99 additions & 24 deletions

css/ReadiumCSS-config.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,6 @@
5050
@custom-selector :--ltr [dir="ltr"];
5151
@custom-selector :--rtl [dir="rtl"];
5252

53-
/* Patch for iPadOS */
53+
/* Patch for iOS and iPadOS */
54+
@custom-selector :--iOS-patch [style*="readium-iOSPatch-on"];
5455
@custom-selector :--ipadOS-patch [style*="readium-iPadOSPatch-on"];

css/dist/ReadiumCSS-after.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -421,10 +421,14 @@ body{
421421
vertical-align:baseline !important;
422422
}
423423

424-
:root:not([style*="readium-deprecatedFontSize-on"])[style*="--USER__fontSize"] body{
424+
:root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
425425
zoom:var(--USER__fontSize) !important;
426426
}
427427

428+
:root[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
429+
-webkit-text-size-adjust:var(--USER__fontSize) !important;
430+
}
431+
428432
@supports not (zoom: 1){
429433

430434
:root[style*="--USER__fontSize"]{

css/dist/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-horizontal/ReadiumCSS-after.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -349,10 +349,14 @@ body{
349349
font-family:revert !important;
350350
}
351351

352-
:root:not([style*="readium-deprecatedFontSize-on"])[style*="--USER__fontSize"] body{
352+
:root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
353353
zoom:var(--USER__fontSize) !important;
354354
}
355355

356+
:root[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
357+
-webkit-text-size-adjust:var(--USER__fontSize) !important;
358+
}
359+
356360
@supports not (zoom: 1){
357361

358362
:root[style*="--USER__fontSize"]{

css/dist/cjk-horizontal/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-horizontal/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-vertical/ReadiumCSS-after.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the
@@ -334,10 +334,14 @@ body{
334334
font-family:revert !important;
335335
}
336336

337-
:root:not([style*="readium-deprecatedFontSize-on"])[style*="--USER__fontSize"] body{
337+
:root:not([style*="readium-deprecatedFontSize-on"]):not([style*="readium-iOSPatch-on"])[style*="--USER__fontSize"] body{
338338
zoom:var(--USER__fontSize) !important;
339339
}
340340

341+
:root[style*="readium-iOSPatch-on"][style*="--USER__fontSize"] body{
342+
-webkit-text-size-adjust:var(--USER__fontSize) !important;
343+
}
344+
341345
@supports not (zoom: 1){
342346

343347
:root[style*="--USER__fontSize"]{

css/dist/cjk-vertical/ReadiumCSS-before.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

css/dist/cjk-vertical/ReadiumCSS-default.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Readium CSS (v. 2.0.0-beta.17)
2+
* Readium CSS (v. 2.0.0-beta.18)
33
* Developers: Jiminy Panoz
44
* Copyright (c) 2017. Readium Foundation. All rights reserved.
55
* Use of this source code is governed by a BSD-style license which is detailed in the

0 commit comments

Comments
 (0)