Skip to content

Commit 6d4adff

Browse files
authored
Merge pull request #199 from readium/normalize-fix
Normalize fix
2 parents c24221b + 9473e45 commit 6d4adff

15 files changed

+25
-25
lines changed

css/dist/ReadiumCSS-after.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Readium CSS v.2.0.0-beta.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.
@@ -214,7 +214,7 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(hgroup p),
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)),
218218
:root[style*="--USER__textAlign"] li,
219219
:root[style*="--USER__textAlign"] dd{
220220
text-align:var(--USER__textAlign) !important;
@@ -265,15 +265,15 @@ body{
265265
font-weight:normal !important;
266266
}
267267

268-
:root[style*="AccessibleDfA"] *:not(code):not(var):not(kbd):not(samp),:root[style*="IA Writer Duospace"] *:not(code):not(var):not(kbd):not(samp),
269-
:root[style*="readium-a11y-on"] *:not(code):not(var):not(kbd):not(samp){
268+
:root[style*="AccessibleDfA"] body *:not(code):not(var):not(kbd):not(samp),:root[style*="IA Writer Duospace"] body *:not(code):not(var):not(kbd):not(samp),
269+
:root[style*="readium-a11y-on"] body *:not(code):not(var):not(kbd):not(samp){
270270
font-family:inherit !important;
271271
font-style:inherit !important;
272272
font-weight:inherit !important;
273273
}
274274

275-
:root[style*="AccessibleDfA"] *,:root[style*="IA Writer Duospace"] *,
276-
:root[style*="readium-a11y-on"] *{
275+
:root[style*="AccessibleDfA"] body *,:root[style*="IA Writer Duospace"] body *,
276+
:root[style*="readium-a11y-on"] body *{
277277
text-decoration:none !important;
278278
font-variant-caps:normal !important;
279279
font-variant-numeric:normal !important;

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

css/dist/cjk-horizontal/ReadiumCSS-after.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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

css/dist/cjk-vertical/ReadiumCSS-after.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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

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.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.

css/dist/rtl/ReadiumCSS-after.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Readium CSS v.2.0.0-beta.19
2+
* Readium CSS v.2.0.0-beta.20
33
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
44
* Use of this source code is governed by a BSD-style license which is detailed in the
55
* LICENSE file present in the project repository where this source code is maintained.
@@ -214,7 +214,7 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(hgroup p),
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)),
218218
:root[style*="--USER__textAlign"] li,
219219
:root[style*="--USER__textAlign"] dd{
220220
text-align:var(--USER__textAlign) !important;

0 commit comments

Comments
 (0)