Browse Source

Dark mode: improve legibility in articles when there is a custom color or background

Felix Niklas 2 years ago
parent
commit
dba3f96d2a
1 changed files with 14 additions and 0 deletions
  1. 14 0
      app/assets/stylesheets/zammad.scss

+ 14 - 0
app/assets/stylesheets/zammad.scss

@@ -12299,6 +12299,20 @@ output {
     margin-bottom: 6px;
     border: 0;
   }
+
+
+  // add contrast to
+  [style*="background"] {
+    color: black;
+  }
+
+  [style*="color"] {
+    background: white;
+
+    @include dark {
+      background: hsl(0,0%,64%);
+    }
+  }
 }
 
 .detail-search-header {