Skip to content

Commit 7d6f8f3

Browse files
committed
Improve text-align a little bit
Protect against p in headers
1 parent 046058c commit 7d6f8f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
:root[style*="--USER__textAlign"] body,
14-
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(hgroup p),
14+
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(header p):not(hgroup p):not(div:has(+ *) > h1 + p):not(div:has(+ *) > p:has(+ h1)),
1515
:root[style*="--USER__textAlign"] li,
1616
:root[style*="--USER__textAlign"] dd {
1717
text-align: var(--USER__textAlign) !important;

0 commit comments

Comments
 (0)