Skip to content

Commit 6be7075

Browse files
authored
Merge pull request #204 from readium/fix-experimental-heading
Fix experimental heading
2 parents 4723bdf + 0b3c677 commit 6be7075

16 files changed

+90
-34
lines changed

css/dist/ReadiumCSS-after.css

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Readium CSS v.2.0.0-beta.23
2+
* Readium CSS v.2.0.0-beta.24
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,10 +214,17 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
217+
:root[style*="--USER__textAlign"] p:not(
218+
blockquote p,
219+
figcaption p,
220+
header p,
221+
hgroup p,
222+
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
223+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
224+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
225+
),
218226
:root[style*="--USER__textAlign"] li,
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)){
227+
:root[style*="--USER__textAlign"] dd{
221228
text-align:var(--USER__textAlign) !important;
222229
-moz-text-align-last:auto !important;
223230
-epub-text-align-last:auto !important;
@@ -355,8 +362,15 @@ body{
355362
margin-bottom:var(--USER__paraSpacing) !important;
356363
}
357364

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)){
365+
:root[style*="--USER__paraIndent"] p:not(
366+
blockquote p,
367+
figcaption p,
368+
header p,
369+
hgroup p,
370+
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
371+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
372+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
373+
){
360374
text-indent:var(--USER__paraIndent) !important;
361375
}
362376

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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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.23
2+
* Readium CSS v.2.0.0-beta.24
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: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Readium CSS v.2.0.0-beta.23
2+
* Readium CSS v.2.0.0-beta.24
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,10 +214,17 @@ body{
214214
}
215215

216216
:root[style*="--USER__textAlign"] body,
217-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
217+
:root[style*="--USER__textAlign"] p:not(
218+
blockquote p,
219+
figcaption p,
220+
header p,
221+
hgroup p,
222+
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
223+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
224+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
225+
),
218226
:root[style*="--USER__textAlign"] li,
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)){
227+
:root[style*="--USER__textAlign"] dd{
221228
text-align:var(--USER__textAlign) !important;
222229
-moz-text-align-last:auto !important;
223230
-epub-text-align-last:auto !important;
@@ -293,8 +300,15 @@ body{
293300
margin-bottom:var(--USER__paraSpacing) !important;
294301
}
295302

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)){
303+
:root[style*="--USER__paraIndent"] p:not(
304+
blockquote p,
305+
figcaption p,
306+
header p,
307+
hgroup p,
308+
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
309+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
310+
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
311+
){
298312
text-indent:var(--USER__paraIndent) !important;
299313
}
300314

0 commit comments

Comments
 (0)