-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
116 lines (106 loc) · 2.19 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
114
115
116
:root {
--color:lightgray;
--border-radius:10px;
}
body {
background:#efefef;
padding:0;
margin:0;
box-sizing:border-box;
}
#puz, #puzz {
position:absolute;
border-radius:var(--border-radius) 0 var(--border-radius) 0;
user-select:none;
}
#puz {
width:300px;
height:300px;
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
border:3px dashed lightgray;
overflow:hidden;
}
#puzz {
left:0;
top:0;
border:0;
}
#puz i {
float:left;
width:100px;
height:100px;
outline:1px dashed lightgray;
}
#puzz i {
position:absolute;
width:100px;
height:100px;
background:var(--color);
background-image:var(--image);
background-size:300px 300px;
cursor:move;
box-shadow:0 0 10px rgba(0,0,0,.25);
}
.first {
border-top-left-radius:var(--border-radius);
background-position:left top !important;
}
.secon {
background-position:center top !important;
}
.third {
/* border-top-right-radius:var(--border-radius); */
background-position:right top !important;
}
.fourt {
background-position:left center !important;
}
.fifth {
background-position:center center !important;
}
.sixth {
background-position:right center !important;
}
.seven {
/* border-bottom-left-radius:var(--border-radius); */
background-position:left bottom !important;
}
.eight {
background-position:center bottom !important;
}
.ninth {
border-bottom-right-radius:var(--border-radius);
background-position:right bottom !important;
}
.clicked {
box-shadow:0 0 0 4px gray !important;
}
.dropped {
background:var(--color);
background-image:var(--image);
background-size:300px 300px;
}
.done {
opacity:0;
pointer-events:none;
}
.allDone {
animation:allDone 1s linear forwards;
border:3px solid lightgray !important;
}
.allDone i {
outline:0 !important;
}
@keyframes allDone {
50% { transform:translate(-50%,-50%) scale(1.2); }
}
#clicks {
font-size:8px;
font-family:monospace;
position:absolute;
bottom:5px;
right:5px;
}