@jiaozhiye/qm-design-react 1.12.7 → 1.12.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,501 +1,501 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2022-03-16 19:05:30
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2025-01-12 14:23:51
6
- */
7
- @import '../../style/common';
8
-
9
- .@{prefix-pivot-grid}__layout {
10
- .reset-container();
11
- width: 100%;
12
-
13
- &.col-resize {
14
- cursor: col-resize;
15
- .qm-scrollbar__view {
16
- pointer-events: none;
17
- }
18
- }
19
-
20
- // =========== 变量 ===========
21
- @header-bg-color: #d7f0ff;
22
- @border-radius: 8px;
23
- .bor-radius-left() {
24
- border-top-left-radius: @border-radius;
25
- border-bottom-left-radius: @border-radius;
26
- }
27
- .bor-radius-right() {
28
- border-top-right-radius: @border-radius;
29
- border-bottom-right-radius: @border-radius;
30
- }
31
- .bor-left-shadow() {
32
- box-shadow: -5px 0px 0 0px @--background-color-light;
33
- }
34
- .bor-right-shadow() {
35
- box-shadow: 5px 0px 0 0px @--background-color-light;
36
- }
37
- // =========== 变量 END ===========
38
-
39
- .@{qm-prefix}-scrollbar__wrap {
40
- // 调整为 flex 布局
41
- display: flex;
42
- flex-wrap: nowrap;
43
- & > div {
44
- height: fit-content;
45
- }
46
- }
47
- .header,
48
- .footer {
49
- display: flex;
50
- flex-direction: row;
51
- .fixed-left {
52
- position: sticky;
53
- left: 0;
54
- z-index: 1;
55
- display: flex;
56
- border-left: 1px solid @--border-color-secondary;
57
- border-bottom: 1px solid @--border-color-secondary;
58
- .bor-left-shadow();
59
- &,
60
- .table-cell:first-child {
61
- .bor-radius-left();
62
- }
63
- }
64
- .no-fixed {
65
- flex: 1 0;
66
- display: flex;
67
- border-bottom: 1px solid @--border-color-secondary;
68
- .bor-right-shadow();
69
- &,
70
- .table-cell:last-child {
71
- .bor-radius-right();
72
- }
73
- }
74
- }
75
- .header {
76
- position: sticky;
77
- top: 0;
78
- z-index: 2;
79
- .table-cell {
80
- position: relative;
81
- background-color: @header-bg-color !important;
82
- cursor: pointer;
83
- }
84
- .resize-bar {
85
- position: absolute;
86
- top: 0;
87
- bottom: 0;
88
- right: -3px;
89
- width: 6px;
90
- z-index: 2;
91
- cursor: col-resize;
92
- }
93
- }
94
- .body {
95
- display: flex;
96
- flex-direction: row;
97
- min-height: fit-content;
98
- }
99
- .footer {
100
- position: sticky;
101
- bottom: 0;
102
- z-index: 2;
103
- }
104
- .header,
105
- .body,
106
- .footer {
107
- .table-cell {
108
- align-self: stretch; // 子元素高度和父元素一致
109
- display: inline-flex;
110
- align-items: center;
111
- border-top: 1px solid @--border-color-secondary;
112
- border-right: 1px solid @--border-color-secondary;
113
- background-color: #fff;
114
- &.selection-column {
115
- justify-content: center;
116
- border-right-color: transparent;
117
- }
118
- .action {
119
- display: inline-flex;
120
- align-items: center;
121
- justify-content: center;
122
- .drag-icon,
123
- .expand-icon {
124
- display: inline-flex;
125
- align-items: center;
126
- justify-content: center;
127
- width: 20px;
128
- height: 20px;
129
- color: @--text-color-placeholder;
130
- visibility: hidden;
131
- }
132
- .drag-icon {
133
- cursor: grab;
134
- }
135
- .expand-icon:hover {
136
- color: @--primary-color;
137
- }
138
- .middle {
139
- text-align: center;
140
- width: 16px;
141
- margin: 0 2px;
142
- .order {
143
- display: inline-block;
144
- }
145
- .checkbox {
146
- display: none;
147
- }
148
- }
149
- }
150
- &.col--center {
151
- text-align: center;
152
- justify-content: center;
153
- }
154
- &.col--right {
155
- text-align: right;
156
- justify-content: flex-end;
157
- }
158
- &.col--fix-left {
159
- position: sticky;
160
- z-index: 1;
161
- }
162
- &.col--checked {
163
- background-color: @--primary-1;
164
- }
165
- &.active {
166
- box-shadow: inset 0 0 0 2px @--primary-color;
167
- background-color: rgba(255, 235, 140, 1);
168
- }
169
- .cell {
170
- .text-overflow-cut();
171
- padding: 0 @--padding-sm;
172
- }
173
- }
174
- .label-cell,
175
- .table-cell {
176
- &:hover {
177
- .count-select {
178
- visibility: visible;
179
- }
180
- }
181
- }
182
- .count-select {
183
- .text-overflow-cut();
184
- display: inline-flex;
185
- align-items: center;
186
- justify-content: flex-end;
187
- height: 100%;
188
- width: 100%;
189
- padding: 0 4px;
190
- color: @--text-color-placeholder;
191
- cursor: pointer;
192
- visibility: hidden;
193
- &:hover,
194
- &.ant-dropdown-open {
195
- visibility: visible;
196
- background-color: @--background-color-light;
197
- }
198
- &.show {
199
- visibility: visible;
200
- }
201
- .icon {
202
- margin-left: 4px;
203
- }
204
- }
205
- }
206
- .resize-line {
207
- position: absolute;
208
- left: -2px;
209
- top: 0;
210
- width: 2px;
211
- height: 100%;
212
- background-color: @--primary-color;
213
- z-index: 2;
214
- }
215
- .fixed-line {
216
- position: absolute;
217
- left: -1px;
218
- top: 0;
219
- width: 0;
220
- height: 100%;
221
- border-left: 1px solid @--border-color-base;
222
- z-index: 2;
223
- pointer-events: none;
224
- &::after {
225
- content: '';
226
- position: absolute;
227
- top: 0;
228
- right: 0;
229
- bottom: -1px;
230
- width: 20px;
231
- transform: translateX(100%);
232
- transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
233
- pointer-events: none;
234
- }
235
- &.leave {
236
- &::after {
237
- box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
238
- }
239
- }
240
- &.active {
241
- border-left: 1px solid @--primary-color;
242
- border-right: 1px solid @--primary-color;
243
- }
244
- }
245
- .fixed-bar {
246
- position: absolute;
247
- top: 0;
248
- left: -1px;
249
- width: 6px;
250
- height: 100%;
251
- margin-left: -2px;
252
- background-image: none;
253
- background-repeat: no-repeat;
254
- z-index: 1;
255
- cursor: col-resize;
256
- &:hover,
257
- &.active {
258
- background-image: linear-gradient(to right, transparent 2px, @--border-color-base 2px 4px, transparent 4px 6px);
259
- z-index: 2;
260
- .thumb {
261
- opacity: 1;
262
- }
263
- }
264
- .thumb {
265
- position: absolute;
266
- top: 0;
267
- left: 0;
268
- width: 100%;
269
- height: 32px;
270
- border-radius: 6px;
271
- background-color: @--primary-color;
272
- opacity: 0;
273
- pointer-events: none;
274
- }
275
- }
276
- .content-empty {
277
- position: absolute;
278
- width: 100%;
279
- margin: 20px 0;
280
- }
281
- // 左侧面板
282
- .left-panel {
283
- position: sticky;
284
- left: 0;
285
- z-index: 1;
286
- .group-label {
287
- border-right: 0 !important;
288
- .bor-radius-left();
289
- &.level0 {
290
- .bor-left-shadow();
291
- }
292
- }
293
- .row-item {
294
- &:nth-of-type(1) {
295
- border-top-left-radius: @border-radius;
296
- .bor-left-shadow();
297
- .table-cell:first-child {
298
- border-top-left-radius: @border-radius;
299
- }
300
- }
301
- &.last {
302
- border-bottom-left-radius: @border-radius;
303
- .table-cell:first-child {
304
- border-bottom-left-radius: @border-radius;
305
- }
306
- }
307
- &.is-leaf {
308
- .selection-column {
309
- border-top-color: transparent;
310
- }
311
- .cell--indent {
312
- display: flex;
313
- background-color: #fff;
314
- .line {
315
- flex: 1 0;
316
- position: relative;
317
- &::before {
318
- content: '';
319
- position: absolute;
320
- left: 10px;
321
- height: 100%;
322
- margin-top: -100%;
323
- border-left: 1px dashed rgba(0, 0, 0, 0.175);
324
- }
325
- }
326
- }
327
- }
328
- }
329
- .no-group {
330
- .row-item:last-child {
331
- .bor-left-shadow();
332
- }
333
- }
334
- }
335
- .main-panel {
336
- flex: 1 0;
337
- z-index: 0;
338
- .group-label,
339
- .row-item {
340
- border-left: 0 !important;
341
- }
342
- .group-label {
343
- .bor-radius-right();
344
- }
345
- .row-item {
346
- &:nth-of-type(1) {
347
- border-top-right-radius: @border-radius;
348
- .table-cell:last-child {
349
- border-top-right-radius: @border-radius;
350
- }
351
- }
352
- &.last {
353
- border-bottom-right-radius: @border-radius;
354
- .table-cell:last-child {
355
- border-bottom-right-radius: @border-radius;
356
- }
357
- }
358
- }
359
- }
360
- .container {
361
- position: relative;
362
- left: 0;
363
- top: 0;
364
- &.no-group {
365
- .row-item:last-child {
366
- .table-cell {
367
- border-bottom: 1px solid @--border-color-secondary;
368
- }
369
- .cell--indent {
370
- height: fill-available;
371
- height: -webkit-fill-available;
372
- }
373
- }
374
- }
375
- .group-label {
376
- position: absolute;
377
- box-sizing: content-box;
378
- border: 1px solid @--border-color-secondary;
379
- background-color: #fff;
380
- overflow: hidden;
381
- .label-row {
382
- display: flex;
383
- align-items: center;
384
- }
385
- .label-cell {
386
- align-self: stretch;
387
- display: inline-flex;
388
- align-items: center;
389
- &.expandable-column {
390
- justify-content: center;
391
- .button-icon {
392
- & > .anticon {
393
- transition: transform 0.3s ease;
394
- }
395
- &.expand > .anticon {
396
- transform: rotate(90deg);
397
- }
398
- }
399
- }
400
- &.col--fix-left {
401
- position: sticky;
402
- z-index: 1;
403
- }
404
- .title {
405
- flex-shrink: 0;
406
- margin-left: 8px;
407
- margin-right: 20px;
408
- font-weight: 600;
409
- .empty {
410
- color: @--text-color-placeholder;
411
- font-weight: 400;
412
- }
413
- }
414
- }
415
- }
416
- .row-item {
417
- position: absolute;
418
- border-left: 1px solid @--border-color-secondary;
419
- .table-row {
420
- display: flex;
421
- align-items: center;
422
- height: inherit;
423
- &.row--hover,
424
- &.row--selection {
425
- .table-cell,
426
- .cell--indent {
427
- background-color: @--background-color-light;
428
- .middle&:has(.checkbox) {
429
- .order {
430
- display: none;
431
- }
432
- .checkbox {
433
- display: inline-flex;
434
- }
435
- }
436
- }
437
- }
438
- &.row--highlight {
439
- .table-cell,
440
- .cell--indent {
441
- background-color: @--primary-1;
442
- }
443
- }
444
- &.row--hover {
445
- .table-cell {
446
- .drag-icon,
447
- .expand-icon {
448
- visibility: visible;
449
- }
450
- }
451
- }
452
- .cell--expand {
453
- display: inline-flex;
454
- align-items: center;
455
- justify-content: center;
456
- z-index: 1;
457
- padding: 3px;
458
- color: @--text-color-placeholder;
459
- border-radius: @--border-radius-lg;
460
- background-color: #fff;
461
- user-select: none;
462
- cursor: pointer;
463
- .icon {
464
- transition: transform 0.3s ease;
465
- }
466
- &.fold {
467
- .icon {
468
- transform: rotate(-90deg);
469
- }
470
- }
471
- &.disabled {
472
- color: @--disabled-color;
473
- cursor: not-allowed;
474
- }
475
- }
476
- }
477
- }
478
- }
479
- // size
480
- &.small {
481
- .label-row,
482
- .table-cell,
483
- .cell--indent {
484
- height: 26px;
485
- }
486
- }
487
- &.middle {
488
- .label-row,
489
- .table-cell,
490
- .cell--indent {
491
- height: 34px;
492
- }
493
- }
494
- &.large {
495
- .label-row,
496
- .table-cell,
497
- .cell--indent {
498
- height: 42px;
499
- }
500
- }
501
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2022-03-16 19:05:30
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2025-01-12 14:23:51
6
+ */
7
+ @import '../../style/common';
8
+
9
+ .@{prefix-pivot-grid}__layout {
10
+ .reset-container();
11
+ width: 100%;
12
+
13
+ &.col-resize {
14
+ cursor: col-resize;
15
+ .qm-scrollbar__view {
16
+ pointer-events: none;
17
+ }
18
+ }
19
+
20
+ // =========== 变量 ===========
21
+ @header-bg-color: #d7f0ff;
22
+ @border-radius: 8px;
23
+ .bor-radius-left() {
24
+ border-top-left-radius: @border-radius;
25
+ border-bottom-left-radius: @border-radius;
26
+ }
27
+ .bor-radius-right() {
28
+ border-top-right-radius: @border-radius;
29
+ border-bottom-right-radius: @border-radius;
30
+ }
31
+ .bor-left-shadow() {
32
+ box-shadow: -5px 0px 0 0px @--background-color-light;
33
+ }
34
+ .bor-right-shadow() {
35
+ box-shadow: 5px 0px 0 0px @--background-color-light;
36
+ }
37
+ // =========== 变量 END ===========
38
+
39
+ .@{qm-prefix}-scrollbar__wrap {
40
+ // 调整为 flex 布局
41
+ display: flex;
42
+ flex-wrap: nowrap;
43
+ & > div {
44
+ height: fit-content;
45
+ }
46
+ }
47
+ .header,
48
+ .footer {
49
+ display: flex;
50
+ flex-direction: row;
51
+ .fixed-left {
52
+ position: sticky;
53
+ left: 0;
54
+ z-index: 1;
55
+ display: flex;
56
+ border-left: 1px solid @--border-color-secondary;
57
+ border-bottom: 1px solid @--border-color-secondary;
58
+ .bor-left-shadow();
59
+ &,
60
+ .table-cell:first-child {
61
+ .bor-radius-left();
62
+ }
63
+ }
64
+ .no-fixed {
65
+ flex: 1 0;
66
+ display: flex;
67
+ border-bottom: 1px solid @--border-color-secondary;
68
+ .bor-right-shadow();
69
+ &,
70
+ .table-cell:last-child {
71
+ .bor-radius-right();
72
+ }
73
+ }
74
+ }
75
+ .header {
76
+ position: sticky;
77
+ top: 0;
78
+ z-index: 2;
79
+ .table-cell {
80
+ position: relative;
81
+ background-color: @header-bg-color !important;
82
+ cursor: pointer;
83
+ }
84
+ .resize-bar {
85
+ position: absolute;
86
+ top: 0;
87
+ bottom: 0;
88
+ right: -3px;
89
+ width: 6px;
90
+ z-index: 2;
91
+ cursor: col-resize;
92
+ }
93
+ }
94
+ .body {
95
+ display: flex;
96
+ flex-direction: row;
97
+ min-height: fit-content;
98
+ }
99
+ .footer {
100
+ position: sticky;
101
+ bottom: 0;
102
+ z-index: 2;
103
+ }
104
+ .header,
105
+ .body,
106
+ .footer {
107
+ .table-cell {
108
+ align-self: stretch; // 子元素高度和父元素一致
109
+ display: inline-flex;
110
+ align-items: center;
111
+ border-top: 1px solid @--border-color-secondary;
112
+ border-right: 1px solid @--border-color-secondary;
113
+ background-color: #fff;
114
+ &.selection-column {
115
+ justify-content: center;
116
+ border-right-color: transparent;
117
+ }
118
+ .action {
119
+ display: inline-flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ .drag-icon,
123
+ .expand-icon {
124
+ display: inline-flex;
125
+ align-items: center;
126
+ justify-content: center;
127
+ width: 20px;
128
+ height: 20px;
129
+ color: @--text-color-placeholder;
130
+ visibility: hidden;
131
+ }
132
+ .drag-icon {
133
+ cursor: grab;
134
+ }
135
+ .expand-icon:hover {
136
+ color: @--primary-color;
137
+ }
138
+ .middle {
139
+ text-align: center;
140
+ width: 16px;
141
+ margin: 0 2px;
142
+ .order {
143
+ display: inline-block;
144
+ }
145
+ .checkbox {
146
+ display: none;
147
+ }
148
+ }
149
+ }
150
+ &.col--center {
151
+ text-align: center;
152
+ justify-content: center;
153
+ }
154
+ &.col--right {
155
+ text-align: right;
156
+ justify-content: flex-end;
157
+ }
158
+ &.col--fix-left {
159
+ position: sticky;
160
+ z-index: 1;
161
+ }
162
+ &.col--checked {
163
+ background-color: @--primary-1;
164
+ }
165
+ &.active {
166
+ box-shadow: inset 0 0 0 2px @--primary-color;
167
+ background-color: rgba(255, 235, 140, 1);
168
+ }
169
+ .cell {
170
+ .text-overflow-cut();
171
+ padding: 0 @--padding-sm;
172
+ }
173
+ }
174
+ .label-cell,
175
+ .table-cell {
176
+ &:hover {
177
+ .count-select {
178
+ visibility: visible;
179
+ }
180
+ }
181
+ }
182
+ .count-select {
183
+ .text-overflow-cut();
184
+ display: inline-flex;
185
+ align-items: center;
186
+ justify-content: flex-end;
187
+ height: 100%;
188
+ width: 100%;
189
+ padding: 0 4px;
190
+ color: @--text-color-placeholder;
191
+ cursor: pointer;
192
+ visibility: hidden;
193
+ &:hover,
194
+ &.ant-dropdown-open {
195
+ visibility: visible;
196
+ background-color: @--background-color-light;
197
+ }
198
+ &.show {
199
+ visibility: visible;
200
+ }
201
+ .icon {
202
+ margin-left: 4px;
203
+ }
204
+ }
205
+ }
206
+ .resize-line {
207
+ position: absolute;
208
+ left: -2px;
209
+ top: 0;
210
+ width: 2px;
211
+ height: 100%;
212
+ background-color: @--primary-color;
213
+ z-index: 2;
214
+ }
215
+ .fixed-line {
216
+ position: absolute;
217
+ left: -1px;
218
+ top: 0;
219
+ width: 0;
220
+ height: 100%;
221
+ border-left: 1px solid @--border-color-base;
222
+ z-index: 2;
223
+ pointer-events: none;
224
+ &::after {
225
+ content: '';
226
+ position: absolute;
227
+ top: 0;
228
+ right: 0;
229
+ bottom: -1px;
230
+ width: 20px;
231
+ transform: translateX(100%);
232
+ transition: box-shadow 0.3s, -webkit-box-shadow 0.3s;
233
+ pointer-events: none;
234
+ }
235
+ &.leave {
236
+ &::after {
237
+ box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, 0.15);
238
+ }
239
+ }
240
+ &.active {
241
+ border-left: 1px solid @--primary-color;
242
+ border-right: 1px solid @--primary-color;
243
+ }
244
+ }
245
+ .fixed-bar {
246
+ position: absolute;
247
+ top: 0;
248
+ left: -1px;
249
+ width: 6px;
250
+ height: 100%;
251
+ margin-left: -2px;
252
+ background-image: none;
253
+ background-repeat: no-repeat;
254
+ z-index: 1;
255
+ cursor: col-resize;
256
+ &:hover,
257
+ &.active {
258
+ background-image: linear-gradient(to right, transparent 2px, @--border-color-base 2px 4px, transparent 4px 6px);
259
+ z-index: 2;
260
+ .thumb {
261
+ opacity: 1;
262
+ }
263
+ }
264
+ .thumb {
265
+ position: absolute;
266
+ top: 0;
267
+ left: 0;
268
+ width: 100%;
269
+ height: 32px;
270
+ border-radius: 6px;
271
+ background-color: @--primary-color;
272
+ opacity: 0;
273
+ pointer-events: none;
274
+ }
275
+ }
276
+ .content-empty {
277
+ position: absolute;
278
+ width: 100%;
279
+ margin: 20px 0;
280
+ }
281
+ // 左侧面板
282
+ .left-panel {
283
+ position: sticky;
284
+ left: 0;
285
+ z-index: 1;
286
+ .group-label {
287
+ border-right: 0 !important;
288
+ .bor-radius-left();
289
+ &.level0 {
290
+ .bor-left-shadow();
291
+ }
292
+ }
293
+ .row-item {
294
+ &:nth-of-type(1) {
295
+ border-top-left-radius: @border-radius;
296
+ .bor-left-shadow();
297
+ .table-cell:first-child {
298
+ border-top-left-radius: @border-radius;
299
+ }
300
+ }
301
+ &.last {
302
+ border-bottom-left-radius: @border-radius;
303
+ .table-cell:first-child {
304
+ border-bottom-left-radius: @border-radius;
305
+ }
306
+ }
307
+ &.is-leaf {
308
+ .selection-column {
309
+ border-top-color: transparent;
310
+ }
311
+ .cell--indent {
312
+ display: flex;
313
+ background-color: #fff;
314
+ .line {
315
+ flex: 1 0;
316
+ position: relative;
317
+ &::before {
318
+ content: '';
319
+ position: absolute;
320
+ left: 10px;
321
+ height: 100%;
322
+ margin-top: -100%;
323
+ border-left: 1px dashed rgba(0, 0, 0, 0.175);
324
+ }
325
+ }
326
+ }
327
+ }
328
+ }
329
+ .no-group {
330
+ .row-item:last-child {
331
+ .bor-left-shadow();
332
+ }
333
+ }
334
+ }
335
+ .main-panel {
336
+ flex: 1 0;
337
+ z-index: 0;
338
+ .group-label,
339
+ .row-item {
340
+ border-left: 0 !important;
341
+ }
342
+ .group-label {
343
+ .bor-radius-right();
344
+ }
345
+ .row-item {
346
+ &:nth-of-type(1) {
347
+ border-top-right-radius: @border-radius;
348
+ .table-cell:last-child {
349
+ border-top-right-radius: @border-radius;
350
+ }
351
+ }
352
+ &.last {
353
+ border-bottom-right-radius: @border-radius;
354
+ .table-cell:last-child {
355
+ border-bottom-right-radius: @border-radius;
356
+ }
357
+ }
358
+ }
359
+ }
360
+ .container {
361
+ position: relative;
362
+ left: 0;
363
+ top: 0;
364
+ &.no-group {
365
+ .row-item:last-child {
366
+ .table-cell {
367
+ border-bottom: 1px solid @--border-color-secondary;
368
+ }
369
+ .cell--indent {
370
+ height: fill-available;
371
+ height: -webkit-fill-available;
372
+ }
373
+ }
374
+ }
375
+ .group-label {
376
+ position: absolute;
377
+ box-sizing: content-box;
378
+ border: 1px solid @--border-color-secondary;
379
+ background-color: #fff;
380
+ overflow: hidden;
381
+ .label-row {
382
+ display: flex;
383
+ align-items: center;
384
+ }
385
+ .label-cell {
386
+ align-self: stretch;
387
+ display: inline-flex;
388
+ align-items: center;
389
+ &.expandable-column {
390
+ justify-content: center;
391
+ .button-icon {
392
+ & > .anticon {
393
+ transition: transform 0.3s ease;
394
+ }
395
+ &.expand > .anticon {
396
+ transform: rotate(90deg);
397
+ }
398
+ }
399
+ }
400
+ &.col--fix-left {
401
+ position: sticky;
402
+ z-index: 1;
403
+ }
404
+ .title {
405
+ flex-shrink: 0;
406
+ margin-left: 8px;
407
+ margin-right: 20px;
408
+ font-weight: 600;
409
+ .empty {
410
+ color: @--text-color-placeholder;
411
+ font-weight: 400;
412
+ }
413
+ }
414
+ }
415
+ }
416
+ .row-item {
417
+ position: absolute;
418
+ border-left: 1px solid @--border-color-secondary;
419
+ .table-row {
420
+ display: flex;
421
+ align-items: center;
422
+ height: inherit;
423
+ &.row--hover,
424
+ &.row--selection {
425
+ .table-cell,
426
+ .cell--indent {
427
+ background-color: @--background-color-light;
428
+ .middle&:has(.checkbox) {
429
+ .order {
430
+ display: none;
431
+ }
432
+ .checkbox {
433
+ display: inline-flex;
434
+ }
435
+ }
436
+ }
437
+ }
438
+ &.row--highlight {
439
+ .table-cell,
440
+ .cell--indent {
441
+ background-color: @--primary-1;
442
+ }
443
+ }
444
+ &.row--hover {
445
+ .table-cell {
446
+ .drag-icon,
447
+ .expand-icon {
448
+ visibility: visible;
449
+ }
450
+ }
451
+ }
452
+ .cell--expand {
453
+ display: inline-flex;
454
+ align-items: center;
455
+ justify-content: center;
456
+ z-index: 1;
457
+ padding: 3px;
458
+ color: @--text-color-placeholder;
459
+ border-radius: @--border-radius-lg;
460
+ background-color: #fff;
461
+ user-select: none;
462
+ cursor: pointer;
463
+ .icon {
464
+ transition: transform 0.3s ease;
465
+ }
466
+ &.fold {
467
+ .icon {
468
+ transform: rotate(-90deg);
469
+ }
470
+ }
471
+ &.disabled {
472
+ color: @--disabled-color;
473
+ cursor: not-allowed;
474
+ }
475
+ }
476
+ }
477
+ }
478
+ }
479
+ // size
480
+ &.small {
481
+ .label-row,
482
+ .table-cell,
483
+ .cell--indent {
484
+ height: 26px;
485
+ }
486
+ }
487
+ &.middle {
488
+ .label-row,
489
+ .table-cell,
490
+ .cell--indent {
491
+ height: 34px;
492
+ }
493
+ }
494
+ &.large {
495
+ .label-row,
496
+ .table-cell,
497
+ .cell--indent {
498
+ height: 42px;
499
+ }
500
+ }
501
+ }