Skip to content

Commit b13f217

Browse files
committed
web: fix background images loading
1 parent 6515d48 commit b13f217

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

web/splash/style.css

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
body, html {
2-
margin:0;
3-
height:100%;
1+
body,
2+
html {
3+
margin: 0;
4+
height: 100%;
45
background: #ff4151;
5-
background-image: url("img/light-background.png");
6+
background-image: url("/splash/img/light-background.png");
67
background-size: 100% 100%;
78
}
89

@@ -16,28 +17,31 @@ body, html {
1617
}
1718

1819
.contain {
19-
display:block;
20-
width:100%; height:100%;
20+
display: block;
21+
width: 100%;
22+
height: 100%;
2123
object-fit: contain;
2224
}
2325

2426
.stretch {
25-
display:block;
26-
width:100%; height:100%;
27+
display: block;
28+
width: 100%;
29+
height: 100%;
2730
}
2831

2932
.cover {
30-
display:block;
31-
width:100%; height:100%;
33+
display: block;
34+
width: 100%;
35+
height: 100%;
3236
object-fit: cover;
3337
}
3438

3539
@media (prefers-color-scheme: dark) {
3640
body {
37-
margin:0;
38-
height:100%;
41+
margin: 0;
42+
height: 100%;
3943
background: #ff4151;
40-
background-image: url("img/dark-background.png");
44+
background-image: url("/splash/img/dark-background.png");
4145
background-size: 100% 100%;
4246
}
4347
}

0 commit comments

Comments
 (0)