fix(reader): set background-color on html/body instead of background: none
background: none on html/body exposed the iframe's default black background in gaps around the content. Now uses background-color matching the theme color, and stops forcing background on body * which caused black bars around page margins.
This commit is contained in:
@@ -269,12 +269,11 @@ const getCSS = ({
|
|||||||
${fontFamilyRule}
|
${fontFamilyRule}
|
||||||
html, body {
|
html, body {
|
||||||
color: ${theme.fg} !important;
|
color: ${theme.fg} !important;
|
||||||
background: none !important;
|
background-color: ${theme.bg} !important;
|
||||||
}
|
}
|
||||||
body * {
|
body * {
|
||||||
color: inherit !important;
|
color: inherit !important;
|
||||||
border-color: currentColor !important;
|
border-color: currentColor !important;
|
||||||
background-color: ${theme.bg} !important;
|
|
||||||
}
|
}
|
||||||
a:any-link {
|
a:any-link {
|
||||||
color: ${theme.link} !important;
|
color: ${theme.link} !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user