Skip to content

Commit 649931c

Browse files
committed
Merge branch 'develop' into experimental-webPub
2 parents 16264f3 + a9eda0f commit 649931c

5 files changed

Lines changed: 27 additions & 17 deletions

File tree

css/dist/ReadiumCSS-after.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,13 @@ body{
272272
font-weight:inherit !important;
273273
}
274274

275+
:root[style*="AccessibleDfA"] body *:not(a),:root[style*="IA Writer Duospace"] body *:not(a),
276+
:root[style*="readium-a11y-on"] body *:not(a){
277+
text-decoration:none !important;
278+
}
279+
275280
:root[style*="AccessibleDfA"] body *,:root[style*="IA Writer Duospace"] body *,
276281
:root[style*="readium-a11y-on"] body *{
277-
text-decoration:none !important;
278282
font-variant-caps:normal !important;
279283
font-variant-numeric:normal !important;
280284
font-variant-position:normal !important;
@@ -350,7 +354,7 @@ body{
350354
margin-bottom:var(--USER__paraSpacing) !important;
351355
}
352356

353-
:root[style*="--USER__paraIndent"] p{
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)){
354358
text-indent:var(--USER__paraIndent) !important;
355359
}
356360

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ body{
292292
margin-bottom:var(--USER__paraSpacing) !important;
293293
}
294294

295-
:root[style*="--USER__paraIndent"] p{
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)){
296296
text-indent:var(--USER__paraIndent) !important;
297297
}
298298

css/src/modules/user-settings-submodules/ReadiumCSS-a11yFont_pref.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,21 @@
3434
font-style: inherit !important;
3535
}
3636

37-
/* Normalizing text-decoration, subs and sups */
37+
/* Normalizing text-decoration */
38+
:root:--a11y-font body *:not(a),
39+
:root:--a11y-normalize body *:not(a) {
40+
text-decoration: none !important;
41+
}
42+
43+
/* Normalizing font-variant */
3844
:root:--a11y-font body *,
3945
:root:--a11y-normalize body * {
40-
text-decoration: none !important;
4146
font-variant-caps: normal !important;
4247
font-variant-position: normal !important;
4348
font-variant-numeric: normal !important;
4449
}
4550

51+
/* Normalizing sup and sub */
4652
:root:--a11y-font sup,
4753
:root:--a11y-normalize sup,
4854
:root:--a11y-font sub,

css/src/modules/user-settings-submodules/ReadiumCSS-paraIndent_pref.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
Repo: https://github.com/readium/css */
88

9-
:root[style*="--USER__paraIndent"] p {
9+
: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)) {
1010
text-indent: var(--USER__paraIndent) !important;
1111
}
1212

package-lock.json

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)