-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
60 lines (50 loc) · 1.19 KB
/
style.css
File metadata and controls
60 lines (50 loc) · 1.19 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
body, html {
background-color: rgb(173, 214, 112);
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.field {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
width: fit-content;
transform-style: preserve-3d;
transform: rotateX(55deg) rotateZ(45deg);
margin: auto;
}
.tile {
width: 128px;
height: 128px;
border: solid 2px rgba(0, 0, 0, 0.171);
transition: .2s;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(138, 91, 48);
}
.tile:hover {
border: solid 2px black;
box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.171);
z-index: 1;
}
.tile > img {
transform: rotateX(-45deg) rotateZ(-45deg);
width: 64px;
height: 64px;
image-rendering: pixelated;
}
div:hover > img {
animation-name: wiggle;
animation-timing-function: linear;
animation-duration: .2s;
}
@keyframes wiggle {
33% {
transform: rotateX(-45deg) rotateZ(-40deg);
}
66% {
transform: rotateX(-45deg) rotateZ(-50deg);
}
}
#game-space {
border: 4px solid burlywood;
}