From 1cf301ef1cc33fda0bf02d09de49180ed52e2257 Mon Sep 17 00:00:00 2001 From: k1rowashere Date: Wed, 8 May 2024 02:48:12 +0300 Subject: [PATCH] fix(wikipedia): equations and tables styling fixes (#875) --- styles/wikipedia/catppuccin.user.css | 37 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/styles/wikipedia/catppuccin.user.css b/styles/wikipedia/catppuccin.user.css index 0d12fd1a..055e0ac4 100644 --- a/styles/wikipedia/catppuccin.user.css +++ b/styles/wikipedia/catppuccin.user.css @@ -2,7 +2,7 @@ @name Wikipedia Catppuccin @namespace github.com/catppuccin/userstyles/styles/wikipedia @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/wikipedia -@version 0.0.16 +@version 0.0.17 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/wikipedia/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Awikipedia @description Soothing pastel theme for Wikipedia @@ -181,6 +181,10 @@ } /* maths */ + .equation-box, + .equation-box * { + background: none !important; + } img.mwe-math-fallback-image-display, img.mwe-math-fallback-image-inline { & when (@lookup = latte) { @@ -256,12 +260,6 @@ border-bottom-color: @surface2; } - .wikitable { - background-color: @surface0; - color: @text; - border-color: @surface2 !important; - } - .oo-ui-textInputWidget, .oo-ui-inputWidget-input { color: @text !important; @@ -451,8 +449,20 @@ background-color: @blue !important; } + .wikitable { + background-color: @surface0 !important; + color: @text !important; + border-color: @surface2 !important; + } + .wikitable > * > tr > th { - background-color: @surface1; + background-color: @surface1 !important; + } + + .wikitable > * > tr > td, + .wikitable > * > tr > th { + background-color: @surface0 !important; + color: @text !important; border-color: @surface2; } @@ -464,10 +474,6 @@ color: @subtext0; } - .wikitable > * > tr > td { - border-color: @surface2; - } - .navbox-abovebelow { background-color: @overlay2 !important; border-color: @overlay2 !important; @@ -685,13 +691,6 @@ color: @text !important; } - .wikitable > * > tr > td, - .wikitable > * > tr > th { - background-color: @surface0; - color: @text; - border-color: @surface2; - } - td[style*="background-color"], td[style*="background-color"] * { color: @crust !important;