|
1 | 1 | /*! |
2 | | - * Readium CSS v.2.0.0-beta.23 |
| 2 | + * Readium CSS v.2.0.0-beta.24 |
3 | 3 | * Copyright (c) 2017–2025. Readium Foundation. All rights reserved. |
4 | 4 | * Use of this source code is governed by a BSD-style license which is detailed in the |
5 | 5 | * LICENSE file present in the project repository where this source code is maintained. |
@@ -214,10 +214,17 @@ body{ |
214 | 214 | } |
215 | 215 |
|
216 | 216 | :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 | +), |
218 | 226 | :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{ |
221 | 228 | text-align:var(--USER__textAlign) !important; |
222 | 229 | -moz-text-align-last:auto !important; |
223 | 230 | -epub-text-align-last:auto !important; |
@@ -355,8 +362,15 @@ body{ |
355 | 362 | margin-bottom:var(--USER__paraSpacing) !important; |
356 | 363 | } |
357 | 364 |
|
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 | +){ |
360 | 374 | text-indent:var(--USER__paraIndent) !important; |
361 | 375 | } |
362 | 376 |
|
|
0 commit comments