revert: unbreak style overriding, closes #1058 and closes #1075 (#1091)

This commit is contained in:
Huang Xin
2025-05-08 01:56:14 +08:00
committed by GitHub
parent 0d4f61f08a
commit 2006baac4b
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -210,6 +210,8 @@ const getLayoutStyles = (
${writingMode === 'auto' ? '' : `writing-mode: ${writingMode} !important;`}
text-align: var(--default-text-align);
max-height: unset;
}
html {
background-color: var(--theme-bg-color, transparent);
background: var(--background-set, none);
}
@@ -223,7 +225,7 @@ const getLayoutStyles = (
svg, img {
background-color: transparent !important;
}
p:not(.poem):not(.poetry):not(.lh):not(:has(> :is(img, video, font, b, h1, h2, h3, h4, h5, table))), li, blockquote, dd {
p, li, blockquote, dd {
line-height: ${lineSpacing} ${overrideLayout ? '!important' : ''};
word-spacing: ${wordSpacing}px ${overrideLayout ? '!important' : ''};
letter-spacing: ${letterSpacing}px ${overrideLayout ? '!important' : ''};