Skip to content

Commit c7fa0d6

Browse files
committed
Selectors consistency in submodules
+ Fixing text-align filter on paragraphs
1 parent ae2f51a commit c7fa0d6

3 files changed

Lines changed: 17 additions & 12 deletions

File tree

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

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@
66
77
Repo: https://github.com/readium/readium-css */
88

9-
:root[style*="--USER__letterSpacing"] h1,
10-
:root[style*="--USER__letterSpacing"] h2,
11-
:root[style*="--USER__letterSpacing"] h3,
12-
:root[style*="--USER__letterSpacing"] h4,
13-
:root[style*="--USER__letterSpacing"] h5,
14-
:root[style*="--USER__letterSpacing"] h6,
15-
:root[style*="--USER__letterSpacing"] p,
16-
:root[style*="--USER__letterSpacing"] li,
17-
:root[style*="--USER__letterSpacing"] div {
9+
:root[style*="--USER__wordSpacing"] h1,
10+
:root[style*="--USER__wordSpacing"] h2,
11+
:root[style*="--USER__wordSpacing"] h3,
12+
:root[style*="--USER__wordSpacing"] h4,
13+
:root[style*="--USER__wordSpacing"] h5,
14+
:root[style*="--USER__wordSpacing"] h6,
15+
:root[style*="--USER__wordSpacing"] p,
16+
:root[style*="--USER__wordSpacing"] li,
17+
:root[style*="--USER__wordSpacing"] div,
18+
:root[style*="--USER__wordSpacing"] dt,
19+
:root[style*="--USER__wordSpacing"] dd {
1820
letter-spacing: var(--USER__letterSpacing);
1921
font-variant: none;
2022
}

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
}
1212

1313
:root[style*="--USER__textAlign"] body,
14-
:root[style*="--USER__textAlign"] *:not(blockquote):not(figcaption) p,
15-
:root[style*="--USER__textAlign"] li {
14+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(hgroup p),
15+
:root[style*="--USER__textAlign"] li,
16+
:root[style*="--USER__textAlign"] dd {
1617
text-align: var(--USER__textAlign) !important;
1718
-moz-text-align-last: auto !important;
1819
-epub-text-align-last: auto !important;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
:root[style*="--USER__wordSpacing"] h6,
1515
:root[style*="--USER__wordSpacing"] p,
1616
:root[style*="--USER__wordSpacing"] li,
17-
:root[style*="--USER__wordSpacing"] div {
17+
:root[style*="--USER__wordSpacing"] div,
18+
:root[style*="--USER__wordSpacing"] dt,
19+
:root[style*="--USER__wordSpacing"] dd {
1820
word-spacing: var(--USER__wordSpacing);
1921
}

0 commit comments

Comments
 (0)