mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-10 03:40:14 +00:00
40 lines
No EOL
1.4 KiB
CSS
40 lines
No EOL
1.4 KiB
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_on_bottom_menubar_on_top_patch.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
/* Menubar on top patch - use with tabs_on_bottom.css */
|
|
/* Only really useful if menubar is ALWAYS visible */
|
|
|
|
:root:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important }
|
|
|
|
:root{
|
|
/* height if native titlebar is enabled, assumes empty menubar */
|
|
--uc-menubar-height: 20px;
|
|
}
|
|
:root[tabsintitlebar]{
|
|
/* height when native titlebar is disabled, more roomy so can fit buttons etc. */
|
|
--uc-menubar-height: 29px;
|
|
}
|
|
|
|
#navigator-toolbox{ padding-top: calc(var(--uc-menubar-height) + var(--uc-titlebar-padding,0px)) !important }
|
|
:root[sizemode="fullscreen"] #navigator-toolbox{ padding-top: 0px !important; }
|
|
#toolbar-menubar{
|
|
position: fixed;
|
|
display: flex;
|
|
top: var(--uc-titlebar-padding,0px);
|
|
height: var(--uc-menubar-height);
|
|
width: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#toolbar-menubar > .titlebar-buttonbox-container{ height: 100%; order: 100; }
|
|
|
|
#toolbar-menubar > [flex]{ flex-grow: 100; }
|
|
#toolbar-menubar > spacer[flex]{
|
|
order: 99;
|
|
flex-grow: 1;
|
|
min-width: var(--uc-window-drag-space-width,20px);
|
|
}
|
|
|
|
#toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
|
|
|
|
#toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px } |