Browse Source

add dark mode support to index.css

Gregg Tavares 6 years ago
parent
commit
f618a57397
1 changed files with 6 additions and 0 deletions
  1. 6 0
      threejs/lessons/resources/index.css

+ 6 - 0
threejs/lessons/resources/index.css

@@ -42,3 +42,9 @@ iframe.background {
         padding: 15px 20px;
         padding: 15px 20px;
     }
     }
 }
 }
+
+@media (prefers-color-scheme: dark) {
+    .container {
+        background-color: rgba(0, 0, 0, 0.9);
+    }
+}