Skip to content

Commit c4cdacf

Browse files
committed
Merge branch 'fix-zoom' of https://github.com/readium/css into fix-zoom
2 parents 49d1f54 + 47a71bb commit c4cdacf

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

css/dist/ReadiumCSS-after.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)),
217+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
218218
:root[style*="--USER__textAlign"] li,
219-
:root[style*="--USER__textAlign"] dd{
219+
:root[style*="--USER__textAlign"] dd,
220+
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
220221
text-align:var(--USER__textAlign) !important;
221222
-moz-text-align-last:auto !important;
222223
-epub-text-align-last:auto !important;
@@ -354,7 +355,8 @@ body{
354355
margin-bottom:var(--USER__paraSpacing) !important;
355356
}
356357

357-
:root[style*="--USER__paraIndent"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
358+
:root[style*="--USER__paraIndent"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
359+
:root[style*="--USER__paraIndent"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
358360
text-indent:var(--USER__paraIndent) !important;
359361
}
360362

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,10 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)),
217+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
218218
:root[style*="--USER__textAlign"] li,
219-
:root[style*="--USER__textAlign"] dd{
219+
:root[style*="--USER__textAlign"] dd,
220+
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
220221
text-align:var(--USER__textAlign) !important;
221222
-moz-text-align-last:auto !important;
222223
-epub-text-align-last:auto !important;
@@ -292,7 +293,8 @@ body{
292293
margin-bottom:var(--USER__paraSpacing) !important;
293294
}
294295

295-
:root[style*="--USER__paraIndent"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
296+
:root[style*="--USER__paraIndent"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
297+
:root[style*="--USER__paraIndent"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
296298
text-indent:var(--USER__paraIndent) !important;
297299
}
298300

css/dist/webPub/ReadiumCSS-webPub.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
}
1919

2020
:root[style*="--USER__textAlign"] body,
21-
:root[style*="--USER__textAlign"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)),
21+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
2222
:root[style*="--USER__textAlign"] li,
23-
:root[style*="--USER__textAlign"] dd{
23+
:root[style*="--USER__textAlign"] dd,
24+
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
2425
text-align:var(--USER__textAlign) !important;
2526
-moz-text-align-last:auto !important;
2627
-epub-text-align-last:auto !important;
@@ -147,7 +148,8 @@
147148
margin-bottom:var(--USER__paraSpacing) !important;
148149
}
149150

150-
:root[style*="--USER__paraIndent"] p:not([class*="title"]):not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
151+
:root[style*="--USER__paraIndent"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
152+
:root[style*="--USER__paraIndent"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
151153
text-indent:var(--USER__paraIndent) !important;
152154
}
153155

0 commit comments

Comments
 (0)