-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
113 lines (94 loc) · 1.61 KB
/
style.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.game-container {
width: 512px;
height: 512px;
max-width: 95%;
max-height: 95vw;
font-size: 0;
position: relative;
}
#overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: no-repeat center;
background-size: 100%;
z-index: -1;
opacity: 0;
border-radius: 3px;
transition-duration: 1s;
}
#game {
width: 100%;
height: 100%;
background: gray;
border-radius: 3px;
position: relative;
}
.game-tile {
position: absolute;
width: 32%;
height: 32%;
display: inline-block;
background: no-repeat;
background-size: 312%;
border-radius: 3px;
transition-duration: .1s;
}
#tile-1 {
background-position: 1% 1%;
}
#tile-2 {
background-position: 50% 1%;
}
#tile-3 {
background-position: 99% 1%;
}
#tile-4 {
background-position: 1% 50%;
}
#tile-5 {
background-position: 50% 50%;
}
#tile-6 {
background-position: 99% 50%;
}
#tile-7 {
background-position: 1% 99%;
}
#tile-8 {
background-position: 50% 99%;
}
.game-tile:nth-child(1) {
top: 1%;
left: 1%;
}
.game-tile:nth-child(2) {
top: 1%;
left: 34%;
}
.game-tile:nth-child(3) {
top: 1%;
left: 67%;
}
.game-tile:nth-child(4) {
top: 34%;
left: 1%;
}
.game-tile:nth-child(5) {
top: 34%;
left: 34%;
}
.game-tile:nth-child(6) {
top: 34%;
left: 67%;
}
.game-tile:nth-child(7) {
top: 67%;
left: 1%;
}
.game-tile:nth-child(8) {
top: 67%;
left: 34%;
}