From 900c1930dd62175f461885997deb1bbd7781aba1 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Thu, 6 Dec 2018 21:38:02 +0200 Subject: [PATCH] Add html namespace and some comments --- content/css_scrollbar_width_color.css | 1 + content/limit_css_data_leak.css | 2 ++ content/newtab_background_color.css | 2 ++ content/transparent_reader_toolbar.css | 4 ++++ 4 files changed, 9 insertions(+) diff --git a/content/css_scrollbar_width_color.css b/content/css_scrollbar_width_color.css index 913ce45..cbde0c4 100644 --- a/content/css_scrollbar_width_color.css +++ b/content/css_scrollbar_width_color.css @@ -1,4 +1,5 @@ /* Scrollbar colors and width - applied globally */ +@namespace url("http://www.w3.org/1999/xhtml"); :root{ scrollbar-color: rgb(210,210,210) rgb(46,54,69); scrollbar-width: thin; diff --git a/content/limit_css_data_leak.css b/content/limit_css_data_leak.css index dc35c73..b0055a3 100644 --- a/content/limit_css_data_leak.css +++ b/content/limit_css_data_leak.css @@ -1,4 +1,6 @@ /* Limit CSS data leak, POTENTIALLY BREAKS SOME SITES */ +@namespace html url("http://www.w3.org/1999/xhtml"); + body input:not([value=""])[type], body input:not([value=""])[type]:focus ~ *, body input:not([value=""])[type] * { diff --git a/content/newtab_background_color.css b/content/newtab_background_color.css index 3ea7647..4833ef6 100644 --- a/content/newtab_background_color.css +++ b/content/newtab_background_color.css @@ -1,3 +1,5 @@ +@namespace url("http://www.w3.org/1999/xhtml"); + @-moz-document url("about:home"),url("about:blank"),url("about:newtab"),url("about:privatebrowsing"){ body{background-color: rgb(46,54,69) !important} } \ No newline at end of file diff --git a/content/transparent_reader_toolbar.css b/content/transparent_reader_toolbar.css index c22e08b..444aa55 100644 --- a/content/transparent_reader_toolbar.css +++ b/content/transparent_reader_toolbar.css @@ -1,3 +1,7 @@ +/* Toolbar is invisible until hovered */ + +@namespace html url("http://www.w3.org/1999/xhtml"); + @-moz-document url-prefix("about:reader"){ .reader-toolbar, .reader-toolbar .button:not(:hover) { background-color: transparent !important;