Skip to content

Commit dbe5684

Browse files
committed
fix(wc): fix index.html color & bg
1 parent 20fa966 commit dbe5684

File tree

3 files changed

+26
-5
lines changed

3 files changed

+26
-5
lines changed

src/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,19 @@
1515
body {
1616
display: flex;
1717
margin: 0;
18+
background: #181818;
19+
transition:
20+
color 0.5s,
21+
background-color 0.5s;
22+
will-change: color, background-color;
23+
24+
@media (prefers-color-scheme: light) {
25+
background: #fff;
26+
}
27+
28+
@media (prefers-color-scheme: dark) {
29+
background: #181818;
30+
}
1831
}
1932

2033
wc-trakt-extension {

src/views/options/index.html

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@
1515
body {
1616
display: flex;
1717
margin: 0;
18-
background: #fff;
18+
background: #181818;
1919
transition:
20-
color 0.5s,
21-
background-color 0.5s;
20+
color 0.5s,
21+
background-color 0.5s;
2222
will-change: color, background-color;
2323

24+
@media (prefers-color-scheme: light) {
25+
background: #fff;
26+
}
27+
2428
@media (prefers-color-scheme: dark) {
25-
background: #181818;
29+
background: #181818;
2630
}
2731
}
2832

src/views/popup/index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,16 @@
2626
font-size: 1rem;
2727
-webkit-font-smoothing: antialiased;
2828
-moz-osx-font-smoothing: grayscale;
29-
background: #fff;
29+
background: #181818;
3030
transition:
3131
color 0.5s,
3232
background-color 0.5s;
3333
will-change: color, background-color;
3434

35+
@media (prefers-color-scheme: light) {
36+
background: #fff;
37+
}
38+
3539
@media (prefers-color-scheme: dark) {
3640
background: #181818;
3741
}

0 commit comments

Comments
 (0)