Skip to content

Commit f3dc38b

Browse files
committed
devkit: survey format: add dark mode support
1 parent 3aabca3 commit f3dc38b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: devkit/samples/survey/style.css

+19
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@
1111
--content-padding: 20px;
1212
}
1313

14+
@media (prefers-color-scheme: dark) {
15+
:root {
16+
--backdrop-background-color: #1b3445;
17+
--content-background-color: #191919;
18+
--accent-color: #f7ede2;
19+
--text-color: #dcdde3;
20+
--border-color: #f7ede2;
21+
--button-hover-text-color: white;
22+
--button-hover-bg-color: #f7ede2;
23+
}
24+
}
25+
26+
1427
#bottom-buttons {
1528
--button-bg-color: transparent;
1629
}
@@ -161,4 +174,10 @@ h2 {
161174
border-radius: 20px;
162175
box-shadow: 0px 15px 73px 0px rgba(0,0,0,0.65);
163176
}
177+
}
178+
179+
@media screen and (prefers-color-scheme: dark) and (min-width: 640px) and (min-height: 640px) {
180+
#content {
181+
border: 1px solid #494949;
182+
}
164183
}

0 commit comments

Comments
 (0)