Hide the tab bar only if there is only one tab present

This commit is contained in:
Tobias Schmidl 2018-10-02 09:23:30 +02:00
parent 4a74ae6019
commit 6e0a2ae0f2

View file

@ -1 +1,21 @@
#tabbrowser-tabs { visibility: collapse !important; } #tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
min-height: 0 !important;
}
/* Thanks to @Speravir for making it work again in the latest versions. */
#tabbrowser-tabs tab[first-visible-tab="true"][last-visible-tab="true"] {
visibility: collapse;
}
#navigator-toolbox[first-visible-tab="true"][last-visible-tab="true"] {
visibility: collapse; }
/* I don't use tabs so I just hide the new tab button. You should be able to use a similar trick as the rule above with
css siblings selectors if you want to keep it when the tab bar is visible. */
#tabbrowser-tabs .tabs-newtab-button {
visibility: collapse !important;
}
#tabbrowser-tabs tab {
min-height: var(--tab-min-height)
}