-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
95 lines (85 loc) · 1.67 KB
/
index.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
body {
font-family: Arial, Helvetica, sans-serif;
background: url('/whack-a-mole/public/assets/mario-bg.jpg');
background-repeat: no-repeat;
background-size: cover;
display: flex;
flex-direction: column;
min-height: 100vh;
justify-content: center;
align-items: center;
}
.game-wrapper {
margin-top: 16px;
height: 80vw;
max-height: 540px;
width: 80vw;
max-width: 540px;
display: flex;
flex-wrap: wrap;
background: url('/whack-a-mole/public/assets/box-bg.png');
border: 4px solid white;
border-radius: 12px;
box-shadow: 3px 3px 8px 8px rgba(0, 0, 0, 0.15);
}
.game-wrapper.disabled {
pointer-events: none;
}
.tile {
width: calc(100% / 3);
height: calc(100% / 3);
min-width: calc(100% / 3);
min-height: calc(100% / 3);
background: url('/whack-a-mole/public/assets/pipe.png');
background-size: contain;
background-repeat: no-repeat;
position: relative;
display: flex;
justify-content: center;
}
.tile div {
position: absolute;
width: 50%;
top: 16px;
}
.tile div img {
width: 100%;
height: 100%;
user-drag: none;
-webkit-user-drag: none;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
cursor: pointer;
}
.hidden {
display: none;
}
.buttons-wrapper {
display: flex;
justify-content: center;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.buttons-wrapper button {
outline: none;
border: none;
background: black;
color: white;
cursor: pointer;
padding: 8px;
border-radius: 6px;
min-width: 90px;
}
.score {
font-size: 1.2em;
font-weight: 600;
padding: 16px;
}
.best-score {
font-size: 1.4em;
font-weight: 600;
padding-bottom: 8px;
}