mobile-config-firefox/chrome/hide_tabs_with_one_tab.css

63 lines
2.2 KiB
CSS
Raw Normal View History

2020-05-22 05:13:58 +00:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/hide_tabs_with_one_tab.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes tabs toolbar items zero-height initially and sets enlarge them to fill up space equal to tab-min-height set on tabs. Optionally use privatemode_indicator_as_menu_button.css to replace main menu icon with private browsing indicator while tabs are hidden. */
2018-12-02 03:07:43 +00:00
/* Firefox 65+ only */
:root[sizemode="normal"] #nav-bar{ --uc-window-drag-space-width: 20px }
2018-12-02 03:30:59 +00:00
2018-12-02 03:07:43 +00:00
#titlebar{ -moz-appearance: none !important; }
#TabsToolbar{ min-height: 0px !important }
#tabbrowser-tabs,
#tabbrowser-arrowscrollbox{ min-height: 0 !important; }
2018-12-02 03:07:43 +00:00
:root:not([customizing]) #tabbrowser-tabs .tabs-newtab-button,
2019-09-01 14:25:56 +00:00
:root:not([customizing]) #tabs-newtab-button,
:root:not([customizing]) #TabsToolbar-customization-target > .toolbarbutton-1,
2018-12-02 03:07:43 +00:00
:root:not([customizing]) #TabsToolbar .titlebar-button{
-moz-appearance: none !important;
height: 0px;
padding-top: 0px !important;
padding-bottom: 0px !important;
-moz-box-align: stretch;
margin: 0 !important;
}
.accessibility-indicator,
.private-browsing-indicator{
height: unset !important;
}
.accessibility-indicator > hbox{ padding-block: 0 !important }
.tabbrowser-tab{
height: calc(var(--tab-min-height) + 2 * var(--tab-block-margin,0px));
}
.tabbrowser-tab[first-visible-tab="true"][last-visible-tab="true"]{
2018-12-02 03:07:43 +00:00
visibility: collapse !important;
/* These seem unnecessary, but they achieve compatibility with hide_tabs_with_one_tab.css */
min-height: 0 !important;
height: 0;
2018-12-02 03:07:43 +00:00
}
/* Button re-styling */
2021-09-19 17:15:26 +00:00
#tabs-newtab-button{ transform: scale(0.8); }
#tabs-newtab-button:hover{
background-color: var(--toolbarbutton-hover-background);
border-radius: var(--tab-border-radius);
}
2021-09-19 17:15:26 +00:00
#tabs-newtab-button > .toolbarbutton-icon{
2018-12-02 03:07:43 +00:00
padding: 0 !important;
transform: scale(0.6);
background-color: transparent !important;
}
/* Fix window controls not being clickable */
:root[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive]{
transition: height 0ms steps(1) 80ms;
2018-12-02 03:30:59 +00:00
}
2021-05-15 09:13:32 +00:00
:where(#nav-bar){
2021-09-19 17:15:26 +00:00
border-inline: var(--uc-window-drag-space-width,0) solid var(--toolbar-bgcolor);
}