blob: 4f63f54fb53f728b0ac082696eff4c0bccd35cd5 (
plain)
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
|
/* Mäng ise */
@import url('https://fonts.googleapis.com/css?family=Montserrat');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Montserrat', sans-serif;
background-color: #eee;
color: #111;
touch-action: none;
}
/* later added stuff here */
.wrapper {
outline: 1px solid gold;
position: relative;
display: flex;
flex-wrap: wrap;
}
.empty {
width: 7rem;
height: 7rem;
}
.drag {
position: absolute;
width: 7rem;
height: 7rem;
z-index: 1;
}
.active {
background-color: grey !important;
}
.done {
background-color: green !important;
}
/* end of later added stuff */
.draggable-elements {
display: flex;
justify-content: center;
margin: 2rem;
}
.draggable {
height: 5rem;
width: 5rem;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
margin: 0rem 1rem;
cursor: move;
transition: opacity 0.2s;
}
.droppable {
height: 10rem;
width: 25rem;
margin: 1rem auto;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
font-size: 8rem;
font-weight: bold;
background-color: #fff;
border: 3px dashed #111;
transition: border-width 0.2s, transform 0.2s, background-color 0.4s;
}
.droppable span {
font-size: 1.25rem;
pointer-events: none; /* The element is never the target of pointer events */
}
/* Drag and Drop Related Styling */
.droppable.droppable-hover {
/* background-color: #bee3f0; */
border-width: 5px;
transform: scale(1.1);
}
.droppable.dropped {
border-style: solid;
color: #fff;
}
.droppable.dropped span {
font-weight: bolder;
margin-top: 0.5rem;
}
.droppable.dropped i {
pointer-events: none;
}
.draggable.dragged {
user-select: none;
cursor: default;
}
.draggable.dragged:hover {
opacity: 0.1;
}
|