2020-06-05 05:59:22 +00:00
|
|
|
/* 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
|
2020-05-22 05:13:58 +00:00
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2020-06-05 05:59:22 +00:00
|
|
|
/* Menubar on top patch - use with tabs_on_bottom.css */
|
2019-01-30 14:13:42 +00:00
|
|
|
/* Only really useful if menubar is ALWAYS visible */
|
|
|
|
|
2021-05-15 09:13:32 +00:00
|
|
|
:root:not([sizemode="fullscreen"]){ --uc-window-control-width: 0px !important }
|
2019-02-06 11:15:16 +00:00
|
|
|
|
2021-06-05 18:48:15 +00:00
|
|
|
: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;
|
|
|
|
}
|
|
|
|
|
2021-09-19 17:31:30 +00:00
|
|
|
/* Since menubar is statically at top, remove fake drag-space that might be set by window_control_placeholder_support.css */
|
|
|
|
#nav-bar{ border-inline-width: 0 }
|
|
|
|
|
2021-06-05 18:48:15 +00:00
|
|
|
#navigator-toolbox{ padding-top: calc(var(--uc-menubar-height) + var(--uc-titlebar-padding,0px)) !important }
|
2021-05-15 09:13:32 +00:00
|
|
|
:root[sizemode="fullscreen"] #navigator-toolbox{ padding-top: 0px !important; }
|
2019-01-30 14:13:42 +00:00
|
|
|
#toolbar-menubar{
|
|
|
|
position: fixed;
|
2020-05-06 16:23:44 +00:00
|
|
|
display: flex;
|
2019-02-06 11:15:16 +00:00
|
|
|
top: var(--uc-titlebar-padding,0px);
|
2021-06-05 18:48:15 +00:00
|
|
|
height: var(--uc-menubar-height);
|
2019-01-30 14:13:42 +00:00
|
|
|
width: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2021-06-05 18:48:15 +00:00
|
|
|
#toolbar-menubar > .titlebar-buttonbox-container{ height: 100%; order: 100; }
|
2020-05-06 16:23:44 +00:00
|
|
|
|
|
|
|
#toolbar-menubar > [flex]{ flex-grow: 100; }
|
2020-05-06 16:26:19 +00:00
|
|
|
#toolbar-menubar > spacer[flex]{
|
|
|
|
order: 99;
|
|
|
|
flex-grow: 1;
|
2021-09-19 17:31:30 +00:00
|
|
|
min-width: var(--uc-window-drag-space-post,20px);
|
2020-05-06 16:26:19 +00:00
|
|
|
}
|
2020-05-06 16:23:44 +00:00
|
|
|
|
2019-01-30 14:13:42 +00:00
|
|
|
#toolbar-menubar .titlebar-button{ padding: 2px 17px !important; }
|
|
|
|
|
2020-05-06 16:23:44 +00:00
|
|
|
#toolbar-menubar .toolbarbutton-1 { --toolbarbutton-inner-padding: 3px }
|