From 0539f287b57f66c946f04469d4f23d85a2737fad Mon Sep 17 00:00:00 2001 From: k1rowashere Date: Tue, 7 May 2024 23:36:17 +0300 Subject: [PATCH] fix: account iframe themed correctly (#874) --- styles/google/catppuccin.user.css | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/styles/google/catppuccin.user.css b/styles/google/catppuccin.user.css index 898ff7fa..be1821c9 100644 --- a/styles/google/catppuccin.user.css +++ b/styles/google/catppuccin.user.css @@ -2,7 +2,7 @@ @name Google Catppuccin @namespace github.com/catppuccin/userstyles/styles/google @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google -@version 0.2.2 +@version 0.2.3 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/google/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle @description Soothing pastel theme for Google @@ -57,6 +57,9 @@ @accent-color: @catppuccin[@@lookup][@@accent]; color-scheme: if(@lookup = latte, light, dark); + iframe { + color-scheme: none !important; + } ::selection { background-color: fade(@accent-color, 30%); @@ -1852,6 +1855,16 @@ @-moz-document regexp("^https?://(ogs\\.)?google\\..*") { + @media (prefers-color-scheme: light) { + body { + #catppuccin(@lightFlavor, @accentColor); + } + } + @media (prefers-color-scheme: dark) { + body { + #catppuccin(@darkFlavor, @accentColor); + } + } #catppuccin(@lookup, @accent) { @flamingo: @catppuccin[@@lookup][@flamingo]; @pink: @catppuccin[@@lookup][@pink];