-
Notifications
You must be signed in to change notification settings - Fork 674
Expand file tree
/
Copy path_index.scss
More file actions
112 lines (95 loc) · 3.53 KB
/
Copy path_index.scss
File metadata and controls
112 lines (95 loc) · 3.53 KB
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
@use "sass:meta";
@use "./item";
@use "./variables" as *;
/*
NOTE: Maximal space needed:
2px maximal right header item padding + 4px maximal dxSortable placeholder (drop indicator) width
We can increase this number up to the CardView root padding without issues
*/
$sortable-side-offset: 6px;
.dx-cardview-header-item-sorting {
display: flex;
}
.dx-cardview-headers {
margin: $cardview-header-panel-vertical-margin 0;
}
.dx-cardview-sortable {
position: relative;
overflow: visible;
/*
NOTE: We need negative margin here for dxSortable indicator
when placeholder position is first or last item.
Because it shown outside the container
*/
margin: 0 (-$sortable-side-offset);
.dx-cardview-dropzone {
width: calc(100% - (2 * $sortable-side-offset));
height: $cardview-header-panel__dropzone-height;
margin: 0 $sortable-side-offset;
background-color: $cardview-header-panel__dropzone-bg-color;
text-align: center;
position: absolute;
top: $cardview-header-panel__dropzone-top;
left: 0;
border-width: $cardview-header-panel__dropzone-border-width;
border-style: dashed;
border-color: $cardview-header-panel__dropzone-border-color;
border-radius: $cardview-header-panel__dropzone-border-radius;
pointer-events: none;
opacity: 0.0;
transition: opacity 0.3s ease-out;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
.dx-icon {
color: $cardview-header-panel__dropzone__icon-color;
}
span {
color: $cardview-header-panel__dropzone-text-color;
}
}
.dx-cardview-dropzone-visible {
opacity: 1.0;
pointer-events: auto;
}
}
.dx-cardview-headerpanel-text-empty {
line-height: $cardview-header-panel--empty-line-height;
}
.dx-cardview-headerpanel-content {
display: flex;
/*
NOTE: We compensate negative margin from dxSortable here
Please note, that header-item-container paddings taken into account here
*/
&--with-header-items {
margin: 0 if(meta.type-of($sortable-side-offset) == number and meta.type-of($cardview-header-item__right-padding) == number, ($sortable-side-offset - $cardview-header-item__right-padding), calc(#{$sortable-side-offset} - #{$cardview-header-item__right-padding})) 0 if(meta.type-of($sortable-side-offset) == number and meta.type-of($cardview-header-item__left-padding) == number, ($sortable-side-offset - $cardview-header-item__left-padding), calc(#{$sortable-side-offset} - #{$cardview-header-item__left-padding}));
}
&--empty {
margin: 0 $sortable-side-offset;
}
}
/*
NOTE: This paddings needed for align the dxSortable placeholder (drop indicator)
in the middle between elements
*/
.dx-cardview-header-item-container {
min-width: fit-content;
padding: 0 $cardview-header-item__right-padding 0 $cardview-header-item__left-padding;
/* dxSortable dims a drag source to 0.5 on this element, and opacity on a child cannot undo a
parent's group opacity - the header item's own opt-out was inert and its text measured 3.33
against its own background. The component marks the source with colour instead, so the dim is
cancelled here, where it is applied. */
&.dx-sortable-source {
opacity: 1;
}
&:first-child {
padding: 0 $cardview-header-item__right-padding 0 $cardview-header-item__left-padding;
}
}
.dx-cardview-header-item-sort-indicator {
border: $cardview-header-item__sort-indicator__border-size solid;
border-color: $cardview-header-item__sort-indicator__border-color;
border-radius: $cardview-header-item__sort-indicator__border-radius;
}