|
1
2
3
4
5
6
7
8
9
10
|
.draggable-box {
height: 100%;
overflow: auto;
:deep(.list-main) {
overflow: hidden;
padding: 5px;
position: relative;
.moving {
|
|
11
|
// 拖放移动中;
|
|
12
13
14
15
16
17
18
19
20
21
|
min-height: 35px;
box-sizing: border-box;
overflow: hidden;
padding: 0 !important;
position: relative;
&::before {
content: '';
height: 5px;
width: 100%;
|
|
22
|
background-color: @primary-color;
|
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
position: absolute;
top: 0;
right: 0;
}
}
.drag-move-box {
position: relative;
box-sizing: border-box;
padding: 8px;
overflow: hidden;
transition: all 0.3s;
min-height: 60px;
&:hover {
|
|
38
|
background-color: @primary-hover-bg-color;
|
|
39
40
41
42
43
44
45
|
}
// 选择时 start
&::before {
content: '';
height: 5px;
width: 100%;
|
|
46
|
background-color: @primary-color;
|
|
47
48
49
50
51
52
53
|
position: absolute;
top: 0;
right: -100%;
transition: all 0.3s;
}
&.active {
|
|
54
|
background-color: @primary-hover-bg-color;
|
|
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
|
outline-offset: 0;
&::before {
right: 0;
}
}
// 选择时 end
.form-item-box {
position: relative;
box-sizing: border-box;
word-wrap: break-word;
&::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.ant-form-item {
// 修改ant form-item的margin为padding
margin: 0;
padding-bottom: 6px;
}
}
.show-key-box {
// 显示key
position: absolute;
bottom: 2px;
right: 5px;
font-size: 14px;
// z-index: 999;
color: @primary-color;
}
.copy,
.delete {
position: absolute;
top: 0;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
color: #fff;
// z-index: 989;
transition: all 0.3s;
&.unactivated {
opacity: 0 !important;
pointer-events: none;
}
&.active {
opacity: 1 !important;
}
}
.copy {
border-radius: 0 0 0 8px;
right: 30px;
|
|
119
|
background-color: @primary-color;
|
|
120
121
122
123
|
}
.delete {
right: 0;
|
|
124
|
background-color: @primary-color;
|
|
125
126
127
128
129
130
131
|
}
}
.grid-box {
position: relative;
box-sizing: border-box;
padding: 5px;
|
|
132
|
background-color: @layout-background-color;
|
|
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
width: 100%;
transition: all 0.3s;
overflow: hidden;
.form-item-box {
position: relative;
box-sizing: border-box;
.ant-form-item {
// 修改ant form-item的margin为padding
margin: 0;
padding-bottom: 15px;
}
}
.grid-row {
|
|
149
|
background-color: @layout-background-color;
|
|
150
151
152
153
154
155
|
.grid-col {
.draggable-box {
min-height: 80px;
min-width: 50px;
border: 1px #ccc dashed;
|
|
156
|
// background: #fff;
|
|
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
|
.list-main {
min-height: 83px;
position: relative;
border: 1px #ccc dashed;
}
}
}
}
// 选择时 start
&::before {
content: '';
height: 5px;
width: 100%;
background: transparent;
position: absolute;
top: 0;
right: -100%;
transition: all 0.3s;
}
&.active {
|
|
180
|
background-color: @layout-hover-bg-color;
|
|
181
182
183
|
outline-offset: 0;
&::before {
|
|
184
|
background-color: @layout-color;
|
|
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
|
right: 0;
}
}
// 选择时 end
> .copy-delete-box {
> .copy,
> .delete {
position: absolute;
top: 0;
width: 30px;
height: 30px;
line-height: 30px;
text-align: center;
color: #fff;
// z-index: 989;
transition: all 0.3s;
&.unactivated {
opacity: 0 !important;
pointer-events: none;
}
&.active {
opacity: 1 !important;
}
}
> .copy {
border-radius: 0 0 0 8px;
right: 30px;
|
|
215
|
background-color: @layout-color;
|
|
216
217
218
219
|
}
> .delete {
right: 0;
|
|
220
|
background-color: @layout-color;
|
|
221
222
223
224
225
|
}
}
}
}
}
|