-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
84 lines (80 loc) · 1.72 KB
/
style.css
File metadata and controls
84 lines (80 loc) · 1.72 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
79
80
81
82
83
84
.lock {
display: flex;
flex-direction: column;
gap: 10px;
justify-content: center;
align-items: center;
border: 1px solid #000;
border-radius: 5px;
}
.inventory-container {
font-family: Roboto;
display: flex;
flex-direction: column;
justify-content: center;
position: sticky;
bottom: 20px;
right: 10px;
align-items: center;
background-color: #fff;
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2),
0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
border-radius: 4px;
transform: translateY(100%);
transition: all 0.2s ease-in-out;
}
.inventory-container.visible {
transform: translateY(20px);
}
.inventory {
display: flex;
float: right;
justify-content: right;
align-items: center;
height: 110px;
width: fit-content;
gap: 10px;
padding: 5px;
}
.inventory-slot {
width: 100px;
height: 100px;
border-bottom: thin solid;
border-radius: 0 0 0 4px;
background-color: #fafafa;
padding: 5px;
transition: transform 0.2s ease-in-out;
}
.drop-zone {
width: 80px;
height: 80px;
border: 2px dashed #000;
border-radius: 4px;
display: flex;
text-align: center;
justify-content: center;
align-items: center;
font-size: 12px;
color: #000;
font-weight: bold;
cursor: pointer;
transition: all 0.2s ease-in-out;
}
.draggable:hover {
cursor: grab;
user-select: none;
transition: all 0.2s ease-in-out;
transform: scale(1.05);
}
.droppable {
cursor:crosshair;
animation: 4s bounce 6s infinite ;
}
@keyframes bounce {
0%, 20%, 50%, 80%, 100% {
transform: translateY(0);
}
90% {
transform: translateY(-30px);
}
}