diff --git a/chrome/page_action_buttons_on_urlbar_hover.css b/chrome/page_action_buttons_on_urlbar_hover.css new file mode 100644 index 0000000..b8747f8 --- /dev/null +++ b/chrome/page_action_buttons_on_urlbar_hover.css @@ -0,0 +1,15 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/page_action_buttons_on_urlbar_hover.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +.urlbar-page-action{ + margin-inline-end: calc(-16px - 2 * var(--urlbar-icon-padding) ); + opacity: 0; + transition: margin-inline-end 100ms linear, opacity 200ms linear; +} + +#urlbar:hover .urlbar-page-action, +.urlbar-page-action[open], +.urlbar-page-action[open] ~ .urlbar-page-action{ + opacity: 1; + margin-inline-end: 0px !important; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index ec4fb15..4eb6e16 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -144,5 +144,6 @@ "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"] +"urlbar_info_icons_on_hover.css":["autohide","icon","urlbar","minimal"], +"page_action_buttons_on_urlbar_hover.css":["urlbar","icon","minimal","autohide"] } diff --git a/tags.csv b/tags.csv index ba2505a..249e63a 100644 --- a/tags.csv +++ b/tags.csv @@ -144,3 +144,4 @@ 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 +page_action_buttons_on_urlbar_hover.css,urlbar,icon,minimal,autohide