ep-craft 0.1.2 → 0.1.3
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.
- package/dist/components/button/EpButton.vue.d.ts +4 -4
- package/dist/components/button/EpButton.vue.js +19 -19
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +1 -1
- package/dist/components/button/index.d.ts +2 -1
- package/dist/components/button/index.js +4 -3
- package/dist/index.css +2 -2
- package/dist/resolver.js +9 -12
- package/package.json +4 -2
- package/theme-chalk/src/affix.scss +7 -0
- package/theme-chalk/src/alert.scss +115 -0
- package/theme-chalk/src/anchor-link.scss +45 -0
- package/theme-chalk/src/anchor.scss +93 -0
- package/theme-chalk/src/aside.scss +8 -0
- package/theme-chalk/src/autocomplete.scss +95 -0
- package/theme-chalk/src/avatar-group.scss +25 -0
- package/theme-chalk/src/avatar.scss +55 -0
- package/theme-chalk/src/backtop.scss +29 -0
- package/theme-chalk/src/badge.scss +58 -0
- package/theme-chalk/src/base.scss +3 -0
- package/theme-chalk/src/breadcrumb-item.scss +58 -0
- package/theme-chalk/src/breadcrumb.scss +9 -0
- package/theme-chalk/src/button-group.scss +133 -0
- package/theme-chalk/src/button.scss +325 -0
- package/theme-chalk/src/calendar.scss +94 -0
- package/theme-chalk/src/card.scss +49 -0
- package/theme-chalk/src/carousel-item.scss +58 -0
- package/theme-chalk/src/carousel.scss +195 -0
- package/theme-chalk/src/cascader-panel.scss +150 -0
- package/theme-chalk/src/cascader.scss +289 -0
- package/theme-chalk/src/check-tag.scss +60 -0
- package/theme-chalk/src/checkbox-button.scss +142 -0
- package/theme-chalk/src/checkbox-group.scss +7 -0
- package/theme-chalk/src/checkbox.scss +300 -0
- package/theme-chalk/src/col.scss +56 -0
- package/theme-chalk/src/collapse-item.scss +72 -0
- package/theme-chalk/src/collapse-transition.scss +1 -0
- package/theme-chalk/src/collapse.scss +29 -0
- package/theme-chalk/src/color/index.scss +20 -0
- package/theme-chalk/src/color-picker-panel.scss +294 -0
- package/theme-chalk/src/color-picker.scss +165 -0
- package/theme-chalk/src/common/popup.scss +47 -0
- package/theme-chalk/src/common/transition.scss +125 -0
- package/theme-chalk/src/common/var.scss +1730 -0
- package/theme-chalk/src/config-provider.scss +0 -0
- package/theme-chalk/src/container.scss +14 -0
- package/theme-chalk/src/dark/css-vars.scss +45 -0
- package/theme-chalk/src/dark/var.scss +224 -0
- package/theme-chalk/src/date-picker/date-picker.scss +121 -0
- package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
- package/theme-chalk/src/date-picker/date-table.scss +164 -0
- package/theme-chalk/src/date-picker/month-table.scss +112 -0
- package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
- package/theme-chalk/src/date-picker/picker.scss +217 -0
- package/theme-chalk/src/date-picker/time-picker.scss +90 -0
- package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
- package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
- package/theme-chalk/src/date-picker/utils.scss +14 -0
- package/theme-chalk/src/date-picker/year-table.scss +108 -0
- package/theme-chalk/src/date-picker-panel.scss +34 -0
- package/theme-chalk/src/date-picker.scss +0 -0
- package/theme-chalk/src/descriptions-item.scss +77 -0
- package/theme-chalk/src/descriptions.scss +151 -0
- package/theme-chalk/src/dialog.scss +207 -0
- package/theme-chalk/src/display.scss +12 -0
- package/theme-chalk/src/divider.scss +48 -0
- package/theme-chalk/src/drawer.scss +251 -0
- package/theme-chalk/src/dropdown-item.scss +0 -0
- package/theme-chalk/src/dropdown-menu.scss +0 -0
- package/theme-chalk/src/dropdown.scss +208 -0
- package/theme-chalk/src/empty.scss +49 -0
- package/theme-chalk/src/footer.scss +12 -0
- package/theme-chalk/src/form-item.scss +246 -0
- package/theme-chalk/src/form.scss +28 -0
- package/theme-chalk/src/header.scss +12 -0
- package/theme-chalk/src/icon.scss +41 -0
- package/theme-chalk/src/image-viewer.scss +161 -0
- package/theme-chalk/src/image.scss +49 -0
- package/theme-chalk/src/index.scss +116 -0
- package/theme-chalk/src/infinite-scroll.scss +0 -0
- package/theme-chalk/src/input-number.scss +192 -0
- package/theme-chalk/src/input-otp.scss +191 -0
- package/theme-chalk/src/input-tag.scss +249 -0
- package/theme-chalk/src/input.scss +541 -0
- package/theme-chalk/src/link.scss +90 -0
- package/theme-chalk/src/loading.scss +104 -0
- package/theme-chalk/src/main.scss +14 -0
- package/theme-chalk/src/mention.scss +88 -0
- package/theme-chalk/src/menu-item-group.scss +0 -0
- package/theme-chalk/src/menu-item.scss +0 -0
- package/theme-chalk/src/menu.scss +376 -0
- package/theme-chalk/src/message-box.scss +220 -0
- package/theme-chalk/src/message.scss +123 -0
- package/theme-chalk/src/mixins/_button.scss +240 -0
- package/theme-chalk/src/mixins/_col.scss +41 -0
- package/theme-chalk/src/mixins/_var.scss +67 -0
- package/theme-chalk/src/mixins/config.scss +5 -0
- package/theme-chalk/src/mixins/function.scss +99 -0
- package/theme-chalk/src/mixins/mixins.scss +257 -0
- package/theme-chalk/src/mixins/utils.scss +39 -0
- package/theme-chalk/src/notification.scss +109 -0
- package/theme-chalk/src/option-group.scss +33 -0
- package/theme-chalk/src/option.scss +71 -0
- package/theme-chalk/src/overlay.scss +17 -0
- package/theme-chalk/src/page-header.scss +60 -0
- package/theme-chalk/src/pagination.scss +235 -0
- package/theme-chalk/src/popconfirm.scss +17 -0
- package/theme-chalk/src/popover.scss +61 -0
- package/theme-chalk/src/popper.scss +117 -0
- package/theme-chalk/src/progress.scss +179 -0
- package/theme-chalk/src/radio-button.scss +165 -0
- package/theme-chalk/src/radio-group.scss +9 -0
- package/theme-chalk/src/radio.scss +220 -0
- package/theme-chalk/src/rate.scss +121 -0
- package/theme-chalk/src/reset.scss +99 -0
- package/theme-chalk/src/result.scss +57 -0
- package/theme-chalk/src/row.scss +34 -0
- package/theme-chalk/src/scrollbar.scss +97 -0
- package/theme-chalk/src/segmented.scss +186 -0
- package/theme-chalk/src/select-dropdown-v2.scss +1 -0
- package/theme-chalk/src/select-dropdown.scss +57 -0
- package/theme-chalk/src/select-v2.scss +4 -0
- package/theme-chalk/src/select.scss +269 -0
- package/theme-chalk/src/skeleton-item.scss +83 -0
- package/theme-chalk/src/skeleton.scss +44 -0
- package/theme-chalk/src/slider.scss +212 -0
- package/theme-chalk/src/space.scss +20 -0
- package/theme-chalk/src/spinner.scss +43 -0
- package/theme-chalk/src/splitter-panel.scss +8 -0
- package/theme-chalk/src/splitter.scss +148 -0
- package/theme-chalk/src/statistic.scss +35 -0
- package/theme-chalk/src/step.scss +320 -0
- package/theme-chalk/src/steps.scss +22 -0
- package/theme-chalk/src/sub-menu.scss +0 -0
- package/theme-chalk/src/switch.scss +294 -0
- package/theme-chalk/src/tab-pane.scss +0 -0
- package/theme-chalk/src/table-column.scss +100 -0
- package/theme-chalk/src/table-v2.scss +239 -0
- package/theme-chalk/src/table.scss +698 -0
- package/theme-chalk/src/tabs.scss +699 -0
- package/theme-chalk/src/tag.scss +195 -0
- package/theme-chalk/src/text.scss +51 -0
- package/theme-chalk/src/time-picker.scss +5 -0
- package/theme-chalk/src/time-select.scss +37 -0
- package/theme-chalk/src/timeline-item.scss +135 -0
- package/theme-chalk/src/timeline.scss +101 -0
- package/theme-chalk/src/tooltip.scss +0 -0
- package/theme-chalk/src/tour.scss +187 -0
- package/theme-chalk/src/transfer.scss +201 -0
- package/theme-chalk/src/tree-select.scss +41 -0
- package/theme-chalk/src/tree.scss +134 -0
- package/theme-chalk/src/upload.scss +660 -0
- package/theme-chalk/src/var.scss +87 -0
- package/theme-chalk/src/virtual-list.scss +40 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(skeleton) {
|
|
6
|
+
@include set-component-css-var('skeleton', $skeleton);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin skeleton-color() {
|
|
10
|
+
background: linear-gradient(
|
|
11
|
+
90deg,
|
|
12
|
+
getCssVar('skeleton-color') 25%,
|
|
13
|
+
getCssVar('skeleton-to-color') 37%,
|
|
14
|
+
getCssVar('skeleton-color') 63%
|
|
15
|
+
);
|
|
16
|
+
background-size: 400% 100%;
|
|
17
|
+
animation: #{$namespace}-skeleton-loading 1.4s ease infinite;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes #{$namespace}-skeleton-loading {
|
|
21
|
+
0% {
|
|
22
|
+
background-position: 100% 50%;
|
|
23
|
+
}
|
|
24
|
+
100% {
|
|
25
|
+
background-position: 0 50%;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@include b(skeleton) {
|
|
30
|
+
width: 100%;
|
|
31
|
+
@each $unit in (first-line, paragraph) {
|
|
32
|
+
@include e($unit) {
|
|
33
|
+
height: 16px;
|
|
34
|
+
margin-top: 16px;
|
|
35
|
+
background: getCssVar('skeleton-color');
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include when(animated) {
|
|
40
|
+
.#{$namespace}-skeleton__item {
|
|
41
|
+
@include skeleton-color();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'mixins/mixins' as *;
|
|
4
|
+
@use 'mixins/utils' as *;
|
|
5
|
+
@use 'mixins/var' as *;
|
|
6
|
+
@use 'common/var' as *;
|
|
7
|
+
|
|
8
|
+
$slider-height: () !default;
|
|
9
|
+
$slider-height: map.merge(
|
|
10
|
+
(
|
|
11
|
+
'large': 40px,
|
|
12
|
+
'default': 32px,
|
|
13
|
+
'small': 24px,
|
|
14
|
+
),
|
|
15
|
+
$slider-height
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
@include b(slider) {
|
|
19
|
+
@include set-component-css-var('slider', $slider);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include b(slider) {
|
|
23
|
+
width: 100%;
|
|
24
|
+
height: map.get($slider-height, 'default');
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
|
|
28
|
+
@include e(runway) {
|
|
29
|
+
flex: 1;
|
|
30
|
+
height: getCssVar('slider-height');
|
|
31
|
+
background-color: getCssVar('slider-runway-bg-color');
|
|
32
|
+
border-radius: getCssVar('slider-border-radius');
|
|
33
|
+
position: relative;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
|
|
36
|
+
&.show-input {
|
|
37
|
+
margin-right: 30px;
|
|
38
|
+
width: auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-disabled {
|
|
42
|
+
cursor: default;
|
|
43
|
+
|
|
44
|
+
.#{$namespace}-slider__bar {
|
|
45
|
+
background-color: getCssVar('slider-disabled-color');
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.#{$namespace}-slider__button {
|
|
49
|
+
border-color: getCssVar('slider-disabled-color');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$namespace}-slider__button-wrapper {
|
|
53
|
+
&:hover,
|
|
54
|
+
&.hover {
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.dragging {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.#{$namespace}-slider__button {
|
|
64
|
+
&:hover,
|
|
65
|
+
&.hover,
|
|
66
|
+
&.dragging {
|
|
67
|
+
transform: scale(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:hover,
|
|
71
|
+
&.hover {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.dragging {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@include e(input) {
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
width: 130px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include e(bar) {
|
|
88
|
+
height: getCssVar('slider-height');
|
|
89
|
+
background-color: getCssVar('slider-main-bg-color');
|
|
90
|
+
border-top-left-radius: getCssVar('slider-border-radius');
|
|
91
|
+
border-bottom-left-radius: getCssVar('slider-border-radius');
|
|
92
|
+
position: absolute;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@include e(button-wrapper) {
|
|
96
|
+
height: getCssVar('slider-button-wrapper-size');
|
|
97
|
+
width: getCssVar('slider-button-wrapper-size');
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
top: getCssVar('slider-button-wrapper-offset');
|
|
101
|
+
transform: translateX(-50%);
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
text-align: center;
|
|
104
|
+
user-select: none;
|
|
105
|
+
line-height: normal;
|
|
106
|
+
outline: none;
|
|
107
|
+
@include utils-vertical-center;
|
|
108
|
+
|
|
109
|
+
&:hover,
|
|
110
|
+
&.hover {
|
|
111
|
+
cursor: grab;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.dragging {
|
|
115
|
+
cursor: grabbing;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include e(button) {
|
|
120
|
+
display: inline-block;
|
|
121
|
+
width: getCssVar('slider-button-size');
|
|
122
|
+
height: getCssVar('slider-button-size');
|
|
123
|
+
vertical-align: middle;
|
|
124
|
+
border: solid 2px getCssVar('slider-main-bg-color');
|
|
125
|
+
background-color: getCssVar('color-white');
|
|
126
|
+
border-radius: 50%;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
transition: getCssVar('transition-duration-fast');
|
|
129
|
+
user-select: none;
|
|
130
|
+
|
|
131
|
+
&:hover,
|
|
132
|
+
&.hover,
|
|
133
|
+
&.dragging {
|
|
134
|
+
transform: scale(1.2);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:hover,
|
|
138
|
+
&.hover {
|
|
139
|
+
cursor: grab;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&.dragging {
|
|
143
|
+
cursor: grabbing;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@include e(stop) {
|
|
148
|
+
position: absolute;
|
|
149
|
+
height: getCssVar('slider-height');
|
|
150
|
+
width: getCssVar('slider-height');
|
|
151
|
+
border-radius: getCssVar('border-radius-circle');
|
|
152
|
+
background-color: getCssVar('slider-stop-bg-color');
|
|
153
|
+
transform: translateX(-50%);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@include e(marks) {
|
|
157
|
+
top: 0;
|
|
158
|
+
left: 12px;
|
|
159
|
+
width: 18px;
|
|
160
|
+
height: 100%;
|
|
161
|
+
|
|
162
|
+
@include e(marks-text) {
|
|
163
|
+
position: absolute;
|
|
164
|
+
transform: translateX(-50%);
|
|
165
|
+
font-size: 14px;
|
|
166
|
+
color: getCssVar('color-info');
|
|
167
|
+
margin-top: 15px;
|
|
168
|
+
white-space: pre;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
@include when(vertical) {
|
|
173
|
+
position: relative;
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
width: auto;
|
|
176
|
+
height: 100%;
|
|
177
|
+
flex: 0;
|
|
178
|
+
|
|
179
|
+
.#{$namespace}-slider__runway {
|
|
180
|
+
width: getCssVar('slider-height');
|
|
181
|
+
height: 100%;
|
|
182
|
+
margin: 0 16px;
|
|
183
|
+
}
|
|
184
|
+
.#{$namespace}-slider__bar {
|
|
185
|
+
width: getCssVar('slider-height');
|
|
186
|
+
height: auto;
|
|
187
|
+
border-radius: 0 0 3px 3px;
|
|
188
|
+
}
|
|
189
|
+
.#{$namespace}-slider__button-wrapper {
|
|
190
|
+
top: auto;
|
|
191
|
+
left: getCssVar('slider-button-wrapper-offset');
|
|
192
|
+
transform: translateY(50%);
|
|
193
|
+
}
|
|
194
|
+
.#{$namespace}-slider__stop {
|
|
195
|
+
transform: translateY(50%);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@include e(marks-text) {
|
|
199
|
+
margin-top: 0;
|
|
200
|
+
left: 15px;
|
|
201
|
+
transform: translateY(50%);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@each $size in (large, small) {
|
|
206
|
+
@include m($size) {
|
|
207
|
+
height: map.get($slider-height, $size);
|
|
208
|
+
@include e(runway) {
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'common/var' as *;
|
|
3
|
+
|
|
4
|
+
@include b(space) {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
vertical-align: top;
|
|
7
|
+
|
|
8
|
+
@include e(item) {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
|
|
12
|
+
& > * {
|
|
13
|
+
flex: 1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include m(vertical) {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
|
|
3
|
+
@include b(time-spinner) {
|
|
4
|
+
width: 100%;
|
|
5
|
+
white-space: nowrap;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@include b(spinner) {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
}
|
|
12
|
+
@include b(spinner-inner) {
|
|
13
|
+
animation: rotate 2s linear infinite;
|
|
14
|
+
width: 50px;
|
|
15
|
+
height: 50px;
|
|
16
|
+
|
|
17
|
+
& .path {
|
|
18
|
+
stroke: getCssVar('border-color', 'lighter');
|
|
19
|
+
stroke-linecap: round;
|
|
20
|
+
animation: dash 1.5s ease-in-out infinite;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes rotate {
|
|
25
|
+
100% {
|
|
26
|
+
transform: rotate(360deg);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes dash {
|
|
31
|
+
0% {
|
|
32
|
+
stroke-dasharray: 1, 150;
|
|
33
|
+
stroke-dashoffset: 0;
|
|
34
|
+
}
|
|
35
|
+
50% {
|
|
36
|
+
stroke-dasharray: 90, 150;
|
|
37
|
+
stroke-dashoffset: -35;
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
stroke-dasharray: 90, 150;
|
|
41
|
+
stroke-dashoffset: -124;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(splitter) {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
height: 100%;
|
|
9
|
+
width: 100%;
|
|
10
|
+
margin: 0;
|
|
11
|
+
padding: 0;
|
|
12
|
+
@include e(mask) {
|
|
13
|
+
position: absolute;
|
|
14
|
+
z-index: 999;
|
|
15
|
+
left: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
bottom: 0;
|
|
19
|
+
}
|
|
20
|
+
@include e(mask-horizontal) {
|
|
21
|
+
cursor: ew-resize;
|
|
22
|
+
}
|
|
23
|
+
@include e(mask-vertical) {
|
|
24
|
+
cursor: ns-resize;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include e(horizontal) {
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include e(vertical) {
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include b(splitter-bar) {
|
|
37
|
+
flex: none;
|
|
38
|
+
position: relative;
|
|
39
|
+
user-select: none;
|
|
40
|
+
|
|
41
|
+
@include e(dragger) {
|
|
42
|
+
z-index: 1;
|
|
43
|
+
position: absolute;
|
|
44
|
+
background: transparent;
|
|
45
|
+
top: 50%;
|
|
46
|
+
left: 50%;
|
|
47
|
+
transform: translate(-50%, -50%);
|
|
48
|
+
&::before,
|
|
49
|
+
&::after {
|
|
50
|
+
content: '';
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: 50%;
|
|
53
|
+
left: 50%;
|
|
54
|
+
transform: translate(-50%, -50%);
|
|
55
|
+
background-color: getCssVar('border-color-light');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:not(.is-lazy)::after {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&::after {
|
|
63
|
+
opacity: 0.4;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
&:not(.is-disabled)::before {
|
|
68
|
+
background-color: getCssVar('color-primary-light-5');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
@include e(dragger-horizontal) {
|
|
73
|
+
&::before,
|
|
74
|
+
&::after {
|
|
75
|
+
height: 100%;
|
|
76
|
+
width: 2px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@include e(dragger-vertical) {
|
|
80
|
+
&::before,
|
|
81
|
+
&::after {
|
|
82
|
+
height: 2px;
|
|
83
|
+
width: 100%;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
@include e(dragger-active) {
|
|
87
|
+
&::before,
|
|
88
|
+
&::after {
|
|
89
|
+
background-color: getCssVar('color-primary-light-3');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.#{$namespace}-splitter-bar__dragger-horizontal::after {
|
|
93
|
+
transform: translate(calc(-50% + getCssVar('splitter-bar-offset')), -50%);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.#{$namespace}-splitter-bar__dragger-vertical::after {
|
|
97
|
+
transform: translate(-50%, calc(-50% + getCssVar('splitter-bar-offset')));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&:hover {
|
|
101
|
+
@include e(collapse-icon) {
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
@include e(collapse-icon) {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
position: absolute;
|
|
110
|
+
background: getCssVar('border-color-light');
|
|
111
|
+
border-radius: 2px;
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
opacity: 0;
|
|
114
|
+
z-index: 9;
|
|
115
|
+
&:hover {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
background-color: getCssVar('color-primary-light-5');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@include e(horizontal-collapse-icon-start) {
|
|
121
|
+
left: -12px;
|
|
122
|
+
top: 50%;
|
|
123
|
+
height: 24px;
|
|
124
|
+
width: 16px;
|
|
125
|
+
transform: translate(-50%, -50%);
|
|
126
|
+
}
|
|
127
|
+
@include e(horizontal-collapse-icon-end) {
|
|
128
|
+
left: 12px;
|
|
129
|
+
top: 50%;
|
|
130
|
+
height: 24px;
|
|
131
|
+
width: 16px;
|
|
132
|
+
transform: translate(-50%, -50%);
|
|
133
|
+
}
|
|
134
|
+
@include e(vertical-collapse-icon-start) {
|
|
135
|
+
top: -12px;
|
|
136
|
+
right: 50%;
|
|
137
|
+
height: 16px;
|
|
138
|
+
width: 24px;
|
|
139
|
+
transform: translate(50%, -50%);
|
|
140
|
+
}
|
|
141
|
+
@include e(vertical-collapse-icon-end) {
|
|
142
|
+
top: 12px;
|
|
143
|
+
right: 50%;
|
|
144
|
+
height: 16px;
|
|
145
|
+
width: 24px;
|
|
146
|
+
transform: translate(50%, -50%);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@use 'mixins/mixins' as *;
|
|
2
|
+
@use 'mixins/var' as *;
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
|
|
5
|
+
@include b(statistic) {
|
|
6
|
+
@include set-component-css-var('statistic', $statistic);
|
|
7
|
+
|
|
8
|
+
@include e(head) {
|
|
9
|
+
font-weight: getCssVar('statistic-title-font-weight');
|
|
10
|
+
font-size: getCssVar('statistic-title-font-size');
|
|
11
|
+
color: getCssVar('statistic-title-color');
|
|
12
|
+
line-height: 20px;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include e(content) {
|
|
17
|
+
font-weight: getCssVar('statistic-content-font-weight');
|
|
18
|
+
font-size: getCssVar('statistic-content-font-size');
|
|
19
|
+
color: getCssVar('statistic-content-color');
|
|
20
|
+
|
|
21
|
+
@include e(value) {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@include e(prefix) {
|
|
26
|
+
margin-right: 4px;
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include e(suffix) {
|
|
31
|
+
margin-left: 4px;
|
|
32
|
+
display: inline-block;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|