From b19b9feaa7c7007b911fd0eda3ad062ad45feeef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 14 May 2023 23:27:41 +0200 Subject: [PATCH] variant: avoid leaking shadows in neon print style #524 --- static/css/theme-neon.css | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/static/css/theme-neon.css b/static/css/theme-neon.css index 5e2bbba075c..df87a35cd66 100644 --- a/static/css/theme-neon.css +++ b/static/css/theme-neon.css @@ -273,12 +273,19 @@ body .box.cstyle.transparent { #body h6 { text-shadow: none; } + #body .badge, + #body .badge > .badge-content, #body .btn, + #body .btn > *, #body div.box, #body div.box > .box-label { box-shadow: none; text-shadow: none; } + #body .badge.cstyle:not(.transparent), + #body .btn.cstyle { + --VARIABLE-BOX-TEXT-color: var(--INTERNAL-BOX-NEUTRAL-TEXT-color); + } } /* if we are in print chapter preview our @media statement from @@ -291,12 +298,19 @@ above will not apply, so we have to repeat it here */ .print #body h6 { text-shadow: none; } +.print #body .badge, +.print #body .badge > .badge-content, .print #body .btn, +.print #body .btn > *, .print #body div.box, .print #body div.box > .box-label { box-shadow: none; text-shadow: none; } +.print #body .badge.cstyle:not(.transparent), +.print #body .btn.cstyle { + --VARIABLE-BOX-TEXT-color: var(--INTERNAL-BOX-NEUTRAL-TEXT-color); +} #content-wrapper { --ps-thumb-color: #d0d0d0;