From fd8258775643eb0d898679f210c00de07c79eadc Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Mon, 11 Jan 2021 16:36:06 -0500 Subject: Add filters on images and video (#3356) As this theme is a dark theme, I figured that it would be better to filter images and videos to ease reading when bright elements are included. --- p/themes/Dark/dark.css | 5 +++++ p/themes/Dark/dark.rtl.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/p/themes/Dark/dark.css b/p/themes/Dark/dark.css index 06a5b7df0..f654e28f7 100644 --- a/p/themes/Dark/dark.css +++ b/p/themes/Dark/dark.css @@ -21,6 +21,11 @@ img.favicon { border-radius: 2px; } +body img, +body video { + filter: brightness(.6) contrast(1.2); +} + /*=== Forms */ legend { margin: 20px 0 5px; diff --git a/p/themes/Dark/dark.rtl.css b/p/themes/Dark/dark.rtl.css index 108c3caf1..e349bbc82 100644 --- a/p/themes/Dark/dark.rtl.css +++ b/p/themes/Dark/dark.rtl.css @@ -21,6 +21,11 @@ img.favicon { border-radius: 2px; } +body img, +body video { + filter: brightness(.6) contrast(1.2); +} + /*=== Forms */ legend { margin: 20px 0 5px; -- cgit v1.2.3