From 36a11ddb7ce2bae4d9798316283d461040e4aeb7 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 17 Apr 2021 12:21:36 +0300 Subject: [PATCH] create inline_tab_audio_icons.css --- chrome/inline_tab_audio_icons.css | 13 +++++++++++++ html_resources/tagmap.json | 3 ++- tags.csv | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 chrome/inline_tab_audio_icons.css diff --git a/chrome/inline_tab_audio_icons.css b/chrome/inline_tab_audio_icons.css new file mode 100644 index 0000000..8947cd7 --- /dev/null +++ b/chrome/inline_tab_audio_icons.css @@ -0,0 +1,13 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/inline_tab_audio_icons.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +/* Shows tab audio icons next to the tab icon, and by default removes the tab secondary line */ + +.tab-icon-stack:is([muted],[soundplaying],[activemedia-blocked]){ + grid-template-areas: "a s"; +} +.tab-icon-overlay:is([muted],[soundplaying],[activemedia-blocked]){ grid-area: s; } +.tab-icon-overlay,.tab-icon-image{ opacity: 1 !important; } + +/* secondary audio label can be removed if you use this style, but feel free to remove the next line if you want to show it. */ +.tab-secondary-label{ display: none } \ No newline at end of file diff --git a/html_resources/tagmap.json b/html_resources/tagmap.json index de155ff..e3cc80e 100644 --- a/html_resources/tagmap.json +++ b/html_resources/tagmap.json @@ -120,5 +120,6 @@ "passive_tab_audio_label.css":["tab","proton"], "hide_tabs_scrollbuttons.css":["tabs","hiding","buttons","minimal"], "tab_effect_scale_onclick.css":["tab","effect"], -"auto_devtools_theme_for_rdm.css":["devtools","colors"] +"auto_devtools_theme_for_rdm.css":["devtools","colors"], +"inline_tab_audio_icons.css":["tab","icon","proton"] } diff --git a/tags.csv b/tags.csv index 5f130c8..2929f85 100644 --- a/tags.csv +++ b/tags.csv @@ -120,3 +120,4 @@ passive_tab_audio_label.css,tab,proton hide_tabs_scrollbuttons.css,tabs,hiding,buttons,minimal tab_effect_scale_onclick.css,tab,effect auto_devtools_theme_for_rdm.css,devtools,colors +inline_tab_audio_icons.css,tab,icon,proton