aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <aledeg@users.noreply.github.com> 2021-01-11 16:36:06 -0500
committerGravatar GitHub <noreply@github.com> 2021-01-11 22:36:06 +0100
commitfd8258775643eb0d898679f210c00de07c79eadc (patch)
tree1616d0674bf00ea60ef9bc60358ac846ec91cd70
parentf9687ea18a391d2757905f6dcd90efdd334a0738 (diff)
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.
-rw-r--r--p/themes/Dark/dark.css5
-rw-r--r--p/themes/Dark/dark.rtl.css5
2 files changed, 10 insertions, 0 deletions
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;