Code: Select all
/* Set --tab-min-height to 0px so tab bar can disappear */
#tabbrowser-tabs {
–tab-min-height: 0px;
}
/* Restore minimum height when more than one tab */
#tabbrowser-tabs tab {
min-height: var(–hidetabs-tab-min-height);
}
/* Collapse tab bar when there is only one tab (tab is both first & last) */
#tabbrowser-tabs tab[first-visible-tab=“true”][last-visible-tab=“true”] {
visibility: collapse;
}
/* Hide the New Tab button when there is only one tab (first visible tab is
adjacent to new tab button) */
#tabbrowser-tabs tab[first-visible-tab=“true”] + #tabs-newtab-button {
visibility: collapse;
}