Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions css/dist/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -214,10 +214,17 @@ body{
}

:root[style*="--USER__textAlign"] body,
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
:root[style*="--USER__textAlign"] p:not(
blockquote p,
figcaption p,
header p,
hgroup p,
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
),
:root[style*="--USER__textAlign"] li,
:root[style*="--USER__textAlign"] dd,
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
:root[style*="--USER__textAlign"] dd{
text-align:var(--USER__textAlign) !important;
-moz-text-align-last:auto !important;
-epub-text-align-last:auto !important;
Expand Down Expand Up @@ -355,8 +362,15 @@ body{
margin-bottom:var(--USER__paraSpacing) !important;
}

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

Expand Down
2 changes: 1 addition & 1 deletion css/dist/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-horizontal/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-vertical/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-vertical/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/cjk-vertical/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
26 changes: 20 additions & 6 deletions css/dist/rtl/ReadiumCSS-after.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down Expand Up @@ -214,10 +214,17 @@ body{
}

:root[style*="--USER__textAlign"] body,
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
:root[style*="--USER__textAlign"] p:not(
blockquote p,
figcaption p,
header p,
hgroup p,
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
),
:root[style*="--USER__textAlign"] li,
:root[style*="--USER__textAlign"] dd,
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
:root[style*="--USER__textAlign"] dd{
text-align:var(--USER__textAlign) !important;
-moz-text-align-last:auto !important;
-epub-text-align-last:auto !important;
Expand Down Expand Up @@ -293,8 +300,15 @@ body{
margin-bottom:var(--USER__paraSpacing) !important;
}

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

Expand Down
2 changes: 1 addition & 1 deletion css/dist/rtl/ReadiumCSS-before.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
2 changes: 1 addition & 1 deletion css/dist/rtl/ReadiumCSS-default.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand Down
26 changes: 20 additions & 6 deletions css/dist/webPub/ReadiumCSS-webPub.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Readium CSS v.2.0.0-beta.23
* Readium CSS v.2.0.0-beta.24
* Copyright (c) 2017–2025. Readium Foundation. All rights reserved.
* Use of this source code is governed by a BSD-style license which is detailed in the
* LICENSE file present in the project repository where this source code is maintained.
Expand All @@ -18,10 +18,17 @@
}

:root[style*="--USER__textAlign"] body,
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
:root[style*="--USER__textAlign"] p:not(
blockquote p,
figcaption p,
header p,
hgroup p,
:root[style*="readium-experimentalHeaderFiltering-on"] p[class*="title"],
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > h1 + p,
:root[style*="readium-experimentalHeaderFiltering-on"] div:has(+ *) > p:has(+ h1)
),
:root[style*="--USER__textAlign"] li,
:root[style*="--USER__textAlign"] dd,
:root[style*="--USER__textAlign"][style*="readium-experimentalHeaderFiltering-on"] p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)){
:root[style*="--USER__textAlign"] dd{
text-align:var(--USER__textAlign) !important;
-moz-text-align-last:auto !important;
-epub-text-align-last:auto !important;
Expand Down Expand Up @@ -148,8 +155,15 @@
margin-bottom:var(--USER__paraSpacing) !important;
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@

Repo: https://github.com/readium/css */

:root[style*="--USER__paraIndent"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
:root[style*="--USER__paraIndent"]:--experimental-header-filtering p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)) {
:root[style*="--USER__paraIndent"] p:not(
blockquote p,
figcaption p,
header p,
hgroup p,
:root:--experimental-header-filtering p[class*="title"],
:root:--experimental-header-filtering div:has(+ *) > h1 + p,
:root:--experimental-header-filtering div:has(+ *) > p:has(+ h1)
) {
text-indent: var(--USER__paraIndent) !important;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@
}

:root[style*="--USER__textAlign"] body,
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p),
:root[style*="--USER__textAlign"] p:not(
blockquote p,
figcaption p,
header p,
hgroup p,
:root:--experimental-header-filtering p[class*="title"],
:root:--experimental-header-filtering div:has(+ *) > h1 + p,
:root:--experimental-header-filtering div:has(+ *) > p:has(+ h1)
),
:root[style*="--USER__textAlign"] li,
:root[style*="--USER__textAlign"] dd,
:root[style*="--USER__textAlign"]:--experimental-header-filtering p:not([class*="title"]):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)) {
:root[style*="--USER__textAlign"] dd {
text-align: var(--USER__textAlign) !important;
-moz-text-align-last: auto !important;
-epub-text-align-last: auto !important;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@readium/css",
"description": "A set of reference stylesheets for EPUB Reading Systems",
"version": "2.0.0-beta.23",
"version": "2.0.0-beta.24",
"homepage": "https://github.com/readium/css",
"license": "BSD-3-Clause",
"keywords": [
Expand Down