From 7425885cb1598f8ace27f43efdc5a36fe0c3c74d Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Fri, 22 Jul 2022 18:35:46 +0300 Subject: [PATCH] create reload_button_in_urlbar.css --- chrome/reload_button_in_urlbar.css | 24 ++++++++++++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 chrome/reload_button_in_urlbar.css diff --git a/chrome/reload_button_in_urlbar.css b/chrome/reload_button_in_urlbar.css new file mode 100644 index 0000000..ea45b09 --- /dev/null +++ b/chrome/reload_button_in_urlbar.css @@ -0,0 +1,24 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/reload_button_in_urlbar.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Makes stop-reload-button appear as if it's inside urlbar. + * First, move reload button next to urlbar on right side using + * customize-mode + */ + +#urlbar-container + #stop-reload-button{ + margin-left: calc( 1px - var(--urlbar-margin-inline) - 2 * (var(--toolbarbutton-outer-padding) + var(--toolbarbutton-inner-padding)) - 16px ); + position: relative; + z-index: 3; + color: var(--urlbar-box-hover-text-color) !important; + --toolbarbutton-hover-background: var(--urlbar-box-hover-bgcolor); +} + +#urlbar-container + #stop-reload-button > .toolbarbutton-1 > .toolbarbutton-icon{ + padding-block: var(--urlbar-icon-padding) !important; + height: unset !important; +} + +#urlbar{ + padding-right: calc(2 * (var(--toolbarbutton-outer-padding) + var(--toolbarbutton-inner-padding)) + 12px); +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index b841553..8147478 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -153,5 +153,6 @@ "window_control_force_linux_system_style.css":["window-control","buttons","icon"], "window_control_placeholder_support.css":["window-control","patch"], "fake_tab_tooltip.css":["tab","hack","popup"], -"tab_loading_progress_bar.css":["tab","effect"] +"tab_loading_progress_bar.css":["tab","effect"], +"reload_button_in_urlbar.css":["buttons","urlbar"] } diff --git a/tags.csv b/tags.csv index 924f3d9..d9e457c 100644 --- a/tags.csv +++ b/tags.csv @@ -153,3 +153,4 @@ window_control_force_linux_system_style.css,window-control,buttons,icon window_control_placeholder_support.css,window-control,patch fake_tab_tooltip.css,tab,hack,popup tab_loading_progress_bar.css,tab,effect +reload_button_in_urlbar.css,buttons,urlbar