2
0
Эх сурвалжийг харах

Merge pull request #19427 from marcofugaro/example-mode-dark-styles

Examples: Dark mode support for new layout
Mr.doob 5 жил өмнө
parent
commit
f51fe2f3e7
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      files/main.css

+ 3 - 1
files/main.css

@@ -2,6 +2,7 @@
 	color-scheme: light dark;
 
 	--background-color: #fff;
+	--secondary-background-color: #f7f7f7;
 
 	--color-blue: #049EF4;
 	--text-color: #444;
@@ -21,6 +22,7 @@
 
 	:root {
 		--background-color: #222;
+		--secondary-background-color: #2e2e2e;
 
 		--text-color: #bbb;
 		--secondary-text-color: #666;
@@ -467,7 +469,7 @@ iframe {
 .card {
 	border-radius: 3px;
 	overflow: hidden;
-	background-color: #f7f7f7;
+	background-color: var(--secondary-background-color);
 	padding-bottom: 6px;
 	margin-bottom: 16px;
 }