@qsxy/element-plus-react 1.0.0-next.18 → 1.0.0-next.21
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/README.md +12 -39
- package/dist/Breadcrumb/BreadcrumbItem.js +4 -7
- package/dist/Switch/Switch.js +50 -17
- package/dist/Switch/typings.d.ts +4 -0
- package/dist/Tooltip/Tooltip.js +2 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/package.json +1 -2
- package/theme-chalk/{avatar/index.scss → avatar.scss} +1 -1
- package/theme-chalk/{badge/index.scss → badge.scss} +1 -1
- package/theme-chalk/{breadcrumb/index.scss → breadcrumb.scss} +1 -1
- package/theme-chalk/build.scss +1 -1
- package/theme-chalk/button/_mixins.scss +3 -3
- package/theme-chalk/button/button-group.scss +1 -1
- package/theme-chalk/button/button.scss +2 -2
- package/theme-chalk/button/index.scss +2 -2
- package/theme-chalk/button--bak/_mixins.scss +317 -0
- package/theme-chalk/button--bak/button-group.scss +83 -0
- package/theme-chalk/button--bak/button.scss +382 -0
- package/theme-chalk/button--bak/index.scss +2 -0
- package/theme-chalk/button-group.scss +80 -0
- package/theme-chalk/button.scss +304 -0
- package/theme-chalk/calendar/date-picker.scss +1 -1
- package/theme-chalk/calendar/date-range-picker.scss +1 -1
- package/theme-chalk/calendar/date-table.scss +164 -156
- package/theme-chalk/calendar/date-table.scss--bak +156 -0
- package/theme-chalk/calendar/index.scss +6 -6
- package/theme-chalk/calendar/month-table.scss +1 -1
- package/theme-chalk/calendar/picker-panel.scss +1 -1
- package/theme-chalk/calendar/year-table.scss +1 -1
- package/theme-chalk/{card/index.scss → card.scss} +1 -1
- package/theme-chalk/{carousel/index.scss → carousel.scss} +1 -1
- package/theme-chalk/{cascader/cascader-panel.scss → cascader-panel.scss} +1 -1
- package/theme-chalk/{cascader/cascader.scss → cascader.scss} +1 -1
- package/theme-chalk/{checkbox-button/index.scss → checkbox-button.scss} +1 -1
- package/theme-chalk/{checkbox-group/index.scss → checkbox-group.scss} +1 -1
- package/theme-chalk/{checkbox/index.scss → checkbox.scss} +2 -1
- package/theme-chalk/col/_mixins.scss +5 -3
- package/theme-chalk/col/index.scss +2 -2
- package/theme-chalk/{collapse/index.scss → collapse.scss} +1 -1
- package/theme-chalk/color/index.scss +20 -0
- package/theme-chalk/{color-picker/index.scss → color-picker.scss} +3 -3
- package/theme-chalk/common/index.scss +127 -178
- package/theme-chalk/common/var.scss +1632 -0
- package/theme-chalk/dark/css-vars.scss +39 -0
- package/theme-chalk/dark/var.scss +225 -0
- package/theme-chalk/{date-picker/index.scss → date-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-picker.scss → date-time-picker.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions-item.scss → descriptions-item.scss} +1 -1
- package/theme-chalk/{descriptions/descriptions.scss → descriptions.scss} +1 -1
- package/theme-chalk/dev.scss +2 -2
- package/theme-chalk/{dialog/index.scss → dialog.scss} +1 -1
- package/theme-chalk/display.scss +1 -1
- package/theme-chalk/{divider/index.scss → divider.scss} +1 -1
- package/theme-chalk/doc.scss +2 -2
- package/theme-chalk/{drawer/index.scss → drawer.scss} +1 -1
- package/theme-chalk/{dropdown/index.scss → dropdown.scss} +1 -1
- package/theme-chalk/{empty/index.scss → empty.scss} +1 -1
- package/theme-chalk/{form/index.scss → form.scss} +1 -1
- package/theme-chalk/icon/fonts.scss +9 -9
- package/theme-chalk/icon/index.scss +1 -1
- package/theme-chalk/icon/scss/_animated.scss +1 -0
- package/theme-chalk/icon/scss/_bordered-pulled.scss +1 -0
- package/theme-chalk/icon/scss/_core.scss +2 -0
- package/theme-chalk/icon/scss/_duotone-icons.scss +3 -4
- package/theme-chalk/icon/scss/_fixed-width.scss +1 -0
- package/theme-chalk/icon/scss/_functions.scss +2 -1
- package/theme-chalk/icon/scss/_icons.scss +3 -4
- package/theme-chalk/icon/scss/_list.scss +1 -0
- package/theme-chalk/icon/scss/_mixins.scss +10 -7
- package/theme-chalk/icon/scss/_rotated-flipped.scss +1 -0
- package/theme-chalk/icon/scss/_screen-reader.scss +2 -0
- package/theme-chalk/icon/scss/_shims.scss +292 -290
- package/theme-chalk/icon/scss/_sizing.scss +2 -0
- package/theme-chalk/icon/scss/_stacked.scss +1 -0
- package/theme-chalk/icon/scss/brands.scss +8 -6
- package/theme-chalk/icon/scss/duotone.scss +6 -5
- package/theme-chalk/icon/scss/fontawesome.scss +13 -13
- package/theme-chalk/icon/scss/index.scss +12 -15
- package/theme-chalk/icon/scss/light.scss +3 -2
- package/theme-chalk/icon/scss/regular.scss +3 -2
- package/theme-chalk/icon/scss/solid.scss +3 -2
- package/theme-chalk/icon/scss/thin.scss +3 -2
- package/theme-chalk/icon/scss/{_variables.scss → variables.scss} +2 -0
- package/theme-chalk/index.scss +63 -57
- package/theme-chalk/input/_mixins.scss +1 -1
- package/theme-chalk/input/index.scss +2 -3
- package/theme-chalk/input/input-range.scss +2 -1
- package/theme-chalk/input/input.scss +2 -1
- package/theme-chalk/{input-number/index.scss → input-number.scss} +4 -4
- package/theme-chalk/{link/index.scss → link.scss} +1 -1
- package/theme-chalk/{loading/index.scss → loading.scss} +1 -1
- package/theme-chalk/{message-box/index.scss → message-box.scss} +1 -1
- package/theme-chalk/{message/index.scss → message.scss} +2 -1
- package/theme-chalk/mixins/_button.scss +224 -0
- package/theme-chalk/mixins/_col.scss +33 -0
- package/theme-chalk/mixins/_var.scss +67 -0
- package/theme-chalk/{common/_var.scss → mixins/config.scss} +5 -6
- package/theme-chalk/mixins/function.scss +99 -0
- package/theme-chalk/mixins/mixins.scss +240 -0
- package/theme-chalk/mixins/utils.scss +39 -0
- package/theme-chalk/{notification/index.scss → notification.scss} +2 -1
- package/theme-chalk/pagination.scss +303 -0
- package/theme-chalk/{popconfirm/index.scss → popconfirm.scss} +1 -1
- package/theme-chalk/{popover/index.scss → popover.scss} +1 -1
- package/theme-chalk/popper.scss +104 -0
- package/theme-chalk/{popper/index.scss → popper.scss--bak} +1 -1
- package/theme-chalk/{progress/index.scss → progress.scss} +1 -1
- package/theme-chalk/radio-button.scss +169 -0
- package/theme-chalk/{radio/radio-button.scss → radio-button.scss--bak} +1 -1
- package/theme-chalk/{radio-group/index.scss → radio-group.scss} +1 -10
- package/theme-chalk/{radio/radio.scss → radio.scss} +1 -1
- package/theme-chalk/{row/index.scss → row.scss} +1 -1
- package/theme-chalk/{scrollbar/index.scss → scrollbar.scss} +1 -1
- package/theme-chalk/select/index.scss +1 -1
- package/theme-chalk/{skeleton/index.scss → skeleton.scss} +1 -1
- package/theme-chalk/switch.scss +300 -0
- package/theme-chalk/{switch/index.scss → switch.scss--bak} +1 -1
- package/theme-chalk/{table/index.scss → table.scss} +1 -1
- package/theme-chalk/{tabs/index.scss → tabs.scss} +1 -1
- package/theme-chalk/{tag/index.scss → tag.scss} +1 -1
- package/theme-chalk/{time-line/_timeline.scss → time-line.scss} +1 -1
- package/theme-chalk/{time-picker/index.scss → time-picker.scss} +1 -1
- package/theme-chalk/{date-time-picker/time-range-picker.scss → time-range-picker.scss} +1 -1
- package/theme-chalk/{time-line/_timeline-item.scss → timeline-item.scss} +1 -1
- package/theme-chalk/{tooltip/index.scss → tooltip.scss} +1 -1
- package/theme-chalk/{transfer/index.scss → transfer.scss} +1 -1
- package/theme-chalk/{transition/index.scss → transition.scss} +1 -1
- package/theme-chalk/tree/_directory.scss +1 -1
- package/theme-chalk/tree/_tree.scss +1 -1
- package/theme-chalk/tree/index.scss +2 -2
- package/theme-chalk/{tree-select/index.scss → tree-select.scss} +1 -1
- package/theme-chalk/{upload/index.scss → upload.scss} +1 -1
- package/theme-chalk/var.scss +83 -0
- package/theme-chalk/cascader/index.scss +0 -2
- package/theme-chalk/common/index.ts +0 -1
- package/theme-chalk/date-time-picker/index.scss +0 -3
- package/theme-chalk/descriptions/index.scss +0 -2
- package/theme-chalk/icon/scss/v4-shims.scss +0 -3
- package/theme-chalk/pagination/index.scss +0 -303
- package/theme-chalk/placeholder/index.scss +0 -120
- package/theme-chalk/radio/index.scss +0 -2
- package/theme-chalk/time-line/index.scss +0 -2
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
@use '../../common/var' as *;
|
|
3
|
+
@use 'functions' as *;
|
|
4
|
+
@use 'variables' as *;
|
|
3
5
|
|
|
4
6
|
:root,
|
|
5
7
|
:host {
|
|
6
|
-
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 '
|
|
8
|
+
--#{$fa-css-prefix}-font-brands: normal 400 1em/1 '#{ $fa-style-family }';
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
@font-face {
|
|
10
|
-
font-family:
|
|
12
|
+
font-family: #{$fa-style-family};
|
|
11
13
|
font-style: normal;
|
|
12
14
|
font-weight: 400;
|
|
13
15
|
font-display: $fa-font-display;
|
|
@@ -16,12 +18,12 @@
|
|
|
16
18
|
|
|
17
19
|
.fab,
|
|
18
20
|
.#{$fa-css-prefix}-brands {
|
|
19
|
-
font-family:
|
|
21
|
+
font-family: #{$fa-style-family};
|
|
20
22
|
font-weight: 400;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
@each $name, $icon in $fa-brand-icons {
|
|
24
26
|
.#{$fa-css-prefix}-#{$name}:before {
|
|
25
|
-
content: unquote('"#{ $icon }"');
|
|
27
|
+
content: string.unquote('"#{ $icon }"');
|
|
26
28
|
}
|
|
27
29
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use '../../common/var' as *;
|
|
2
|
+
@use 'functions' as *;
|
|
3
|
+
@use 'variables' as *;
|
|
3
4
|
|
|
4
5
|
:root,
|
|
5
6
|
:host {
|
|
6
|
-
--#{$fa-css-prefix}-font-duotone: normal 900 1em/1 '
|
|
7
|
+
--#{$fa-css-prefix}-font-duotone: normal 900 1em/1 '#{ $fa-style-family } Duotone';
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
@font-face {
|
|
10
|
-
font-family: '
|
|
11
|
+
font-family: '#{ $fa-style-family } Duotone';
|
|
11
12
|
font-style: normal;
|
|
12
13
|
font-weight: 900;
|
|
13
14
|
font-display: $fa-font-display;
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
.fad,
|
|
18
19
|
.#{$fa-css-prefix}-duotone {
|
|
19
20
|
position: relative;
|
|
20
|
-
font-family: '
|
|
21
|
+
font-family: '#{ $fa-style-family } Duotone';
|
|
21
22
|
font-weight: 900;
|
|
22
23
|
letter-spacing: normal;
|
|
23
24
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
1
|
+
@use 'functions';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
@use 'mixins';
|
|
4
|
+
@use 'core';
|
|
5
|
+
@use 'sizing';
|
|
6
|
+
@use 'fixed-width';
|
|
7
|
+
@use 'list';
|
|
8
|
+
@use 'bordered-pulled';
|
|
9
|
+
@use 'animated';
|
|
10
|
+
@use 'rotated-flipped';
|
|
11
|
+
@use 'stacked';
|
|
12
|
+
@use 'icons';
|
|
13
|
+
@use 'screen-reader';
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@import 'screen-reader';
|
|
14
|
-
@import 'duotone-icons';
|
|
15
|
-
@import 'shims';
|
|
1
|
+
@use 'core';
|
|
2
|
+
@use 'sizing';
|
|
3
|
+
@use 'fixed-width';
|
|
4
|
+
@use 'list';
|
|
5
|
+
@use 'bordered-pulled';
|
|
6
|
+
@use 'animated';
|
|
7
|
+
@use 'rotated-flipped';
|
|
8
|
+
@use 'stacked';
|
|
9
|
+
@use 'icons';
|
|
10
|
+
@use 'screen-reader';
|
|
11
|
+
@use 'duotone-icons';
|
|
12
|
+
@use 'shims';
|
package/theme-chalk/index.scss
CHANGED
|
@@ -1,67 +1,73 @@
|
|
|
1
1
|
/* Basic 基础组件 */
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
2
|
+
@use './var';
|
|
3
|
+
@use './link';
|
|
4
|
+
@use './button';
|
|
5
|
+
@use './button-group';
|
|
6
|
+
@use './icon/fonts';
|
|
7
|
+
@use './icon';
|
|
8
|
+
@use './row';
|
|
9
|
+
@use './col';
|
|
10
|
+
@use './scrollbar';
|
|
11
|
+
@use './popper';
|
|
12
|
+
@use './transition';
|
|
12
13
|
|
|
13
|
-
/* Form 表单组件 */
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
30
|
-
@
|
|
31
|
-
@
|
|
32
|
-
@
|
|
14
|
+
// /* Form 表单组件 */
|
|
15
|
+
@use './cascader';
|
|
16
|
+
@use './cascader-panel';
|
|
17
|
+
@use './carousel';
|
|
18
|
+
@use './checkbox';
|
|
19
|
+
@use './checkbox-button';
|
|
20
|
+
@use './checkbox-group';
|
|
21
|
+
@use './color-picker';
|
|
22
|
+
@use './radio';
|
|
23
|
+
@use './radio-button';
|
|
24
|
+
@use './radio-group';
|
|
25
|
+
@use './input';
|
|
26
|
+
@use './input-number';
|
|
27
|
+
@use './select';
|
|
28
|
+
@use './calendar';
|
|
29
|
+
@use './date-picker';
|
|
30
|
+
@use './date-time-picker';
|
|
31
|
+
@use './time-range-picker';
|
|
32
|
+
@use './time-picker';
|
|
33
|
+
@use './switch';
|
|
34
|
+
@use './transfer';
|
|
35
|
+
@use './form';
|
|
36
|
+
@use './upload';
|
|
33
37
|
|
|
34
38
|
/* Data 数据展示 */
|
|
35
|
-
@
|
|
36
|
-
@
|
|
37
|
-
@
|
|
38
|
-
@
|
|
39
|
-
@
|
|
40
|
-
@
|
|
41
|
-
@
|
|
42
|
-
@
|
|
43
|
-
@
|
|
44
|
-
@
|
|
45
|
-
@
|
|
46
|
-
@
|
|
39
|
+
@use './avatar';
|
|
40
|
+
@use './badge';
|
|
41
|
+
@use './card';
|
|
42
|
+
@use './collapse';
|
|
43
|
+
@use './descriptions';
|
|
44
|
+
@use './descriptions-item';
|
|
45
|
+
@use './pagination';
|
|
46
|
+
@use './progress';
|
|
47
|
+
@use './table';
|
|
48
|
+
@use './time-line';
|
|
49
|
+
@use './timeline-item';
|
|
50
|
+
@use './tree';
|
|
51
|
+
@use './tree-select';
|
|
52
|
+
@use './tag';
|
|
47
53
|
|
|
48
54
|
// /* Navigation 导航 */
|
|
49
|
-
@
|
|
50
|
-
@
|
|
51
|
-
@
|
|
52
|
-
@
|
|
53
|
-
@
|
|
55
|
+
@use './breadcrumb';
|
|
56
|
+
@use './dropdown';
|
|
57
|
+
@use './tabs';
|
|
58
|
+
@use './empty';
|
|
59
|
+
@use './skeleton';
|
|
54
60
|
|
|
55
61
|
/* Feedback 反馈组件 */
|
|
56
|
-
@
|
|
57
|
-
@
|
|
58
|
-
@
|
|
59
|
-
@
|
|
60
|
-
@
|
|
61
|
-
@
|
|
62
|
-
@
|
|
63
|
-
@
|
|
64
|
-
@
|
|
62
|
+
@use './dialog';
|
|
63
|
+
@use './drawer';
|
|
64
|
+
@use './loading';
|
|
65
|
+
@use './message';
|
|
66
|
+
@use './message-box';
|
|
67
|
+
@use './notification';
|
|
68
|
+
@use './tooltip';
|
|
69
|
+
@use './popconfirm';
|
|
70
|
+
@use './popover';
|
|
65
71
|
|
|
66
72
|
/* Others 其他 */
|
|
67
|
-
@
|
|
73
|
+
@use './divider';
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@import './input-range.scss';
|
|
1
|
+
@use './input.scss';
|
|
2
|
+
@use './input-range.scss';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use './mixins/config' as *;
|
|
2
2
|
|
|
3
3
|
@use 'sass:map';
|
|
4
4
|
@use 'sass:math';
|
|
@@ -97,7 +97,7 @@ $input-height: map.merge(
|
|
|
97
97
|
|
|
98
98
|
@each $size in (large, small) {
|
|
99
99
|
&.#{$namespace}-input-number--#{$size} {
|
|
100
|
-
line-height: #{map.get($input-height, $size) -
|
|
100
|
+
line-height: calc(#{map.get($input-height, $size)} - 2px);
|
|
101
101
|
|
|
102
102
|
.#{$namespace}-input-number__increase,
|
|
103
103
|
.#{$namespace}-input-number__decrease {
|
|
@@ -106,8 +106,8 @@ $input-height: map.merge(
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
.#{$namespace}-input__wrapper {
|
|
109
|
-
padding-left: #{map.get($input-height, $size) +
|
|
110
|
-
padding-right: #{map.get($input-height, $size) +
|
|
109
|
+
padding-left: calc(#{map.get($input-height, $size)} + 7px);
|
|
110
|
+
padding-right: calc(#{map.get($input-height, $size)} + 7px);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
@use '../mixins/var' as *;
|
|
2
|
+
@use '../mixins/function' as *;
|
|
3
|
+
@use '../common/var' as *;
|
|
4
|
+
|
|
5
|
+
@mixin button-plain($type) {
|
|
6
|
+
$button-color-types: (
|
|
7
|
+
'': (
|
|
8
|
+
'text-color': (
|
|
9
|
+
'color',
|
|
10
|
+
$type,
|
|
11
|
+
),
|
|
12
|
+
'bg-color': (
|
|
13
|
+
'color',
|
|
14
|
+
$type,
|
|
15
|
+
'light-9',
|
|
16
|
+
),
|
|
17
|
+
'border-color': (
|
|
18
|
+
'color',
|
|
19
|
+
$type,
|
|
20
|
+
'light-5',
|
|
21
|
+
),
|
|
22
|
+
),
|
|
23
|
+
'hover': (
|
|
24
|
+
'text-color': (
|
|
25
|
+
'color',
|
|
26
|
+
'white',
|
|
27
|
+
),
|
|
28
|
+
'bg-color': (
|
|
29
|
+
'color',
|
|
30
|
+
$type,
|
|
31
|
+
),
|
|
32
|
+
'border-color': (
|
|
33
|
+
'color',
|
|
34
|
+
$type,
|
|
35
|
+
),
|
|
36
|
+
),
|
|
37
|
+
'active': (
|
|
38
|
+
'text-color': (
|
|
39
|
+
'color',
|
|
40
|
+
'white',
|
|
41
|
+
),
|
|
42
|
+
),
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
@each $type, $typeMap in $button-color-types {
|
|
46
|
+
@each $typeColor, $list in $typeMap {
|
|
47
|
+
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.is-disabled {
|
|
52
|
+
&,
|
|
53
|
+
&:hover,
|
|
54
|
+
&:focus,
|
|
55
|
+
&:active {
|
|
56
|
+
color: getCssVar('color', $type, 'light-5');
|
|
57
|
+
background-color: getCssVar('color', $type, 'light-9');
|
|
58
|
+
border-color: getCssVar('color', $type, 'light-8');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin button-dashed($type) {
|
|
64
|
+
$button-color-types: (
|
|
65
|
+
'': (
|
|
66
|
+
'text-color': (
|
|
67
|
+
'color',
|
|
68
|
+
$type,
|
|
69
|
+
),
|
|
70
|
+
'bg-color': (
|
|
71
|
+
'fill-color-blank',
|
|
72
|
+
),
|
|
73
|
+
'border-color': (
|
|
74
|
+
'color',
|
|
75
|
+
$type,
|
|
76
|
+
),
|
|
77
|
+
),
|
|
78
|
+
'hover': (
|
|
79
|
+
'text-color': (
|
|
80
|
+
'color',
|
|
81
|
+
$type,
|
|
82
|
+
'light-3',
|
|
83
|
+
),
|
|
84
|
+
'bg-color': (
|
|
85
|
+
'fill-color-blank',
|
|
86
|
+
),
|
|
87
|
+
'border-color': (
|
|
88
|
+
'color',
|
|
89
|
+
$type,
|
|
90
|
+
'light-3',
|
|
91
|
+
),
|
|
92
|
+
),
|
|
93
|
+
'active': (
|
|
94
|
+
'text-color': (
|
|
95
|
+
'color',
|
|
96
|
+
$type,
|
|
97
|
+
),
|
|
98
|
+
'border-color': (
|
|
99
|
+
'color',
|
|
100
|
+
$type,
|
|
101
|
+
),
|
|
102
|
+
),
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
@each $type, $typeMap in $button-color-types {
|
|
106
|
+
@each $typeColor, $list in $typeMap {
|
|
107
|
+
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.is-disabled {
|
|
112
|
+
&,
|
|
113
|
+
&:hover,
|
|
114
|
+
&:focus,
|
|
115
|
+
&:active {
|
|
116
|
+
color: getCssVar('color', $type, 'light-5');
|
|
117
|
+
background-color: getCssVar('fill-color-blank');
|
|
118
|
+
border-color: getCssVar('color', $type, 'light-8');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@mixin button-variant($type) {
|
|
124
|
+
$button-color-types: (
|
|
125
|
+
'': (
|
|
126
|
+
'text-color': (
|
|
127
|
+
'color',
|
|
128
|
+
'white',
|
|
129
|
+
),
|
|
130
|
+
'bg-color': (
|
|
131
|
+
'color',
|
|
132
|
+
$type,
|
|
133
|
+
),
|
|
134
|
+
'border-color': (
|
|
135
|
+
'color',
|
|
136
|
+
$type,
|
|
137
|
+
),
|
|
138
|
+
'outline-color': (
|
|
139
|
+
'color',
|
|
140
|
+
$type,
|
|
141
|
+
'light-5',
|
|
142
|
+
),
|
|
143
|
+
'active-color': (
|
|
144
|
+
'color',
|
|
145
|
+
$type,
|
|
146
|
+
'dark-2',
|
|
147
|
+
),
|
|
148
|
+
),
|
|
149
|
+
'hover': (
|
|
150
|
+
'text-color': (
|
|
151
|
+
'color',
|
|
152
|
+
'white',
|
|
153
|
+
),
|
|
154
|
+
'link-text-color': (
|
|
155
|
+
'color',
|
|
156
|
+
$type,
|
|
157
|
+
'light-5',
|
|
158
|
+
),
|
|
159
|
+
'bg-color': (
|
|
160
|
+
'color',
|
|
161
|
+
$type,
|
|
162
|
+
'light-3',
|
|
163
|
+
),
|
|
164
|
+
'border-color': (
|
|
165
|
+
'color',
|
|
166
|
+
$type,
|
|
167
|
+
'light-3',
|
|
168
|
+
),
|
|
169
|
+
),
|
|
170
|
+
'active': (
|
|
171
|
+
'bg-color': (
|
|
172
|
+
'color',
|
|
173
|
+
$type,
|
|
174
|
+
'dark-2',
|
|
175
|
+
),
|
|
176
|
+
'border-color': (
|
|
177
|
+
'color',
|
|
178
|
+
$type,
|
|
179
|
+
'dark-2',
|
|
180
|
+
),
|
|
181
|
+
),
|
|
182
|
+
'disabled': (
|
|
183
|
+
'text-color': (
|
|
184
|
+
'color',
|
|
185
|
+
'white',
|
|
186
|
+
),
|
|
187
|
+
'bg-color': (
|
|
188
|
+
'color',
|
|
189
|
+
$type,
|
|
190
|
+
'light-5',
|
|
191
|
+
),
|
|
192
|
+
'border-color': (
|
|
193
|
+
'color',
|
|
194
|
+
$type,
|
|
195
|
+
'light-5',
|
|
196
|
+
),
|
|
197
|
+
),
|
|
198
|
+
);
|
|
199
|
+
|
|
200
|
+
@each $type, $typeMap in $button-color-types {
|
|
201
|
+
@each $typeColor, $list in $typeMap {
|
|
202
|
+
@include css-var-from-global(('button', $type, $typeColor), $list);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&.is-plain,
|
|
207
|
+
&.is-text,
|
|
208
|
+
&.is-link {
|
|
209
|
+
@include button-plain($type);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&.is-dashed {
|
|
213
|
+
@include button-dashed($type);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
|
|
218
|
+
padding: $padding-vertical $padding-horizontal;
|
|
219
|
+
font-size: $font-size;
|
|
220
|
+
border-radius: $border-radius;
|
|
221
|
+
&.is-round {
|
|
222
|
+
padding: $padding-vertical $padding-horizontal;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
@use '../common/var' as *;
|
|
4
|
+
@use './mixins' as *;
|
|
5
|
+
|
|
6
|
+
@mixin col-size($size) {
|
|
7
|
+
@include res($size) {
|
|
8
|
+
@for $i from 0 through 24 {
|
|
9
|
+
.#{$namespace}-col-#{$size}-#{$i} {
|
|
10
|
+
display: if($i == 0, none, block);
|
|
11
|
+
max-width: (math.div(1, 24) * $i * 100) * 1%;
|
|
12
|
+
flex: 0 0 (math.div(1, 24) * $i * 100) * 1%;
|
|
13
|
+
@include when(guttered) {
|
|
14
|
+
display: if($i == 0, none, block);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.#{$namespace}-col-#{$size}-offset-#{$i} {
|
|
19
|
+
margin-left: (math.div(1, 24) * $i * 100) * 1%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.#{$namespace}-col-#{$size}-pull-#{$i} {
|
|
23
|
+
position: relative;
|
|
24
|
+
right: (math.div(1, 24) * $i * 100) * 1%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.#{$namespace}-col-#{$size}-push-#{$i} {
|
|
28
|
+
position: relative;
|
|
29
|
+
left: (math.div(1, 24) * $i * 100) * 1%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|