mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-10 03:40:14 +00:00
5f30eee1a3
Collapsing disables alltabs button. This patch additionally adds more rules for aligning alltabs-button better under various circumstances.
38 lines
1.5 KiB
CSS
38 lines
1.5 KiB
CSS
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_toolbar_w_with_alltabs_button.css made available under Mozilla Public License v. 2.0
|
|
See the above repository for updates as well as full license text. */
|
|
|
|
/* This is less flexible than hide_tabs_toolbar.css, but this method aims to preserve the alltabs button and show it and window controls next to the main menu button */
|
|
|
|
/* Load window_control_placeholder_support.css before this stylesheet */
|
|
|
|
#tabbrowser-tabs{ visibility: hidden }
|
|
#TabsToolbar-customization-target{ -moz-box-pack: end; }
|
|
#alltabs-button{
|
|
position: relative;
|
|
z-index: 1;
|
|
padding-bottom: 5px !important;
|
|
}
|
|
#TabsToolbar:not([inFullscreen]) > .titlebar-buttonbox-container{
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
@supports not -moz-bool-pref("layout.css.osx-font-smoothing.enabled"){
|
|
:root[id]{ --uc-window-control-width: 40px }
|
|
:root:is([tabsintitlebar],[sizemode="fullscreen"]){ --uc-window-control-width: 160px }
|
|
:root[sizemode="fullscreen"] #alltabs-button{ margin-right: var(--uc-window-control-width) !important; }
|
|
}
|
|
|
|
#TabsToolbar > .titlebar-spacer{ display: none }
|
|
#TabsToolbar{ margin-bottom: calc(0px - var(--tab-min-height) - 2 * var(--tab-block-margin))}
|
|
|
|
:root{ --uc-titlebar-padding: 0px; }
|
|
|
|
@media (-moz-platform: windows),
|
|
(-moz-os-version: windows-win7),
|
|
(-moz-os-version: windows-win10){
|
|
:root[sizemode="maximized"][tabsintitlebar]{
|
|
--uc-titlebar-padding: 8px;
|
|
}
|
|
}
|
|
|
|
#titlebar{ -moz-appearance: none !important; margin-top: var(--uc-titlebar-padding) }
|