diff --git a/contentimports/newtab_background_color.css b/contentimports/newtab_background_color.css new file mode 100644 index 0000000..c321735 --- /dev/null +++ b/contentimports/newtab_background_color.css @@ -0,0 +1,12 @@ +/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/content/newtab_background_color.css made available under Mozilla Public License v. 2.0 +See the above repository for updates as well as full license text. */ + +@namespace url("http://www.w3.org/1999/xhtml"); + +@-moz-document url("about:home"),url("about:blank"),url("about:newtab"),url("about:privatebrowsing"){ + body{background-color: rgb(12, 12, 13);} +} +@-moz-document("about:privatebrowsing"){ + .search-handoff-button{ background-color: rgba(100,100,100,0.1) !important; } + .fake-textbox{ color: rgb(200,200,200) !important } +} diff --git a/imports/inline_tab_audio_icons.css b/imports/inline_tab_audio_icons.css new file mode 100644 index 0000000..76157c1 --- /dev/null +++ b/imports/inline_tab_audio_icons.css @@ -0,0 +1,16 @@ +/* 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 */ + +.tabbrowser-tab:not([pinned]) .tab-icon-stack:is([muted],[soundplaying],[activemedia-blocked]){ + grid-template-areas: "a s"; +} +.tabbrowser-tab:not([pinned]) .tab-icon-overlay:is([muted],[soundplaying],[activemedia-blocked]){ grid-area: s; } +.tab-icon-overlay,.tab-icon-image{ opacity: 1 !important; } + +/* secondary audio label ain't much use with this style, but feel free to remove the next line if you want to show it. */ +.tab-secondary-label{ display: none } + +/* show the secondary label when video is in PiP */ +.tab-secondary-label[pictureinpicture]{ display: -moz-box } \ No newline at end of file diff --git a/userChrome.css b/userChrome.css index 5cc70ba..1275ca7 100644 --- a/userChrome.css +++ b/userChrome.css @@ -1,6 +1,6 @@ @import url("imports/tabs_on_bottom.css"); @import url("imports/tabs_fill_available_width"); -@import url("imports/showAudioAlways.css"); +@import url("imports/inline_tab_audio_icons.css"); .tabbrowser-tab[fadein]:not([pinned]) { max-width: none !important; } diff --git a/userContent.css b/userContent.css new file mode 100644 index 0000000..558dfb5 --- /dev/null +++ b/userContent.css @@ -0,0 +1 @@ +@import url("contentimports/newtab_background_color.css");