diff options
author | Kuuuube <61125188+Kuuuube@users.noreply.github.com> | 2024-06-18 14:00:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-18 18:00:52 +0000 |
commit | ebd911201df0e6fce95b408935fb35580851170e (patch) | |
tree | 1955088b5c5157a02b1d75d8994e20114199830c /ext/css/popup-preview.css | |
parent | 129be78c9bf1b9d378050c6ca6ec722ef456c4ee (diff) |
Add full dark mode support (#1079)
* Add full dark mode support
* Fix welcome, permissions, and quick start scrollbars
* Fix action popup dark mode on mobile
* Add theme to info page
* Reduce flashbang
* Move position of settingsDisplayController to not break things
* Fix dictionary import drag drop theming
* Make dark shadow color less bad
* Prepare themeController to avoid not being able to set browser theme
Diffstat (limited to 'ext/css/popup-preview.css')
-rw-r--r-- | ext/css/popup-preview.css | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/css/popup-preview.css b/ext/css/popup-preview.css index 2f5a03a8..a72edc65 100644 --- a/ext/css/popup-preview.css +++ b/ext/css/popup-preview.css @@ -24,18 +24,23 @@ --line-height: calc(var(--line-height-no-units) / var(--font-size-no-units)); --animation-duration: 0s; + + --example-text-color: #333333; } :root[data-loaded=true] { --animation-duration: 0.25s; } +:root[data-theme=dark] { + --example-text-color: #d4d4d4; +} + + html { transition: background-color var(--animation-duration) linear 0s, color var(--animation-duration) linear 0s; background-color: rgba(255, 255, 255, 0); - color: #333333; } html.dark { - color: #d4d4d4; background-color: #1e1e1e; } html, @@ -92,7 +97,7 @@ body { margin: 0; padding: 0; outline: none; - color: inherit; + color: var(--example-text-color); background-color: transparent; white-space: pre; transition: background-color var(--animation-duration) linear 0s, border-color var(--animation-duration) linear 0s; |