2020-05-22 05:13:58 +00:00
|
|
|
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tabs_below_content.css made available under Mozilla Public License v. 2.0
|
|
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
|
2019-02-09 10:45:52 +00:00
|
|
|
|
2019-02-08 22:03:13 +00:00
|
|
|
/* IMPORTANT */
|
|
|
|
/*
|
2019-02-09 10:45:52 +00:00
|
|
|
Get window_control_placeholder_support.css
|
2019-05-05 13:20:34 +00:00
|
|
|
Window controls will be all wrong without it.
|
|
|
|
|
|
|
|
Additionally on Linux, you may need to get:
|
|
|
|
linux_gtk_window_control_patch.css
|
|
|
|
|
2019-02-08 22:03:13 +00:00
|
|
|
*/
|
2019-02-06 08:30:05 +00:00
|
|
|
|
|
|
|
.titlebar-buttonbox-container{
|
|
|
|
position: fixed;
|
2019-09-28 09:18:59 +00:00
|
|
|
display: block;
|
2019-02-06 08:30:05 +00:00
|
|
|
top:0;
|
|
|
|
right:0;
|
|
|
|
height: 40px;
|
|
|
|
z-index: 3;
|
|
|
|
visibility: visible !important;
|
|
|
|
}
|
|
|
|
|
2019-11-11 15:23:33 +00:00
|
|
|
:root[inFullscreen] #navigator-toolbox:not(:hover) .titlebar-buttonbox-container{ display: none !important; }
|
2019-02-06 08:30:05 +00:00
|
|
|
|
|
|
|
:root[uidensity="compact"] .titlebar-buttonbox-container{ height: 32px }
|
|
|
|
.titlebar-buttonbox-container > .titlebar-buttonbox{ height: 100%; }
|
|
|
|
|
2019-02-06 08:54:13 +00:00
|
|
|
/* Re-adjust window cotrols if menubar is permanently enabled */
|
2019-02-07 10:43:36 +00:00
|
|
|
:root[tabsintitlebar="true"]:not([inFullscreen]) #toolbar-menubar[autohide="false"]{ transform: translateX(0px); }
|
|
|
|
:root[tabsintitlebar="true"]:not([inFullscreen]) #toolbar-menubar[autohide="false"] .titlebar-buttonbox-container{ height: 100%; }
|
|
|
|
:root[tabsintitlebar="true"]:not([inFullscreen]) #toolbar-menubar[autohide="false"] .titlebar-button{ padding: 2px 17px !important; }
|
2019-02-06 08:54:13 +00:00
|
|
|
|
2019-02-06 08:30:05 +00:00
|
|
|
#titlebar{ -moz-appearance: none !important; }
|
|
|
|
/* Counteract -moz-appearance when maximized */
|
2019-11-11 15:23:33 +00:00
|
|
|
:root[sizemode="maximized"] #navigator-toolbox{ padding-top: 8px !important; }
|
2019-02-06 08:54:13 +00:00
|
|
|
:root[sizemode="maximized"] #toolbar-menubar:not([autohide="false"]) .titlebar-buttonbox-container{ top: 8px }
|
2019-02-06 08:30:05 +00:00
|
|
|
|
|
|
|
/* Move tabs below content */
|
2019-06-16 06:05:07 +00:00
|
|
|
:root:not([inDOMFullscreen]) #content-deck,
|
2019-11-11 15:23:33 +00:00
|
|
|
:root:not([inDOMFullscreen]) #browser{ margin-bottom: var(--tab-min-height) }
|
2019-09-28 09:18:59 +00:00
|
|
|
#TabsToolbar{ position: fixed; display: block; bottom: 0px; width: 100vw; height: var(--tab-min-height) }
|
2019-04-27 09:04:51 +00:00
|
|
|
#TabsToolbar-customization-target{ width: 100vw; }
|
2019-02-06 08:30:05 +00:00
|
|
|
|
|
|
|
/* Hide stuff that doesn't make sense with tabs below content */
|
|
|
|
#TabsToolbar > .titlebar-buttonbox-container,
|
|
|
|
#window-controls, /* Fullscreen window controls */
|
|
|
|
#TabsToolbar .titlebar-spacer{
|
|
|
|
display: none !important;
|
2019-04-27 09:04:51 +00:00
|
|
|
}
|