From 191dd482f1b4acd724699effabda34c16fca846b Mon Sep 17 00:00:00 2001 From: Gerome Matilla Date: Thu, 21 May 2020 11:03:19 +0800 Subject: [PATCH] add tab bar hides event if theres only one tab --- userChrome.css | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/userChrome.css b/userChrome.css index 9dbc863..7631060 100644 --- a/userChrome.css +++ b/userChrome.css @@ -221,6 +221,17 @@ The tabs container -moz-box-ordinal-group: 3 !important; } +#tabbrowser-tabs { + /* Set minimum height for tab bar */ + --tab-min-height: 0px; +} + +#tabbrowser-tabs tab:only-of-type, +#tabbrowser-tabs tab:only-of-type + #tabs-newtab-button { + /* Hide tab bar if there's only one tab */ + display: none !important; +} + .tabbrowser-tab[fadein]:not([pinned]) { /* Stretch Tabs */ max-width: none !important; @@ -502,6 +513,15 @@ The control buttons. Contains, close, minimize, and maximize buttons display:none!important; } +:root[tabsintitlebar][sizemode="maximized"] #titlebar .titlebar-buttonbox-container { + display: none !important; +} + +:root[tabsintitlebar][sizemode="maximized"] #nav-bar { + padding-left: 3px !important; +} + + /* ░█▀▀░█░█░█▀▀░▀█▀░█▀█░█▄█░▀█▀░▀▀█░█▀█░▀█▀░▀█▀░█▀█░█▀█░█░█░▀█▀░█▀█░█▀▄░█▀█░█░█ ░█░░░█░█░▀▀█░░█░░█░█░█░█░░█░░▄▀░░█▀█░░█░░░█░░█░█░█░█░█▄█░░█░░█░█░█░█░█░█░█▄█ @@ -530,5 +550,4 @@ The customization window .customizationmode-button label { color: var(--bf-color) !important; -} - \ No newline at end of file +} \ No newline at end of file