-
Notifications
You must be signed in to change notification settings - Fork 0
/
mole.css
65 lines (52 loc) · 956 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
60
61
62
63
64
65
/* Your code here */
/* 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;
}
.pf {
display: grid;
grid-template-columns: repeat(4, 25%);
grid-template-rows: repeat(2, 50%);
}
.wgs {
display: inline-block;
position: relative;
width: 160px;
height: 120.5px;
overflow: hidden;
}
.wgs__dirt-pile {
position: absolute;
width: 160px;
height: 55px;
bottom: 0;
}
.wgs__mole-head {
position: absolute;
width: 94px;
height: 89px;
transition: margin-top .25s;
}
.wgs__mole-head--hidden {
margin-top: 640px;
}
.wgs__mole-head--whacked:hover {
background-color: black;
}