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.
This commit is contained in:
MrOtherGuy 2022-03-19 08:34:48 +02:00
parent 0bc77cc515
commit 19c1452193
2 changed files with 9 additions and 2 deletions

View file

@ -19,6 +19,8 @@ See the above repository for updates as well as full license text. */
#TabsToolbar > .titlebar-spacer{ display: -moz-box !important; } #TabsToolbar > .titlebar-spacer{ display: -moz-box !important; }
:where(#toolbar-menubar){ -moz-window-dragging: no-drag; }
#toolbar-menubar:not([customizing]){ #toolbar-menubar:not([customizing]){
--uc-menubar-height: 34px; --uc-menubar-height: 34px;
position: fixed; 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 */ /* --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)); margin-top: calc(var(--uc-menubar-spacer) - var(--uc-menubar-height) + var(--uc-menubar-extra-margin,0px));
transition: margin-top 150ms linear !important; transition: margin-top 150ms linear !important;
-moz-window-dragging: no-drag;
z-index:4; z-index:4;
} }

View file

@ -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 */ /* Remove the next row if you want tabs to be the top-most row */
#titlebar{ -moz-box-ordinal-group: 2 } #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 */ /* Remove bottom border that won't do anything useful when at bottom of the window */
#navigator-toolbox{ border-bottom: none !important; } #navigator-toolbox{ border-bottom: none !important; }