-
Notifications
You must be signed in to change notification settings - Fork 0
/
mole.css
59 lines (50 loc) · 898 Bytes
/
mole.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
/* Your code here */
.playing-field {
display: grid;
grid-template-rows: 1fr 1fr;
grid-template-columns: 1fr 1fr 1fr 1fr;
}
.wgs {
position: relative;
height: 240px;
width: 320px;
display: inline-block;
overflow: hidden;
transition: 0.2s ease;
}
.wgs__mole-head {
height: 178px;
width: 188px;
position: absolute;
left: 55px;
}
.wgs__mole-head--hidden {
top: 500px;
}
.wgs__dirt-pile {
height: 110px;
width: 320px;
position: absolute;
top: 130px;
}
/* UNCOMMENT THE CODE BELOW WHEN DIRECTED */
.sb {
background-color: cornflowerblue;
border-bottom: 1px solid #645ded;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
color: white;
display: flex;
font-size: 30px;
margin-bottom: 50px;
padding: 10px 20px;
}
.sb__mole-counter {
flex: 1 0 0;
text-align: right;
}
.sb__score-holder {
flex: 1 0 0;
}
.sb__game-over--hidden {
display: none;
}