diff options
author | Azat Bahawi <azat@bahawi.net> | 2022-09-10 15:49:40 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2022-09-10 15:49:40 +0300 |
commit | dcb02e0ea80821d60185569fb88ec66bea3f3f08 (patch) | |
tree | a2ab8943f94ce8f1ae1359051c7e42551c80806e /modules/nixfiles/firefox | |
parent | 3399a58442ad0a93fc3b6f68d1b878ab078a0e06 (diff) |
2022-09-10
Diffstat (limited to 'modules/nixfiles/firefox')
-rw-r--r-- | modules/nixfiles/firefox/userContent.css | 66 |
1 files changed, 30 insertions, 36 deletions
diff --git a/modules/nixfiles/firefox/userContent.css b/modules/nixfiles/firefox/userContent.css index 97365f9..81cf04e 100644 --- a/modules/nixfiles/firefox/userContent.css +++ b/modules/nixfiles/firefox/userContent.css @@ -1,31 +1,29 @@ -@-moz-document url(about:blank), url(about:home), url(about:newtab), url(about:privatebrowsing) { - html, +@-moz-document media-document(all) { body { - background: var(--background) !important; + background-image: none !important; + background-color: var(--background) !important; } +} +@-moz-document regexp("about:(blank|home|newtab|privatebrowsing|welcome)") { + html, body { - display: none !important; + background: var(--background) !important; } -} -@-moz-document media-document(all) { body { - background-image: none !important; - background-color: var(--background) !important; + display: none !important; } } -@-moz-document url-prefix(https://gitlab.com/) -{ +@-moz-document regexp("https?:\/\/(\.*.)?gitlab(\..*)?\.(com|org).*") { code { font-family: var(--monospace-font-family) !important; font-size: var(--monospace-font-size) !important; } } -@-moz-document url-prefix(https://github.com/), url-prefix(https://gist.github.com/) -{ +@-moz-document regexp("https?:\/\/(.*\.)?github.com.*") { .footer { display: none !important; } @@ -41,8 +39,15 @@ } } -@-moz-document regexp("https:\/\/.*\.stackexchange\.com\/.*"), url-prefix(https://askubuntu.com/), url-prefix(https://serverfault.com/), url-prefix(https://stackoverflow.com/), url-prefix(https://superuser.com/) -{ +@-moz-document regexp("https?:\/\/.*(stack(exchange|overflow)|askubuntu|superuser|serverfault)\.com.*") { + html, + body { + --ff-mono: var(--monospace-font-family) !important; + --ff-sans: var(--sans-serif-font-family) !important; + --ff-serif: var(--serif-font-family) !important; + } + + #announcement-banner, #footer, #left-sidebar, #noscript-warning, @@ -55,6 +60,7 @@ .d-flex.g4, .d-flex.s-btn-group, .js-add-link.comments-link, + .js-consent-banner, .js-dismissable-hero, .js-post-issue, .js-show-link.comments-link, @@ -66,10 +72,6 @@ display: none !important; } - #question-header .question-hyperlink { - font-family: var(--sans-serif-font-family); - } - #mainbar { width: 100% !important; } @@ -136,37 +138,33 @@ } } -@-moz-document url-prefix("https://jisho.org") -{ +@-moz-document regexp("https?:\/\/jisho\.org.*") { header, footer { display: none !important; } } -@-moz-document url-prefix("https://search.nixos.org") -{ +@-moz-document regexp("https?:\/\/search\.nixos\.org.*") { .search-sidebar, footer.container { display: none !important; } } -@-moz-document url-prefix(https://gog.com) -{ +@-moz-document regexp("https?:\/\/gog.com.*") { .galaxy-section-wrapper { display: none !important; } } -@-moz-document url-prefix("https://steamdb.info") -{ +@-moz-document regexp("https?:\/\/steamdb\.info.*") { #steamdb-extension-protip { display: none !important; } } -@-moz-document regexp("https:\/\/\.*\.hh\.ru/.*") { +@-moz-document regexp("https:\/\/\.*\.hh\.ru.*") { .HH-Supernova-Footer, .index-dashboard-applicant__banners, .notification-manager, @@ -176,8 +174,7 @@ } } -@-moz-document url-prefix("https://utaten.com/lyric") -{ +@-moz-document regexp("https?:\/\/utaten\.com\/lyric/.*") { :root { --kana-font-size: 20px; --furigana-font-size: 14px; @@ -218,8 +215,7 @@ } } -@-moz-document url-prefix("https://www.songsterr.com") -{ +@-moz-document regexp("https?:\/\/www\.songsterr\.com.*") { #favorite, #fullscreen, #logo, @@ -237,8 +233,7 @@ } } -@-moz-document url-prefix("https://tabs.ultimate-guitar.com") -{ +@-moz-document regexp("https?:\/\/tabs\.ultimate-guitar\.com.*") { #comment, #shots, a[rel*="noreferrer"], @@ -248,8 +243,7 @@ } } -@-moz-document url-prefix("https://developer.mozilla.org") -{ +@-moz-document regexp("https?:\/\/developer\.mozilla\.org.*") { .main-document-header-container.top-navigation { display: none !important; } @@ -259,7 +253,7 @@ } } -@-moz-document regexp("https:\/\/\.*\.wikipedia\.org/.*") { +@-moz-document regexp("https:\/\/\.*\.wikipedia\.org.*") { #footer, #mp-topbanner, #mw-head, |