From 19c1452193590f3f97fec7160339b02b805cbe96 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 19 Mar 2022 08:34:48 +0200 Subject: [PATCH] toolbars_below_content: make it able to drag the window from menubar Dragging the window is still disabled when using only autohide_menubar.css. But if you use both then dragging menubar should work. --- chrome/autohide_menubar.css | 3 ++- chrome/toolbars_below_content.css | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/chrome/autohide_menubar.css b/chrome/autohide_menubar.css index eb97152..1417fd4 100644 --- a/chrome/autohide_menubar.css +++ b/chrome/autohide_menubar.css @@ -19,6 +19,8 @@ See the above repository for updates as well as full license text. */ #TabsToolbar > .titlebar-spacer{ display: -moz-box !important; } +:where(#toolbar-menubar){ -moz-window-dragging: no-drag; } + #toolbar-menubar:not([customizing]){ --uc-menubar-height: 34px; position: fixed; @@ -28,7 +30,6 @@ See the above repository for updates as well as full license text. */ /* --uc-menubar-extra-margin is defined in toolbars_below_content.css */ margin-top: calc(var(--uc-menubar-spacer) - var(--uc-menubar-height) + var(--uc-menubar-extra-margin,0px)); transition: margin-top 150ms linear !important; - -moz-window-dragging: no-drag; z-index:4; } diff --git a/chrome/toolbars_below_content.css b/chrome/toolbars_below_content.css index 3a903fb..37d0492 100644 --- a/chrome/toolbars_below_content.css +++ b/chrome/toolbars_below_content.css @@ -34,7 +34,13 @@ See the above repository for updates as well as full license text. */ /* Remove the next row if you want tabs to be the top-most row */ #titlebar{ -moz-box-ordinal-group: 2 } - #toolbar-menubar{ position: fixed; display: flex; width: 100vw; top: 0px; } + #toolbar-menubar{ + position: fixed; + display: flex; + width: 100vw; + top: 0px; + -moz-window-dragging: drag; + } /* Remove bottom border that won't do anything useful when at bottom of the window */ #navigator-toolbox{ border-bottom: none !important; }