From 878fe0fa05cbbdab7ebf24ed4bb5b1bd89f5a811 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 28 Nov 2021 15:17:56 +0200 Subject: [PATCH] create urlbar_info_icons_on_hover.css --- chrome/urlbar_info_icons_on_hover.css | 21 +++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 chrome/urlbar_info_icons_on_hover.css diff --git a/chrome/urlbar_info_icons_on_hover.css b/chrome/urlbar_info_icons_on_hover.css new file mode 100644 index 0000000..0d9b246 --- /dev/null +++ b/chrome/urlbar_info_icons_on_hover.css @@ -0,0 +1,21 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/urlbar_info_icons_on_hover.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Hides info icons on the left side of urlbar and shows them when urlbar is hovered. */ + +#remote-control-box, +#urlbar-search-button, +#tracking-protection-icon-container, +#identity-box, +#identity-box.extensionPage #identity-icon-label{ + max-width: 0px; + transition: max-width 300ms linear !important; + overflow: hidden; +} + +#identity-box.extensionPage{ max-width: 32px } + +#urlbar:hover #urlbar-input-container > box, +#urlbar:hover #identity-box.extensionPage #identity-icon-label{ + max-width: 300px; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index 2593d83..ec4fb15 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -143,5 +143,6 @@ "vertical_menubar.css":["menubar","hack"], "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"], -"window_control_placeholder_support.css":["window-control","patch"] +"window_control_placeholder_support.css":["window-control","patch"], +"urlbar_info_icons_on_hover.css":["autohide","icon","urlbar","minimal"] } diff --git a/tags.csv b/tags.csv index 73514af..ba2505a 100644 --- a/tags.csv +++ b/tags.csv @@ -143,3 +143,4 @@ vertical_menubar.css,menubar,hack vertical_popup_menubar.css,menubar,menu,toolbars,popup window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch window_control_placeholder_support.css,window-control,patch +urlbar_info_icons_on_hover.css,autohide,icon,urlbar,minimal