From fbcdea376aae6534e52ee817bc5ded2e2d9579c1 Mon Sep 17 00:00:00 2001 From: noobie <156363695+noobieyuh@users.noreply.github.com> Date: Thu, 2 Jan 2025 16:52:23 -0600 Subject: [PATCH] feat(microsoft-word): add apply to document option (#1468) Co-authored-by: noobie <156363695+noobieyuh@users.noreply.github.com> Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com> --- styles/microsoft-word/catppuccin.user.less | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/styles/microsoft-word/catppuccin.user.less b/styles/microsoft-word/catppuccin.user.less index d9a2a5d2..a4d47b0f 100644 --- a/styles/microsoft-word/catppuccin.user.less +++ b/styles/microsoft-word/catppuccin.user.less @@ -13,6 +13,8 @@ @var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"] @var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"] @var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve*", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray"] + +@var checkbox applyToDocument "Apply Theme to Document" 0 ==/UserStyle== */ @-moz-document domain("live.com") { @@ -178,9 +180,16 @@ background-color: @mantle !important; } - .Page { - background-color: @base !important; - border-color: @surface1 !important; + & when (@applyToDocument = 1) { + .Page { + background-color: @base !important; + border-color: @surface1 !important; + } + span.NormalTextRun, + .FileMenuButtonPrimaryText, + [class="NewDocumentTemplateLabel"] { + color: @text !important; + } } .Paragraph, @@ -380,12 +389,6 @@ color: @subtext0 !important; } - span.NormalTextRun, - .FileMenuButtonPrimaryText, - [class="NewDocumentTemplateLabel"] { - color: @text !important; - } - svg { path.OfficeIconColors_m22 { fill: @text;