From 9b87c5f6689f74f4a56a9abcd5d537f458c19300 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 23 Aug 2020 14:59:33 +0300 Subject: [PATCH] Create urlbar_connection_type_colors.css --- chrome/urlbar_connection_type_colors.css | 17 +++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 chrome/urlbar_connection_type_colors.css diff --git a/chrome/urlbar_connection_type_colors.css b/chrome/urlbar_connection_type_colors.css new file mode 100644 index 0000000..675dc8f --- /dev/null +++ b/chrome/urlbar_connection_type_colors.css @@ -0,0 +1,17 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/urlbar_connection_type_colors.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Modifies the urlbar text color based on connection type - "normal" https: won't be mdofied */ + +/* Mixed content including neterror */ +#identity-box[pageproxystate="valid"].unknownIdentity ~ .urlbar-input-box{ color: orange } + +/* http: and potentially some other insecure connections like ftp: */ +#identity-box[pageproxystate="valid"].notSecure ~ .urlbar-input-box{ color: orangered } + +/* Extension pages */ +#identity-box[pageproxystate="valid"].extensionPage ~ .urlbar-input-box{ color: violet } + +/* Internal about: and chrome:// urls (includes reader-view) */ +#identity-box[pageproxystate="valid"].localResource ~ .urlbar-input-box, +#identity-box[pageproxystate="valid"].chromeUI ~ .urlbar-input-box{ color: dodgerblue } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index a3e40c1..30c081d 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -102,5 +102,6 @@ "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "classic_firefox_menu_button.css":["classic","menu"], "bookmarks_toolbar_on_newtabs_only.css":["bookmarks","toolbars","autohide","hiding"], -"status_inside_urlbar_v2.css":["status","urlbar","status","effect","hack"] +"status_inside_urlbar_v2.css":["status","urlbar","status","effect","hack"], +"urlbar_connection_type_colors.css":["urlbar","colors","status"] } diff --git a/tags.csv b/tags.csv index bccea1a..bd4f91c 100644 --- a/tags.csv +++ b/tags.csv @@ -102,3 +102,4 @@ vertical_popup_menubar.css,menubar,menu,toolbars,popup classic_firefox_menu_button.css,classic,menu bookmarks_toolbar_on_newtabs_only.css,bookmarks,toolbars,autohide,hiding status_inside_urlbar_v2.css,status,urlbar,status,effect,hack +urlbar_connection_type_colors.css,urlbar,colors,status