aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/dragwrapper/dragwrapper.scss
blob: 86000abd7cb7a4fe2ed2c92cea0e630ecade90e7 (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
@mixin base-dragwrapper($primaryStyleName : v-ddwrapper) {

.#{$primaryStyleName} {
	padding: 2px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	position: relative;
	-ms-touch-action: none;
	touch-action: none;
}
[draggable=true] {
	-khtml-user-drag: element;
	-webkit-user-drag: element;
	-khtml-user-select: none;
	-webkit-user-select: none;
}
.v-ie & .#{$primaryStyleName} a.drag-start {
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
    left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	/* Some color needed to make it draggable */
	background-color:cyan;
	filter: alpha(opacity=0);
}
.#{$primaryStyleName}-over {
	border: 2px solid #1d9dff;
	background-color: #bcdcff;
	padding: 0;
}
.#{$primaryStyleName}-over {
	background-color: rgba(169,209,255,.6);
}
.no-box-drag-hints .#{$primaryStyleName}-over {
	border: none;
	background-color: transparent;
	padding: 2px;
}
&.v-app .#{$primaryStyleName}-over-top,
.v-window .#{$primaryStyleName}-over-top,
.v-popupview-popup .#{$primaryStyleName}-over-top {
	border: none;
	border-top: 2px solid #1d9dff;
	background-color: transparent;
	padding: 2px;
	padding-top: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
}
&.v-app .#{$primaryStyleName}-over-bottom,
.v-window .#{$primaryStyleName}-over-bottom,
.v-popupview-popup .#{$primaryStyleName}-over-bottom {
	border: none;
	border-bottom: 2px solid #1d9dff;
	background-color: transparent;
	padding: 2px;
	padding-bottom: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
}
&.v-app .#{$primaryStyleName}-over-left,
.v-window .#{$primaryStyleName}-over-left,
.v-popupview-popup .#{$primaryStyleName}-over-left {
	border: none;
	border-left: 2px solid #1d9dff;
	background-color: transparent;
	padding: 2px;
	padding-left: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
}
&.v-app .#{$primaryStyleName}-over-right,
.v-window .#{$primaryStyleName}-over-right,
.v-popupview-popup .#{$primaryStyleName}-over-right {
	border: none;
	border-right: 2px solid #1d9dff;
	background-color: transparent;
	padding: 2px;
	padding-right: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
}
.#{$primaryStyleName},
.#{$primaryStyleName}-over,
&.v-app .#{$primaryStyleName}-over-top,
.v-window .#{$primaryStyleName}-over-top,
.v-popupview-popup .#{$primaryStyleName}-over-top,
&.v-app .#{$primaryStyleName}-over-bottom,
.v-window .#{$primaryStyleName}-over-bottom,
.v-popupview-popup .#{$primaryStyleName}-over-bottom,
&.v-app .#{$primaryStyleName}-over-left,
.v-window .#{$primaryStyleName}-over-left,
.v-popupview-popup .#{$primaryStyleName}-over-left,
&.v-app .#{$primaryStyleName}-over-right,
.v-window .#{$primaryStyleName}-over-right,
.v-popupview-popup .#{$primaryStyleName}-over-right {
	border-color: rgba(0,109,232,.6);
}

.#{$primaryStyleName}-over-top:before,
.#{$primaryStyleName}-over-bottom:after,
.#{$primaryStyleName}-over-left:before,
.#{$primaryStyleName}-over-right:before {
	display: block;
	
	position: absolute;
	width: 6px;
	height: 6px;
	margin-top: -4px;
	margin-left: -2px;
	background: transparent url(../common/img/drag-slot-dot.png) no-repeat;
}
.#{$primaryStyleName}-over-bottom:after {
	margin-top: -2px;
}
.#{$primaryStyleName}-over-left:before,
.#{$primaryStyleName}-over-right:before {
	background-position: 0 -6px;
	margin-top: -2px;
	margin-left: -4px;
}
.#{$primaryStyleName}-over-right:before {
	position: relative;
	margin-bottom: -4px;
	margin-right: -4px;
	margin-left: 0;
	width: auto;
	background-position: 100% -6px;
}

.no-horizontal-drag-hints .#{$primaryStyleName}-over-left {
	padding-left: 2px;
	border-left: none;
}
.no-horizontal-drag-hints .#{$primaryStyleName}-over-right {
	padding-right: 2px;
	border-right: none;
}
.no-vertical-drag-hints .#{$primaryStyleName}-over-top {
	padding-top: 2px;
	border-top: none;
}
.no-vertical-drag-hints .#{$primaryStyleName}-over-bottom {
	padding-bottom: 2px;
	border-bottom: none;
}
.no-horizontal-drag-hints .#{$primaryStyleName}-over-left:before,
.no-horizontal-drag-hints .#{$primaryStyleName}-over-right:before,
.no-vertical-drag-hints .#{$primaryStyleName}-over-top:before,
.no-vertical-drag-hints .#{$primaryStyleName}-over-bottom:after {
	display: none;
}

}