From ebfd72baa860d07bf67df8004b490f17ba8f38d0 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Tue, 30 Sep 2025 00:32:13 +0200 Subject: [PATCH] wikipedia rice --- home-modules/firefox.nix | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/home-modules/firefox.nix b/home-modules/firefox.nix index 363e78a..491cb51 100644 --- a/home-modules/firefox.nix +++ b/home-modules/firefox.nix @@ -194,6 +194,48 @@ background-color: transparent !important; } } + @-moz-document domain(wikipedia.org) { + body, html, div.mw-page-container, .vector-header, .mw-header { + background-color: transparent !important; + } + :root { + --color-base: ${foreground} !important; + --color-base--hover: ${accent.bright} !important; + --color-emphasized: ${accent.base} !important; + --color-progressive: ${accent.base} !important; + --color-progressive--hover: ${accent.brighter} !important; + --color-progressive--active: ${secondary.bright} !important; + --color-destructive: ${negative.base} !important; + --color-destructive--hover: ${negative.brighter} !important; + --color-destructive--active: ${negative.bright} !important; + --color-visited: ${secondary.base} !important; + --color-visited--hover: ${secondary.brighter} !important; + --color-visited--active: ${secondary.bright} !important; + --color-error: ${negative.base} !important; + --color-error--hover: ${negative.bright} !important; + --color-error--active: ${negative.bright} !important; + --color-warning: ${weird.base} !important; + --color-success: ${positive.base} !important; + --color-notice: ${special.base} !important; + --color-content-added: ${positive.base} !important; + --color-content-removed: ${negative.base} !important; + --color-base--subtle: ${accent.dark} !important; + --box-shadow-color-base: ${black.base} !important; + --background-color-base: transparent !important; + --background-color-neutral: transparent !important; + --background-color-neutral-subtle: transparent !important; + --background-color-interactive: ${accent.darker} !important; + --background-color-interactive--hover: ${accent.dark} !important; + --background-color-interactive--active: ${secondary.dark} !important; + --background-color-interactive-subtle: ${subtle.darker} !important; + --background-color-interactive-subtle--hover: ${subtle.dark} !important; + --background-color-interactive-subtle--active: ${subtle.base} !important; + --border-color-base: ${border} !important; + --border-color-emphasized: ${border2} !important; + --border-color-subtle: ${subtle.base} !important; + --border-color-muted: ${subtle.dark} !important; + } + } @-moz-document domain(youtube.com) { body, html, div#content, ytd-app, #frosted-glass.with-chipbar.ytd-app, ytd-shorts[is-dark] #cinematic-shorts-scrim.ytd-shorts { background-color: transparent !important;