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;