From 9754ce25a2168d40fe53d8d25f9f35520e35db22 Mon Sep 17 00:00:00 2001 From: Julien Maille Date: Wed, 13 Oct 2021 22:49:56 +0200 Subject: [PATCH] removed useless css for system dark mode detection --- dribbblish-dynamic.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/dribbblish-dynamic.js b/dribbblish-dynamic.js index 1cfbd42..cf0ded2 100644 --- a/dribbblish-dynamic.js +++ b/dribbblish-dynamic.js @@ -1,19 +1,6 @@ let current = '2.6.0' /* 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 */ document.styleSheets[0].insertRule(` .playback-bar .prog-tooltip {