-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathdragdrop.css
92 lines (74 loc) · 1.7 KB
/
dragdrop.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
/*add this to avoid flickering*/
.plk-dd-inprogess > * {
pointer-events: none;
}
/*dropzone style style*/
.plk-dd-dropzone {
min-height: 50px;
}
/*drag drop styles*/
.plk-dd-spacing {
height: 10px;
}
.plk-dd-spacing-dragged-over {
padding: 25px;
}
.plk-dd-dragged-over {
background-color: lightgray;
opacity: 0.6;
animation: blinker 1s linear infinite;
}
.plk-dd-dragged-over > div {
background-color: lightgray;
opacity: 0.6;
animation: blinker 1s linear infinite;
}
.plk-dd-dragged-over-denied {
background-color: red;
opacity: 0.6;
animation: blinker 1s linear infinite;
}
.plk-dd-in-transit {
opacity: 0;
}
.plk-dd-in-transit > div {
opacity: 0;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
.blink_me {
animation: blinker 1s linear infinite;
}
/*for flex demo*/
.plk-flex .plk-dd-spacing {
width: 20px;
height: auto;
}
.plk-flex .plk-dd-dragged-over {
background-color: lightgray;
opacity: 0.6;
animation: blinker 1s linear infinite;
}
.plk-flex .plk-dd-dragged-over > div {
background-color: lightgray;
opacity: 0.9;
animation: blinker 1s linear infinite;
}
.plk-flex .plk-dd-in-transit {
background-color: orangered;
}
.plk-flex .plk-dd-in-transit > div {
background-color: orangered;
}
.plk-dd-noselect {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Safari */
-khtml-user-select: none; /* Konqueror HTML */
-moz-user-select: none; /* Old versions of Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
supported by Chrome, Edge, Opera and Firefox */
}