浏览代码

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.
Alexis Degrugillier 5 年之前
父节点
当前提交
fd82587756
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 5 0
      p/themes/Dark/dark.css
  2. 5 0
      p/themes/Dark/dark.rtl.css

+ 5 - 0
p/themes/Dark/dark.css

@@ -21,6 +21,11 @@ img.favicon {
 	border-radius: 2px;
 	border-radius: 2px;
 }
 }
 
 
+body img,
+body video {
+	filter: brightness(.6) contrast(1.2);
+}
+
 /*=== Forms */
 /*=== Forms */
 legend {
 legend {
 	margin: 20px 0 5px;
 	margin: 20px 0 5px;

+ 5 - 0
p/themes/Dark/dark.rtl.css

@@ -21,6 +21,11 @@ img.favicon {
 	border-radius: 2px;
 	border-radius: 2px;
 }
 }
 
 
+body img,
+body video {
+	filter: brightness(.6) contrast(1.2);
+}
+
 /*=== Forms */
 /*=== Forms */
 legend {
 legend {
 	margin: 20px 0 5px;
 	margin: 20px 0 5px;