add tab_count_in_alltabs_button.css

This commit is contained in:
MrOtherGuy
2024-07-17 20:14:14 +03:00
parent 2c25bab3c9
commit 17768e9320
3 changed files with 28 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/tab_count_in_alltabs_button.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Replace the icon in alltabs-button with a counter showing number of opened (visible) tabs.
Note that you can make alltabs button always show up by setting browser.tabs.tabmanager.enabled to true */
#TabsToolbar-customization-target{
counter-reset: tab-counter;
}
.tabbrowser-tab:not([hidden]){
counter-increment: tab-counter;
}
#alltabs-button >.toolbarbutton-badge-stack > .toolbarbutton-icon{
opacity: 0;
}
#alltabs-button >.toolbarbutton-badge-stack::before{
content: counter(tab-counter);
display: flex;
grid-area: 1/1;
justify-content: center;
color: var(--toolbarbutton-icon-fill);
border-bottom: 1px solid;
contain: inline-size;
}

View File

@@ -168,5 +168,6 @@
"vertical_tabs.css":["tabs","hack"],
"bookmarks_below_content.css":["bookmarks","toolbars"],
"overlay_fullscreen_toolbars.css":["toolbars","fullscreen"],
"dual_color_tab_attention_indicator.css":["tab","colors"]
"dual_color_tab_attention_indicator.css":["tab","colors"],
"tab_count_in_alltabs_button.css":["tabs"]
}

View File

@@ -168,3 +168,4 @@ vertical_tabs.css,tabs,hack
bookmarks_below_content.css,bookmarks,toolbars
overlay_fullscreen_toolbars.css,toolbars,fullscreen
dual_color_tab_attention_indicator.css,tab,colors
tab_count_in_alltabs_button.css,tabs
1 auto_devtools_theme_for_rdm.css,devtools,colors
168 bookmarks_below_content.css,bookmarks,toolbars
169 overlay_fullscreen_toolbars.css,toolbars,fullscreen
170 dual_color_tab_attention_indicator.css,tab,colors
171 tab_count_in_alltabs_button.css,tabs