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