mirror of
https://github.com/danbulant/dribbblish-dynamic-theme
synced 2026-05-27 14:02:13 +00:00
removed useless css for system dark mode detection
This commit is contained in:
parent
4208a0001f
commit
9754ce25a2
1 changed files with 0 additions and 13 deletions
|
|
@ -1,19 +1,6 @@
|
||||||
let current = '2.6.0'
|
let current = '2.6.0'
|
||||||
|
|
||||||
/* css is injected so this works with untouched user.css from Dribbblish */
|
/* css is injected so this works with untouched user.css from Dribbblish */
|
||||||
/* dark theme */
|
|
||||||
document.styleSheets[0].insertRule(`
|
|
||||||
:root {
|
|
||||||
--system_is_dark: 1;
|
|
||||||
}`)
|
|
||||||
|
|
||||||
document.styleSheets[0].insertRule(`
|
|
||||||
@media (prefers-color-scheme: light) {
|
|
||||||
:root {
|
|
||||||
--system_is_dark: 0 !important;
|
|
||||||
}
|
|
||||||
}`)
|
|
||||||
|
|
||||||
/* progressbar tooltip text color */
|
/* progressbar tooltip text color */
|
||||||
document.styleSheets[0].insertRule(`
|
document.styleSheets[0].insertRule(`
|
||||||
.playback-bar .prog-tooltip {
|
.playback-bar .prog-tooltip {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue