From 138c17159831a8cefc0fec7a8b70ccca843b4df6 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 16 Aug 2019 16:29:55 +0300 Subject: [PATCH] Override :root scrollbar-color with variable colors --- content/dark_settings_pages.css | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/content/dark_settings_pages.css b/content/dark_settings_pages.css index 131752a..73a392f 100644 --- a/content/dark_settings_pages.css +++ b/content/dark_settings_pages.css @@ -1,8 +1,11 @@ +/* Recolors addons manager, preferences page and new about:config */ + @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); @namespace html url("http://www.w3.org/1999/xhtml"); @-moz-document url-prefix("about:addons"), url-prefix("about:preferences"), + url-prefix("about:config"), url-prefix("chrome://browser/content/"), url-prefix("chrome://mozapps/content/"), url-prefix("chrome://pippki/content/"), @@ -11,9 +14,10 @@ html|html{ --in-content-page-color: rgb(210,210,210) !important; --in-content-text-color: rgb(210,210,210) !important; - --in-content-page-background: rgb(46,54,69) !important; + --in-content-page-background: rgb(42,42,46) !important; --in-content-box-background: rgba(255,255,255,0.1) !important; --in-content-deemphasized-text: var(--in-content-text-color) !important; + scrollbar-color: var(--in-content-text-color) var(--in-content-page-background) !important; } menulist > menupopup{ background-color: var(--in-content-page-background) !important; } @@ -36,6 +40,7 @@ } /* Get addons page */ +/* New addons manager doesn't use this anymore */ @-moz-document url-prefix("https://discovery.addons.mozilla.org/"){ html|*{ color: inherit !important; } html|html,html|body{ @@ -43,14 +48,4 @@ color: rgb(210,210,210) !important; } html|div.addon,html|div.Notice{ background-color: rgba(255,255,255,0.1) !important; } -} - -/* New about:config */ -@-moz-document url-prefix("about:config"){ - html|html{ - --in-content-page-color: rgb(210,210,210) !important; - --in-content-text-color: rgb(210,210,210) !important; - --in-content-page-background: rgb(46,54,69) !important; - --in-content-box-background: rgb(56,64,79) !important; - } } \ No newline at end of file