mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 16:33:47 +03:00
webmail: ensure white background when viewing attachments, for the black text of plain text attachments
otherwise, in dark mode, the plain text iframe content would be black text on the white background of the iframe as set by webmail. i can't find a way to set the content text on the iframe that contains it.
This commit is contained in:
parent
f56b04805b
commit
a4f7e71457
3 changed files with 4 additions and 4 deletions
|
@ -139,12 +139,12 @@ ensureCSS('.keyword.keywordCollapsed', {opacity: .75}),
|
||||||
|
|
||||||
// Generic styling.
|
// Generic styling.
|
||||||
ensureCSS('*', {fontSize: 'inherit', fontFamily: "'ubuntu', 'lato', sans-serif", margin: 0, padding: 0, boxSizing: 'border-box'})
|
ensureCSS('*', {fontSize: 'inherit', fontFamily: "'ubuntu', 'lato', sans-serif", margin: 0, padding: 0, boxSizing: 'border-box'})
|
||||||
ensureCSS('.mono, .mono *', {fontFamily: "'ubuntu mono', monospace" })
|
ensureCSS('.mono, .mono *', {fontFamily: "'ubuntu mono', monospace"})
|
||||||
ensureCSS('table td, table th', {padding: '.15em .25em'})
|
ensureCSS('table td, table th', {padding: '.15em .25em'})
|
||||||
ensureCSS('.pad', {padding: '.5em'})
|
ensureCSS('.pad', {padding: '.5em'})
|
||||||
ensureCSS('iframe', {border: 0})
|
ensureCSS('iframe', {border: 0})
|
||||||
ensureCSS('img, embed, video, iframe', {backgroundColor: 'white', color: 'black'})
|
ensureCSS('img, embed, video, iframe', {backgroundColor: 'white', color: 'black'})
|
||||||
ensureCSS(':root', {backgroundColor: styles.backgroundColor, color: styles.color })
|
ensureCSS(':root', {backgroundColor: styles.backgroundColor, color: styles.color})
|
||||||
ensureCSS('a', {color: ['rgb(9, 107, 194)', 'rgb(99, 182, 255)']})
|
ensureCSS('a', {color: ['rgb(9, 107, 194)', 'rgb(99, 182, 255)']})
|
||||||
ensureCSS('a:visited', {color: ['rgb(7, 4, 193)', 'rgb(199, 99, 255)']})
|
ensureCSS('a:visited', {color: ['rgb(7, 4, 193)', 'rgb(199, 99, 255)']})
|
||||||
|
|
||||||
|
|
|
@ -3909,7 +3909,7 @@ const newMsgView = (miv, msglistView, listMailboxes, possibleLabels, messageLoad
|
||||||
Escape: cmdViewClose,
|
Escape: cmdViewClose,
|
||||||
};
|
};
|
||||||
const attachmentsArrowStyle = css('attachmentsArrow', { color: styles.backgroundColor, backgroundColor: styles.color, width: '2em', height: '2em', borderRadius: '1em', lineHeight: '2em', textAlign: 'center', fontWeight: 'bold' });
|
const attachmentsArrowStyle = css('attachmentsArrow', { color: styles.backgroundColor, backgroundColor: styles.color, width: '2em', height: '2em', borderRadius: '1em', lineHeight: '2em', textAlign: 'center', fontWeight: 'bold' });
|
||||||
const attachmentsIframeStyle = css('attachmentsIframe', { flexGrow: 1, boxShadow: styles.boxShadow, backgroundColor: styles.popupBackgroundColor, margin: '0 5em' });
|
const attachmentsIframeStyle = css('attachmentsIframe', { flexGrow: 1, boxShadow: styles.boxShadow, margin: '0 5em' });
|
||||||
let content;
|
let content;
|
||||||
const popupRoot = dom.div(css('attachmentsOverlay', { position: 'fixed', left: 0, right: 0, top: 0, bottom: 0, backgroundColor: styles.overlayBackgroundColor, display: 'flex', flexDirection: 'column', alignContent: 'stretch', padding: '1em', zIndex: zindexes.attachments }), function click(e) {
|
const popupRoot = dom.div(css('attachmentsOverlay', { position: 'fixed', left: 0, right: 0, top: 0, bottom: 0, backgroundColor: styles.overlayBackgroundColor, display: 'flex', flexDirection: 'column', alignContent: 'stretch', padding: '1em', zIndex: zindexes.attachments }), function click(e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
|
@ -3278,7 +3278,7 @@ const newMsgView = (miv: MsgitemView, msglistView: MsglistView, listMailboxes: l
|
||||||
}
|
}
|
||||||
|
|
||||||
const attachmentsArrowStyle = css('attachmentsArrow', {color: styles.backgroundColor, backgroundColor: styles.color, width: '2em', height: '2em', borderRadius: '1em', lineHeight: '2em', textAlign: 'center', fontWeight: 'bold'})
|
const attachmentsArrowStyle = css('attachmentsArrow', {color: styles.backgroundColor, backgroundColor: styles.color, width: '2em', height: '2em', borderRadius: '1em', lineHeight: '2em', textAlign: 'center', fontWeight: 'bold'})
|
||||||
const attachmentsIframeStyle = css('attachmentsIframe', {flexGrow: 1, boxShadow: styles.boxShadow, backgroundColor: styles.popupBackgroundColor, margin: '0 5em'})
|
const attachmentsIframeStyle = css('attachmentsIframe', {flexGrow: 1, boxShadow: styles.boxShadow, margin: '0 5em'})
|
||||||
|
|
||||||
let content: HTMLElement
|
let content: HTMLElement
|
||||||
const popupRoot = dom.div(
|
const popupRoot = dom.div(
|
||||||
|
|
Loading…
Reference in a new issue