Set menubar margins only when native titlebar is disabled

If native titlebar is enabled the rules would move tabs and navbar
partially below native titlebar. Those rules are not needed anyway
with native titlebar since window controls are in native titlebar.
This commit is contained in:
MrOtherGuy 2022-05-15 06:20:05 +03:00
parent 2f792166c3
commit d8f027a088

View file

@ -27,11 +27,11 @@ Window controls will be all wrong without it
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;}
:root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; }
:root[uidensity=compact] #urlbar-container{
:root[uidensity="compact"] #urlbar-container{
--urlbar-container-height: var(--uc-toolbar-height) !important;
padding-block: 0 !important;
}
:root[uidensity=compact] #urlbar{
:root[uidensity="compact"] #urlbar{
--urlbar-toolbar-height: var(--uc-toolbar-height) !important;
}
@ -41,9 +41,16 @@ Window controls will be all wrong without it
#urlbar-container{ min-width:unset !important }
}
#toolbar-menubar{ height: initial !important; }
#toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ opacity: 0; pointer-events: none; }
#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) }
:root[tabsintitlebar] #toolbar-menubar{
height: initial !important;
}
:root[tabsintitlebar] #toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){
opacity: 0;
pointer-events: none;
}
:root[tabsintitlebar] #toolbar-menubar[inactive]{
margin-bottom: calc(0px - var(--uc-toolbar-height));
}
#TabsToolbar > .titlebar-buttonbox-container,
.titlebar-spacer[type="post-tabs"]{
@ -97,4 +104,4 @@ Window controls will be all wrong without it
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
/* Fix customization view */
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }
#customization-panelWrapper > .panel-arrowbox > .panel-arrow{ margin-inline-end: initial !important; }