create drag_window_from_urlbar.css

This commit is contained in:
MrOtherGuy 2022-02-16 16:11:05 +02:00
parent a5ac138086
commit 9272f36cd4
3 changed files with 17 additions and 1 deletions

View file

@ -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;
}

View file

@ -149,5 +149,6 @@
"vertical_popup_menubar.css":["menubar","menu","toolbars","popup"], "vertical_popup_menubar.css":["menubar","menu","toolbars","popup"],
"window_control_fallback_for_custom_windows_theme.css":["window-control","buttons","colors","patch"], "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_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"]
} }

View file

@ -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_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch
window_control_force_linux_system_style.css,window-control,buttons,icon 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

1 auto_devtools_theme_for_rdm.css,devtools,colors
149 window_control_fallback_for_custom_windows_theme.css,window-control,buttons,colors,patch
150 window_control_force_linux_system_style.css,window-control,buttons,icon
151 window_control_placeholder_support.css,window-control,patch
152 drag_window_from_urlbar.css,urlbar,windows