diff options
author | 2019-10-16 10:26:32 +0200 | |
---|---|---|
committer | 2019-10-16 10:26:32 +0200 | |
commit | 38789f82db4bfbeafa8b4e98e082a2ba6fb1d384 (patch) | |
tree | 9352493296d25d0f431de53f73e7457eecd1027c /src/webview/darkmode | |
parent | Merge pull request #119 from getferdi/l10n_develop (diff) | |
download | ferdium-app-38789f82db4bfbeafa8b4e98e082a2ba6fb1d384.tar.gz ferdium-app-38789f82db4bfbeafa8b4e98e082a2ba6fb1d384.tar.zst ferdium-app-38789f82db4bfbeafa8b4e98e082a2ba6fb1d384.zip |
Add custom CSS for darkmode to fix WhatsApp and Threema QR codes
Diffstat (limited to 'src/webview/darkmode')
-rw-r--r-- | src/webview/darkmode/custom.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/webview/darkmode/custom.js b/src/webview/darkmode/custom.js new file mode 100644 index 000000000..4b2b89fb2 --- /dev/null +++ b/src/webview/darkmode/custom.js | |||
@@ -0,0 +1,22 @@ | |||
1 | // CSS for pages that need custom styles to work correctly in darkmode | ||
2 | export default { | ||
3 | 'web.whatsapp.com': ` | ||
4 | div.landing-window > div.landing-main { | ||
5 | background-color: #FFFFFF !important; | ||
6 | } | ||
7 | div.landing-window > div.landing-main * { | ||
8 | color: #212121 !important; | ||
9 | } | ||
10 | `, | ||
11 | 'web.threema.ch': ` | ||
12 | .scan { | ||
13 | background-color: #FFF; | ||
14 | } | ||
15 | .scan * { | ||
16 | color: #212121; | ||
17 | } | ||
18 | .scan input.md-input { | ||
19 | color: #212121; | ||
20 | } | ||
21 | ` | ||
22 | }; | ||