adtec-core-package 1.2.1 → 1.2.2
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/.editorconfig +6 -6
- package/.prettierrc.json +7 -7
- package/.vscode/extensions.json +8 -8
- package/README.md +39 -39
- package/env.d.ts +1 -1
- package/eslint.config.js +56 -56
- package/index.html +13 -13
- package/package.json +1 -1
- package/src/App.vue +9 -9
- package/src/assets/base.css +86 -86
- package/src/assets/logo.svg +1 -1
- package/src/assets/main.css +35 -35
- package/src/assets/style/transition.scss +49 -49
- package/src/components/icon/ElIcons.vue +38 -38
- package/src/components/workflow/components/CheckDialog.vue +1 -0
- package/src/css/elementUI/affix.scss +7 -7
- package/src/css/elementUI/alert.scss +115 -115
- package/src/css/elementUI/anchor-link.scss +41 -41
- package/src/css/elementUI/anchor.scss +88 -88
- package/src/css/elementUI/aside.scss +8 -8
- package/src/css/elementUI/avatar.scss +55 -55
- package/src/css/elementUI/backtop.scss +29 -29
- package/src/css/elementUI/badge.scss +58 -58
- package/src/css/elementUI/base.scss +3 -3
- package/src/css/elementUI/breadcrumb.scss +62 -62
- package/src/css/elementUI/button-group.scss +80 -80
- package/src/css/elementUI/button.scss +304 -304
- package/src/css/elementUI/calendar.scss +80 -80
- package/src/css/elementUI/card.scss +45 -45
- package/src/css/elementUI/carousel-item.scss +58 -58
- package/src/css/elementUI/carousel.scss +188 -188
- package/src/css/elementUI/cascader-panel.scss +138 -138
- package/src/css/elementUI/cascader.scss +230 -230
- package/src/css/elementUI/check-tag.scss +60 -60
- package/src/css/elementUI/checkbox-button.scss +140 -140
- package/src/css/elementUI/checkbox-group.scss +7 -7
- package/src/css/elementUI/checkbox.scss +298 -298
- package/src/css/elementUI/col.scss +48 -48
- package/src/css/elementUI/collapse.scss +70 -70
- package/src/css/elementUI/color/index.scss +20 -20
- package/src/css/elementUI/color-picker.scss +392 -392
- package/src/css/elementUI/common/popup.scss +47 -47
- package/src/css/elementUI/common/transition.scss +122 -122
- package/src/css/elementUI/container.scss +14 -14
- package/src/css/elementUI/dark/css-vars.scss +39 -39
- package/src/css/elementUI/dark/var.scss +222 -222
- package/src/css/elementUI/date-picker/date-picker.scss +110 -110
- package/src/css/elementUI/date-picker/date-range-picker.scss +113 -113
- package/src/css/elementUI/date-picker/date-table.scss +158 -158
- package/src/css/elementUI/date-picker/month-table.scss +112 -112
- package/src/css/elementUI/date-picker/picker-panel.scss +131 -131
- package/src/css/elementUI/date-picker/time-picker.scss +90 -90
- package/src/css/elementUI/date-picker/time-range-picker.scss +33 -33
- package/src/css/elementUI/date-picker/time-spinner.scss +111 -111
- package/src/css/elementUI/date-picker/year-table.scss +108 -108
- package/src/css/elementUI/date-picker.scss +9 -9
- package/src/css/elementUI/descriptions-item.scss +73 -73
- package/src/css/elementUI/dialog.scss +199 -199
- package/src/css/elementUI/display.scss +12 -12
- package/src/css/elementUI/divider.scss +48 -48
- package/src/css/elementUI/dropdown.scss +208 -208
- package/src/css/elementUI/empty.scss +49 -49
- package/src/css/elementUI/footer.scss +12 -12
- package/src/css/elementUI/form.scss +243 -243
- package/src/css/elementUI/header.scss +12 -12
- package/src/css/elementUI/icon.scss +45 -45
- package/src/css/elementUI/image-viewer.scss +139 -139
- package/src/css/elementUI/image.scss +49 -49
- package/src/css/elementUI/index.scss +110 -110
- package/src/css/elementUI/input-number.scss +178 -178
- package/src/css/elementUI/input.scss +478 -478
- package/src/css/elementUI/link.scss +90 -90
- package/src/css/elementUI/loading.scss +104 -104
- package/src/css/elementUI/main.scss +14 -14
- package/src/css/elementUI/mention.scss +88 -88
- package/src/css/elementUI/menu.scss +339 -339
- package/src/css/elementUI/message-box.scss +213 -213
- package/src/css/elementUI/message.scss +98 -98
- package/src/css/elementUI/mixins/_button.scss +165 -165
- package/src/css/elementUI/mixins/_col.scss +33 -33
- package/src/css/elementUI/mixins/_var.scss +67 -67
- package/src/css/elementUI/mixins/config.scss +5 -5
- package/src/css/elementUI/mixins/function.scss +88 -88
- package/src/css/elementUI/mixins/mixins.scss +237 -237
- package/src/css/elementUI/mixins/utils.scss +39 -39
- package/src/css/elementUI/notification.scss +104 -104
- package/src/css/elementUI/option-group.scss +33 -33
- package/src/css/elementUI/option.scss +71 -71
- package/src/css/elementUI/overlay.scss +17 -17
- package/src/css/elementUI/page-header.scss +60 -60
- package/src/css/elementUI/pagination.scss +238 -238
- package/src/css/elementUI/popconfirm.scss +16 -16
- package/src/css/elementUI/popover.scss +61 -61
- package/src/css/elementUI/popper.scss +106 -106
- package/src/css/elementUI/progress.scss +179 -179
- package/src/css/elementUI/radio-button.scss +169 -169
- package/src/css/elementUI/radio-group.scss +9 -9
- package/src/css/elementUI/radio.scss +215 -215
- package/src/css/elementUI/rate.scss +108 -108
- package/src/css/elementUI/reset.scss +98 -98
- package/src/css/elementUI/result.scss +57 -57
- package/src/css/elementUI/row.scss +35 -35
- package/src/css/elementUI/scrollbar.scss +97 -97
- package/src/css/elementUI/segmented.scss +183 -183
- package/src/css/elementUI/select-dropdown-v2.scss +1 -1
- package/src/css/elementUI/select-dropdown.scss +57 -57
- package/src/css/elementUI/select-v2.scss +4 -4
- package/src/css/elementUI/select.scss +253 -253
- package/src/css/elementUI/skeleton-item.scss +83 -83
- package/src/css/elementUI/skeleton.scss +44 -44
- package/src/css/elementUI/slider.scss +212 -212
- package/src/css/elementUI/space.scss +20 -20
- package/src/css/elementUI/spinner.scss +43 -43
- package/src/css/elementUI/statistic.scss +35 -35
- package/src/css/elementUI/step.scss +316 -316
- package/src/css/elementUI/steps.scss +21 -21
- package/src/css/elementUI/switch.scss +300 -300
- package/src/css/elementUI/table-column.scss +98 -98
- package/src/css/elementUI/table-v2.scss +236 -236
- package/src/css/elementUI/tag.scss +181 -181
- package/src/css/elementUI/text.scss +51 -51
- package/src/css/elementUI/time-picker.scss +5 -5
- package/src/css/elementUI/time-select.scss +37 -37
- package/src/css/elementUI/timeline-item.scss +84 -84
- package/src/css/elementUI/timeline.scss +46 -46
- package/src/css/elementUI/tooltip-v2.scss +95 -95
- package/src/css/elementUI/tour.scss +187 -187
- package/src/css/elementUI/transfer.scss +203 -203
- package/src/css/elementUI/tree-select.scss +41 -41
- package/src/css/elementUI/tree.scss +134 -134
- package/src/css/elementUI/upload.scss +654 -654
- package/src/css/elementUI/var.scss +87 -87
- package/src/css/elementUI/virtual-list.scss +40 -40
- package/src/hooks/useFileView.ts +0 -24
- package/src/interface/enum/FlexEnum.ts +85 -85
- package/src/interface/workflow/IWfReturnNodeVo.ts +1 -0
- package/src/interface/workflow/IWfTaskAskVo.ts +4 -0
- package/src/main.ts +14 -14
- package/src/router/index.ts +23 -23
- package/src/utils/FrameworkUtils.ts +335 -335
- package/src/utils/encrypt.ts +10 -10
- package/tsconfig.app.json +12 -12
- package/tsconfig.json +11 -11
- package/tsconfig.node.json +18 -18
- package/vite.config.ts +38 -38
- package/adtec-core-package/adtec-core-package.css +0 -1
- package/adtec-core-package/adtec-core-package.js +0 -41605
- package/adtec-core-package/adtec-core-package.umd.cjs +0 -79
- package/adtec-core-package/favicon.ico +0 -0
|
@@ -1,304 +1,304 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use 'common/var' as *;
|
|
4
|
-
@use 'mixins/button' as *;
|
|
5
|
-
@use 'mixins/mixins' as *;
|
|
6
|
-
@use 'mixins/utils' as *;
|
|
7
|
-
@use 'mixins/var' as *;
|
|
8
|
-
|
|
9
|
-
$button-icon-span-gap: () !default;
|
|
10
|
-
$button-icon-span-gap: map.merge(
|
|
11
|
-
(
|
|
12
|
-
'large': 8px,
|
|
13
|
-
'default': 6px,
|
|
14
|
-
'small': 4px,
|
|
15
|
-
),
|
|
16
|
-
$button-icon-span-gap
|
|
17
|
-
);
|
|
18
|
-
|
|
19
|
-
@include b(button) {
|
|
20
|
-
@include set-component-css-var('button', $button);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@include b(button) {
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
align-items: center;
|
|
27
|
-
font-family: var(--el-font-family);
|
|
28
|
-
line-height: 1;
|
|
29
|
-
// min-height will expand when in flex
|
|
30
|
-
height: map.get($input-height, 'default');
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
color: getCssVar('button', 'text-color');
|
|
34
|
-
text-align: center;
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
outline: none;
|
|
37
|
-
transition: 0.1s;
|
|
38
|
-
font-weight: getCssVar('button', 'font-weight');
|
|
39
|
-
user-select: none;
|
|
40
|
-
vertical-align: middle;
|
|
41
|
-
-webkit-appearance: none;
|
|
42
|
-
background-color: getCssVar('button', 'bg-color');
|
|
43
|
-
border: getCssVar('border');
|
|
44
|
-
border-color: getCssVar('button', 'border-color');
|
|
45
|
-
|
|
46
|
-
&:hover {
|
|
47
|
-
color: getCssVar('button', 'hover', 'text-color');
|
|
48
|
-
border-color: getCssVar('button', 'hover', 'border-color');
|
|
49
|
-
background-color: getCssVar('button', 'hover', 'bg-color');
|
|
50
|
-
outline: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&:active {
|
|
54
|
-
color: getCssVar('button', 'active', 'text-color');
|
|
55
|
-
border-color: getCssVar('button', 'active', 'border-color');
|
|
56
|
-
background-color: getCssVar('button', 'active', 'bg-color');
|
|
57
|
-
outline: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:focus-visible {
|
|
61
|
-
outline: 2px solid getCssVar('button', 'outline-color');
|
|
62
|
-
outline-offset: 1px;
|
|
63
|
-
transition: outline-offset 0s, outline 0s;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
> span {
|
|
67
|
-
display: inline-flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
& + & {
|
|
72
|
-
margin-left: 8px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
& {
|
|
76
|
-
@include button-size(
|
|
77
|
-
map.get($button-padding-vertical, 'default') - $button-border-width,
|
|
78
|
-
map.get($button-padding-horizontal, 'default') - $button-border-width,
|
|
79
|
-
map.get($button-font-size, 'default'),
|
|
80
|
-
map.get($button-border-radius, 'default')
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&::-moz-focus-inner {
|
|
85
|
-
border: 0;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
& [class*='#{$namespace}-icon'] {
|
|
89
|
-
& + span {
|
|
90
|
-
margin-left: map.get($button-icon-span-gap, 'default');
|
|
91
|
-
}
|
|
92
|
-
svg {
|
|
93
|
-
vertical-align: bottom;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@include when(plain) {
|
|
98
|
-
@include css-var-from-global(
|
|
99
|
-
('button', 'hover', 'text-color'),
|
|
100
|
-
('color', 'primary')
|
|
101
|
-
);
|
|
102
|
-
@include css-var-from-global(
|
|
103
|
-
('button', 'hover', 'bg-color'),
|
|
104
|
-
('fill-color', 'blank')
|
|
105
|
-
);
|
|
106
|
-
@include css-var-from-global(
|
|
107
|
-
('button', 'hover', 'border-color'),
|
|
108
|
-
('color', 'primary')
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
@include when(active) {
|
|
113
|
-
color: getCssVar('button', 'active', 'text-color');
|
|
114
|
-
border-color: getCssVar('button', 'active', 'border-color');
|
|
115
|
-
background-color: getCssVar('button', 'active', 'bg-color');
|
|
116
|
-
outline: none;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
@include when(disabled) {
|
|
120
|
-
&,
|
|
121
|
-
&:hover {
|
|
122
|
-
color: getCssVar('button', 'disabled', 'text-color');
|
|
123
|
-
cursor: not-allowed;
|
|
124
|
-
background-image: none;
|
|
125
|
-
background-color: getCssVar('button', 'disabled', 'bg-color');
|
|
126
|
-
border-color: getCssVar('button', 'disabled', 'border-color');
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@include when(loading) {
|
|
131
|
-
position: relative;
|
|
132
|
-
pointer-events: none;
|
|
133
|
-
|
|
134
|
-
&:before {
|
|
135
|
-
// mask the button
|
|
136
|
-
z-index: 1;
|
|
137
|
-
pointer-events: none;
|
|
138
|
-
content: '';
|
|
139
|
-
position: absolute;
|
|
140
|
-
left: -1px;
|
|
141
|
-
top: -1px;
|
|
142
|
-
right: -1px;
|
|
143
|
-
bottom: -1px;
|
|
144
|
-
border-radius: inherit;
|
|
145
|
-
background-color: getCssVar('mask-color', 'extra-light');
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
@include when(round) {
|
|
149
|
-
border-radius: getCssVar('border-radius', 'round');
|
|
150
|
-
}
|
|
151
|
-
@include when(circle) {
|
|
152
|
-
width: map.get($input-height, 'default');
|
|
153
|
-
border-radius: 50%;
|
|
154
|
-
padding: map.get($button-padding-vertical, 'default') - $button-border-width;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
@include when(text) {
|
|
158
|
-
color: getCssVar('button', 'text-color');
|
|
159
|
-
border: 0 solid transparent;
|
|
160
|
-
background-color: transparent;
|
|
161
|
-
|
|
162
|
-
@include when(disabled) {
|
|
163
|
-
color: getCssVar('button', 'disabled', 'text-color');
|
|
164
|
-
background-color: transparent !important;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&:not(.is-disabled) {
|
|
168
|
-
&:hover {
|
|
169
|
-
background-color: getCssVar('fill-color', 'light');
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
&:focus-visible {
|
|
173
|
-
outline: 2px solid getCssVar('button', 'outline-color');
|
|
174
|
-
outline-offset: 1px;
|
|
175
|
-
transition: outline-offset 0s, outline 0s;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&:active {
|
|
179
|
-
background-color: getCssVar('fill-color');
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
@include when(has-bg) {
|
|
183
|
-
background-color: getCssVar('fill-color', 'light');
|
|
184
|
-
|
|
185
|
-
&:hover {
|
|
186
|
-
background-color: getCssVar('fill-color');
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
&:active {
|
|
190
|
-
background-color: getCssVar('fill-color', 'dark');
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
@include e(text) {
|
|
197
|
-
@include m(expand) {
|
|
198
|
-
letter-spacing: 0.3em;
|
|
199
|
-
margin-right: -0.3em;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@include when(link) {
|
|
204
|
-
border-color: transparent;
|
|
205
|
-
color: getCssVar('button', 'text-color');
|
|
206
|
-
background: transparent;
|
|
207
|
-
padding: 2px;
|
|
208
|
-
height: auto;
|
|
209
|
-
|
|
210
|
-
&:hover {
|
|
211
|
-
color: getCssVar('button', 'hover', 'link-text-color');
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
@include when(disabled) {
|
|
215
|
-
color: getCssVar('button', 'disabled', 'text-color');
|
|
216
|
-
background-color: transparent !important;
|
|
217
|
-
border-color: transparent !important;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
&:not(.is-disabled) {
|
|
221
|
-
&:hover {
|
|
222
|
-
border-color: transparent;
|
|
223
|
-
background-color: transparent;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&:active {
|
|
227
|
-
color: getCssVar('button', 'active-color');
|
|
228
|
-
border-color: transparent;
|
|
229
|
-
background-color: transparent;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
@include m(text) {
|
|
235
|
-
border-color: transparent;
|
|
236
|
-
background: transparent;
|
|
237
|
-
color: getCssVar('color', 'primary');
|
|
238
|
-
padding-left: 0;
|
|
239
|
-
padding-right: 0;
|
|
240
|
-
@include when(disabled) {
|
|
241
|
-
color: getCssVar('button', 'disabled', 'text-color');
|
|
242
|
-
background-color: transparent !important;
|
|
243
|
-
border-color: transparent !important;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
&:not(.is-disabled) {
|
|
247
|
-
&:hover {
|
|
248
|
-
color: getCssVar('color', 'primary', 'light-3');
|
|
249
|
-
border-color: transparent;
|
|
250
|
-
background-color: transparent;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
&:active {
|
|
254
|
-
color: getCssVar('color', 'primary', 'dark-2');
|
|
255
|
-
border-color: transparent;
|
|
256
|
-
background-color: transparent;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
@include e(link) {
|
|
262
|
-
@include m(expand) {
|
|
263
|
-
letter-spacing: 0.3em;
|
|
264
|
-
margin-right: -0.3em;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@each $type in (primary, success, warning, danger, info) {
|
|
269
|
-
@include m($type) {
|
|
270
|
-
@include button-variant($type);
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
@each $size in (large, small) {
|
|
275
|
-
@include m($size) {
|
|
276
|
-
@include set-css-var-value(
|
|
277
|
-
('button', 'size'),
|
|
278
|
-
map.get($input-height, $size)
|
|
279
|
-
);
|
|
280
|
-
|
|
281
|
-
height: getCssVar('button', 'size');
|
|
282
|
-
|
|
283
|
-
& [class*='#{$namespace}-icon'] {
|
|
284
|
-
& + span {
|
|
285
|
-
margin-left: map.get($button-icon-span-gap, $size);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
& {
|
|
290
|
-
@include button-size(
|
|
291
|
-
map.get($button-padding-vertical, $size) - $button-border-width,
|
|
292
|
-
map.get($button-padding-horizontal, $size) - $button-border-width,
|
|
293
|
-
map.get($button-font-size, $size),
|
|
294
|
-
map.get($button-border-radius, $size)
|
|
295
|
-
);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
@include when(circle) {
|
|
299
|
-
width: getCssVar('button', 'size');
|
|
300
|
-
padding: map.get($button-padding-vertical, $size) - $button-border-width;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
}
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'common/var' as *;
|
|
4
|
+
@use 'mixins/button' as *;
|
|
5
|
+
@use 'mixins/mixins' as *;
|
|
6
|
+
@use 'mixins/utils' as *;
|
|
7
|
+
@use 'mixins/var' as *;
|
|
8
|
+
|
|
9
|
+
$button-icon-span-gap: () !default;
|
|
10
|
+
$button-icon-span-gap: map.merge(
|
|
11
|
+
(
|
|
12
|
+
'large': 8px,
|
|
13
|
+
'default': 6px,
|
|
14
|
+
'small': 4px,
|
|
15
|
+
),
|
|
16
|
+
$button-icon-span-gap
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
@include b(button) {
|
|
20
|
+
@include set-component-css-var('button', $button);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@include b(button) {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-family: var(--el-font-family);
|
|
28
|
+
line-height: 1;
|
|
29
|
+
// min-height will expand when in flex
|
|
30
|
+
height: map.get($input-height, 'default');
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
color: getCssVar('button', 'text-color');
|
|
34
|
+
text-align: center;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
outline: none;
|
|
37
|
+
transition: 0.1s;
|
|
38
|
+
font-weight: getCssVar('button', 'font-weight');
|
|
39
|
+
user-select: none;
|
|
40
|
+
vertical-align: middle;
|
|
41
|
+
-webkit-appearance: none;
|
|
42
|
+
background-color: getCssVar('button', 'bg-color');
|
|
43
|
+
border: getCssVar('border');
|
|
44
|
+
border-color: getCssVar('button', 'border-color');
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
color: getCssVar('button', 'hover', 'text-color');
|
|
48
|
+
border-color: getCssVar('button', 'hover', 'border-color');
|
|
49
|
+
background-color: getCssVar('button', 'hover', 'bg-color');
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:active {
|
|
54
|
+
color: getCssVar('button', 'active', 'text-color');
|
|
55
|
+
border-color: getCssVar('button', 'active', 'border-color');
|
|
56
|
+
background-color: getCssVar('button', 'active', 'bg-color');
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
outline: 2px solid getCssVar('button', 'outline-color');
|
|
62
|
+
outline-offset: 1px;
|
|
63
|
+
transition: outline-offset 0s, outline 0s;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
> span {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& + & {
|
|
72
|
+
margin-left: 8px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& {
|
|
76
|
+
@include button-size(
|
|
77
|
+
map.get($button-padding-vertical, 'default') - $button-border-width,
|
|
78
|
+
map.get($button-padding-horizontal, 'default') - $button-border-width,
|
|
79
|
+
map.get($button-font-size, 'default'),
|
|
80
|
+
map.get($button-border-radius, 'default')
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::-moz-focus-inner {
|
|
85
|
+
border: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& [class*='#{$namespace}-icon'] {
|
|
89
|
+
& + span {
|
|
90
|
+
margin-left: map.get($button-icon-span-gap, 'default');
|
|
91
|
+
}
|
|
92
|
+
svg {
|
|
93
|
+
vertical-align: bottom;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include when(plain) {
|
|
98
|
+
@include css-var-from-global(
|
|
99
|
+
('button', 'hover', 'text-color'),
|
|
100
|
+
('color', 'primary')
|
|
101
|
+
);
|
|
102
|
+
@include css-var-from-global(
|
|
103
|
+
('button', 'hover', 'bg-color'),
|
|
104
|
+
('fill-color', 'blank')
|
|
105
|
+
);
|
|
106
|
+
@include css-var-from-global(
|
|
107
|
+
('button', 'hover', 'border-color'),
|
|
108
|
+
('color', 'primary')
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@include when(active) {
|
|
113
|
+
color: getCssVar('button', 'active', 'text-color');
|
|
114
|
+
border-color: getCssVar('button', 'active', 'border-color');
|
|
115
|
+
background-color: getCssVar('button', 'active', 'bg-color');
|
|
116
|
+
outline: none;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@include when(disabled) {
|
|
120
|
+
&,
|
|
121
|
+
&:hover {
|
|
122
|
+
color: getCssVar('button', 'disabled', 'text-color');
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
background-image: none;
|
|
125
|
+
background-color: getCssVar('button', 'disabled', 'bg-color');
|
|
126
|
+
border-color: getCssVar('button', 'disabled', 'border-color');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@include when(loading) {
|
|
131
|
+
position: relative;
|
|
132
|
+
pointer-events: none;
|
|
133
|
+
|
|
134
|
+
&:before {
|
|
135
|
+
// mask the button
|
|
136
|
+
z-index: 1;
|
|
137
|
+
pointer-events: none;
|
|
138
|
+
content: '';
|
|
139
|
+
position: absolute;
|
|
140
|
+
left: -1px;
|
|
141
|
+
top: -1px;
|
|
142
|
+
right: -1px;
|
|
143
|
+
bottom: -1px;
|
|
144
|
+
border-radius: inherit;
|
|
145
|
+
background-color: getCssVar('mask-color', 'extra-light');
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
@include when(round) {
|
|
149
|
+
border-radius: getCssVar('border-radius', 'round');
|
|
150
|
+
}
|
|
151
|
+
@include when(circle) {
|
|
152
|
+
width: map.get($input-height, 'default');
|
|
153
|
+
border-radius: 50%;
|
|
154
|
+
padding: map.get($button-padding-vertical, 'default') - $button-border-width;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@include when(text) {
|
|
158
|
+
color: getCssVar('button', 'text-color');
|
|
159
|
+
border: 0 solid transparent;
|
|
160
|
+
background-color: transparent;
|
|
161
|
+
|
|
162
|
+
@include when(disabled) {
|
|
163
|
+
color: getCssVar('button', 'disabled', 'text-color');
|
|
164
|
+
background-color: transparent !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:not(.is-disabled) {
|
|
168
|
+
&:hover {
|
|
169
|
+
background-color: getCssVar('fill-color', 'light');
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&:focus-visible {
|
|
173
|
+
outline: 2px solid getCssVar('button', 'outline-color');
|
|
174
|
+
outline-offset: 1px;
|
|
175
|
+
transition: outline-offset 0s, outline 0s;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&:active {
|
|
179
|
+
background-color: getCssVar('fill-color');
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@include when(has-bg) {
|
|
183
|
+
background-color: getCssVar('fill-color', 'light');
|
|
184
|
+
|
|
185
|
+
&:hover {
|
|
186
|
+
background-color: getCssVar('fill-color');
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&:active {
|
|
190
|
+
background-color: getCssVar('fill-color', 'dark');
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@include e(text) {
|
|
197
|
+
@include m(expand) {
|
|
198
|
+
letter-spacing: 0.3em;
|
|
199
|
+
margin-right: -0.3em;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@include when(link) {
|
|
204
|
+
border-color: transparent;
|
|
205
|
+
color: getCssVar('button', 'text-color');
|
|
206
|
+
background: transparent;
|
|
207
|
+
padding: 2px;
|
|
208
|
+
height: auto;
|
|
209
|
+
|
|
210
|
+
&:hover {
|
|
211
|
+
color: getCssVar('button', 'hover', 'link-text-color');
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@include when(disabled) {
|
|
215
|
+
color: getCssVar('button', 'disabled', 'text-color');
|
|
216
|
+
background-color: transparent !important;
|
|
217
|
+
border-color: transparent !important;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&:not(.is-disabled) {
|
|
221
|
+
&:hover {
|
|
222
|
+
border-color: transparent;
|
|
223
|
+
background-color: transparent;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&:active {
|
|
227
|
+
color: getCssVar('button', 'active-color');
|
|
228
|
+
border-color: transparent;
|
|
229
|
+
background-color: transparent;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@include m(text) {
|
|
235
|
+
border-color: transparent;
|
|
236
|
+
background: transparent;
|
|
237
|
+
color: getCssVar('color', 'primary');
|
|
238
|
+
padding-left: 0;
|
|
239
|
+
padding-right: 0;
|
|
240
|
+
@include when(disabled) {
|
|
241
|
+
color: getCssVar('button', 'disabled', 'text-color');
|
|
242
|
+
background-color: transparent !important;
|
|
243
|
+
border-color: transparent !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&:not(.is-disabled) {
|
|
247
|
+
&:hover {
|
|
248
|
+
color: getCssVar('color', 'primary', 'light-3');
|
|
249
|
+
border-color: transparent;
|
|
250
|
+
background-color: transparent;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&:active {
|
|
254
|
+
color: getCssVar('color', 'primary', 'dark-2');
|
|
255
|
+
border-color: transparent;
|
|
256
|
+
background-color: transparent;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@include e(link) {
|
|
262
|
+
@include m(expand) {
|
|
263
|
+
letter-spacing: 0.3em;
|
|
264
|
+
margin-right: -0.3em;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@each $type in (primary, success, warning, danger, info) {
|
|
269
|
+
@include m($type) {
|
|
270
|
+
@include button-variant($type);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@each $size in (large, small) {
|
|
275
|
+
@include m($size) {
|
|
276
|
+
@include set-css-var-value(
|
|
277
|
+
('button', 'size'),
|
|
278
|
+
map.get($input-height, $size)
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
height: getCssVar('button', 'size');
|
|
282
|
+
|
|
283
|
+
& [class*='#{$namespace}-icon'] {
|
|
284
|
+
& + span {
|
|
285
|
+
margin-left: map.get($button-icon-span-gap, $size);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
& {
|
|
290
|
+
@include button-size(
|
|
291
|
+
map.get($button-padding-vertical, $size) - $button-border-width,
|
|
292
|
+
map.get($button-padding-horizontal, $size) - $button-border-width,
|
|
293
|
+
map.get($button-font-size, $size),
|
|
294
|
+
map.get($button-border-radius, $size)
|
|
295
|
+
);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@include when(circle) {
|
|
299
|
+
width: getCssVar('button', 'size');
|
|
300
|
+
padding: map.get($button-padding-vertical, $size) - $button-border-width;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|