-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
78 lines (72 loc) · 1.24 KB
/
style.css
File metadata and controls
78 lines (72 loc) · 1.24 KB
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
#game {
margin-top: 2.6%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.grid {
margin-top: 2%;
display: grid;
grid-template-columns: repeat(6, 6.4rem);
padding: 60px 40px;
}
.box {
width: 100px;
height: 100px;
background-color: rgb(149, 98, 183);
border: solid black 2px;
border-radius: 5px;
font-size: 3.2rem;
display: flex;
justify-content: center;
align-items: center;
}
#bomb {
display: flex;
justify-content: center;
align-items: center;
font-size: 2.2rem;
opacity: 0;
}
#restart {
margin-top: 20px;
padding: 10px 20px;
font-size: 1.5rem;
cursor: pointer;
}
.bomb.rotate {
animation: rotate 1s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(180deg);
}
}
#score {
font-size: 2rem;
margin-bottom: 20px;
}
@media(max-width: 830px) {
.grid {
grid-template-columns: repeat(6, 1fr);
padding: 20px;
}
.box {
width: 4.5rem;
height: 4.5rem;
font-size: 3rem;
}
}
@media(max-width: 530px) {
.grid {
grid-template-columns: repeat(6, 1fr);
}
.box {width: 3.2rem;
height: 3.2rem;
font-size: 2.5rem;
}
}