From 9272f36cd46cbbe19172b0f62149f22ed94173c1 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Wed, 16 Feb 2022 16:11:05 +0200 Subject: [PATCH] create drag_window_from_urlbar.css --- chrome/drag_window_from_urlbar.css | 14 ++++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 chrome/drag_window_from_urlbar.css diff --git a/chrome/drag_window_from_urlbar.css b/chrome/drag_window_from_urlbar.css new file mode 100644 index 0000000..2ee1122 --- /dev/null +++ b/chrome/drag_window_from_urlbar.css @@ -0,0 +1,14 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/drag_window_from_urlbar.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Makes the window draggable from urlbar when urlbar is not focused. This means you can't click the urlbar text to activate it normally. But right-click works to activate urlbar. */ + +.urlbar-input-box,#urlbar-input,#urlbar-scheme,#urlbar-container{ + -moz-window-dragging: drag; + cursor: default; +} +#urlbar-container:focus-within, +#urlbar-container:focus-within :is(.urlbar-input-box,#urlbar-input,#urlbar-scheme,#urlbar-container){ + -moz-window-dragging: no-drag; + cursor: auto; +} \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index dd0fc69..53a9782 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -149,5 +149,6 @@ "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"], "window_control_force_linux_system_style.css":["window-control","buttons","icon"], -"window_control_placeholder_support.css":["window-control","patch"] +"window_control_placeholder_support.css":["window-control","patch"], +"drag_window_from_urlbar.css":["urlbar","windows"] } diff --git a/tags.csv b/tags.csv index b49287c..0336e63 100644 --- a/tags.csv +++ b/tags.csv @@ -149,3 +149,4 @@ vertical_popup_menubar.css,menubar,menu,toolbars,popup window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch window_control_force_linux_system_style.css,window-control,buttons,icon window_control_placeholder_support.css,window-control,patch +drag_window_from_urlbar.css,urlbar,windows