diff --git a/chrome/icon_only_tabs.css b/chrome/icon_only_tabs.css new file mode 100644 index 0000000..7e46980 --- /dev/null +++ b/chrome/icon_only_tabs.css @@ -0,0 +1,14 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/icon_only_tabs.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +.tab-content > :not(.tab-icon-stack){ + display: none +} +.tab-icon-stack > *{ margin-inline: 0 !important; } +.tabbrowser-tab{ -moz-box-flex: 0 !important; } + +.tabbrowser-tab[fadein]{ min-width: calc(16px + 2 * 10px + 4px) !important; } +:root[uidensity="compact"] .tabbrowser-tab[fadein]{ + min-width: calc(16px + 2 * var(--inline-tab-padding,0px) + 4px) !important; +} +:root:not([uidensity="compact"]) .tab-content{ padding-inline: 10px !important; } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index db0711f..25ccaad 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -130,5 +130,6 @@ "sharp_menupopup_corners.css":["popup","menu","proton"], "overlay_tab_audio_icons.css":["icon","tab"], "custom_default_tab_favicons.css":["tab","icon"], -"selected_tab_as_urlbar.css":["hack"] +"selected_tab_as_urlbar.css":["hack"], +"icon_only_tabs.css":["tab","icon"] } diff --git a/tags.csv b/tags.csv index b330a71..1d6e428 100644 --- a/tags.csv +++ b/tags.csv @@ -130,3 +130,4 @@ sharp_menupopup_corners.css,popup,menu,proton overlay_tab_audio_icons.css,icon,tab custom_default_tab_favicons.css,tab,icon selected_tab_as_urlbar.css,hack +icon_only_tabs.css,tab,icon