Skip to content

Commit 070e909

Browse files
committed
THE-MATH-GAME
1 parent b254e00 commit 070e909

7 files changed

Lines changed: 5 additions & 2 deletions

File tree

Source Code/assets/bg-desktop.png

-357 KB
Loading
917 KB
Loading
560 KB
Loading

Source Code/assets/bg-mobile.png

-83.8 KB
Loading
676 KB
Loading
593 KB
Loading

Source Code/css/style.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ body {
2929
font-family: 'Play', sans-serif;
3030
color: white;
3131
background-color: var(--bg-dark);
32-
background-image: url('../assets/bg-desktop.png');
32+
background-image: url('../assets/bg.png');
3333
background-size: cover;
3434
background-position: center;
3535
background-repeat: no-repeat;
36+
background-attachment: fixed;
37+
/* Parallax-like effect ensures best fit */
3638
display: flex;
3739
flex-direction: column;
3840
align-items: center;
@@ -42,7 +44,8 @@ body {
4244

4345
@media (max-width: 768px) {
4446
body {
45-
background-image: url('../assets/bg-mobile.png');
47+
/* background-image: url('../assets/bg-mobile.png'); User prefers single bg.png */
48+
background-position: center;
4649
}
4750
}
4851

0 commit comments

Comments
 (0)