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:
parent
2f792166c3
commit
d8f027a088
1 changed files with 13 additions and 6 deletions
|
@ -27,11 +27,11 @@ Window controls will be all wrong without it
|
||||||
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;}
|
:root[uidensity="compact"] #navigator-toolbox{ --uc-toolbar-height: 34px;}
|
||||||
:root[uidensity="touch"] #navigator-toolbox{ --uc-toolbar-height: 44px; }
|
: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;
|
--urlbar-container-height: var(--uc-toolbar-height) !important;
|
||||||
padding-block: 0 !important;
|
padding-block: 0 !important;
|
||||||
}
|
}
|
||||||
:root[uidensity=compact] #urlbar{
|
:root[uidensity="compact"] #urlbar{
|
||||||
--urlbar-toolbar-height: var(--uc-toolbar-height) !important;
|
--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 }
|
#urlbar-container{ min-width:unset !important }
|
||||||
}
|
}
|
||||||
|
|
||||||
#toolbar-menubar{ height: initial !important; }
|
:root[tabsintitlebar] #toolbar-menubar{
|
||||||
#toolbar-menubar[inactive] > :not(.titlebar-buttonbox-container){ opacity: 0; pointer-events: none; }
|
height: initial !important;
|
||||||
#toolbar-menubar[inactive]{ margin-bottom: calc(0px - var(--uc-toolbar-height)) }
|
}
|
||||||
|
: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,
|
#TabsToolbar > .titlebar-buttonbox-container,
|
||||||
.titlebar-spacer[type="post-tabs"]{
|
.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; }
|
#urlbar-container:not(:hover) .urlbar-history-dropmarker{ margin-inline-start: -28px; }
|
||||||
|
|
||||||
/* Fix customization view */
|
/* 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; }
|
||||||
|
|
Loading…
Reference in a new issue