zartui 0.1.21 → 0.1.22
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 +20 -20
- package/changelog.generated.md +29 -0
- package/es/area/style/index.js +4 -0
- package/es/area/style/less.js +4 -0
- package/es/avatar/index.css +1 -1
- package/es/avatar/index.js +41 -27
- package/es/avatar/index.less +40 -11
- package/es/avatar/local.less +1 -1
- package/es/button/index.less +206 -206
- package/es/calendar/index.less +250 -250
- package/es/calendar/style/index.js +1 -1
- package/es/calendar/style/less.js +1 -1
- package/es/cell/index.less +103 -103
- package/es/cell-group/index.less +22 -22
- package/es/checkbox/index.less +89 -89
- package/es/checkbox-group/index.less +8 -8
- package/es/col/index.less +20 -20
- package/es/datetime-picker/style/index.js +4 -0
- package/es/datetime-picker/style/less.js +4 -0
- package/es/dialog/index.less +125 -125
- package/es/dialog/style/index.js +1 -1
- package/es/dialog/style/less.js +1 -1
- package/es/empty/Developing.js +1643 -0
- package/es/empty/Error.js +484 -0
- package/es/empty/NotFound.js +645 -0
- package/es/empty/NotRight.js +395 -0
- package/es/empty/Search.js +336 -0
- package/es/empty/index.css +1 -0
- package/es/empty/index.js +105 -0
- package/es/empty/index.less +33 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/less.js +2 -0
- package/es/field/index.less +172 -172
- package/es/icon/index.less +10 -10
- package/es/icon/local.less +1 -1
- package/es/image/index.less +47 -47
- package/es/image-preview/index.less +103 -103
- package/es/image-preview/style/index.js +1 -1
- package/es/image-preview/style/less.js +1 -1
- package/es/index.js +5 -3
- package/es/info/index.less +29 -29
- package/es/loading/index.less +103 -103
- package/es/locale/lang/zh-CN.js +16 -0
- package/es/mixins/bind-event.js +2 -2
- package/es/mixins/checkbox.js +2 -2
- package/es/mixins/click-outside.js +2 -2
- package/es/mixins/slots.js +3 -3
- package/es/nav-bar/index.less +74 -74
- package/es/number-keyboard/index.less +142 -142
- package/es/overlay/index.less +11 -11
- package/es/password-input/index.css +1 -0
- package/es/password-input/index.js +80 -0
- package/es/password-input/index.less +83 -0
- package/es/password-input/style/index.js +2 -0
- package/es/password-input/style/less.js +2 -0
- package/es/pdf-viewer/style/index.js +1 -1
- package/es/pdf-viewer/style/less.js +1 -1
- package/es/picker/PickerColumn.js +5 -6
- package/es/picker/index.js +34 -5
- package/es/picker/index.less +151 -151
- package/es/picker/shared.js +4 -0
- package/es/picker/style/index.js +4 -0
- package/es/picker/style/less.js +4 -0
- package/es/popup/index.less +137 -137
- package/es/popup/style/index.js +1 -1
- package/es/popup/style/less.js +1 -1
- package/es/radio/index.less +86 -86
- package/es/radio-group/index.less +8 -8
- package/es/rate/index.css +1 -1
- package/es/rate/index.js +1 -1
- package/es/rate/index.less +47 -47
- package/es/row/index.less +42 -42
- package/es/slider/index.less +94 -94
- package/es/step/index.less +139 -139
- package/es/stepper/index.less +130 -130
- package/es/steps/index.less +21 -21
- package/es/sticky/index.less +11 -11
- package/es/style/animation.less +139 -139
- package/es/style/base.less +11 -11
- package/es/style/clearfix.less +5 -5
- package/es/style/ellipsis.less +13 -13
- package/es/style/hairline.less +47 -47
- package/es/style/halfPxBorder.less +15 -15
- package/es/style/mixins/clearfix.less +7 -7
- package/es/style/mixins/ellipsis.less +15 -15
- package/es/style/mixins/hairline.less +39 -39
- package/es/style/normalize.less +38 -38
- package/es/style/reset.less +171 -171
- package/es/style/var.less +936 -919
- package/es/swipe/index.less +56 -56
- package/es/swipe-cell/index.less +29 -29
- package/es/swipe-item/index.less +8 -8
- package/es/switch/index.less +56 -56
- package/es/switch/shared.js +2 -2
- package/es/switch-cell/index.less +15 -15
- package/es/tab/index.less +17 -17
- package/es/tabs/index.less +153 -153
- package/es/tag/index.less +99 -99
- package/es/toast/index.less +75 -75
- package/es/toast/style/index.js +1 -1
- package/es/toast/style/less.js +1 -1
- package/es/uploader/index.less +163 -163
- package/es/uploader/style/index.js +1 -1
- package/es/uploader/style/less.js +1 -1
- package/es/utils/create/bem.js +7 -7
- package/es/utils/create/component.js +2 -2
- package/es/utils/dom/raf.js +2 -2
- package/es/utils/dom/reset-scroll.js +3 -3
- package/es/utils/index.js +29 -29
- package/es/utils/router.js +2 -2
- package/lib/7893e51cf0a4877dac80.worker.js +10 -0
- package/lib/area/style/index.js +4 -0
- package/lib/area/style/less.js +4 -0
- package/lib/avatar/index.css +1 -1
- package/lib/avatar/index.js +42 -28
- package/lib/avatar/index.less +40 -11
- package/lib/avatar/local.less +1 -1
- package/lib/be09b519a460e229fd8d.worker.js +2527 -0
- package/lib/button/index.less +206 -206
- package/lib/calendar/index.less +250 -250
- package/lib/calendar/style/index.js +1 -1
- package/lib/calendar/style/less.js +1 -1
- package/lib/cell/index.less +103 -103
- package/lib/cell-group/index.less +22 -22
- package/lib/checkbox/index.less +89 -89
- package/lib/checkbox-group/index.less +8 -8
- package/lib/col/index.less +20 -20
- package/lib/datetime-picker/style/index.js +4 -0
- package/lib/datetime-picker/style/less.js +4 -0
- package/lib/dialog/index.less +125 -125
- package/lib/dialog/style/index.js +1 -1
- package/lib/dialog/style/less.js +1 -1
- package/lib/empty/Developing.js +1648 -0
- package/lib/empty/Error.js +489 -0
- package/lib/empty/NotFound.js +650 -0
- package/lib/empty/NotRight.js +400 -0
- package/lib/empty/Search.js +341 -0
- package/lib/empty/index.css +1 -0
- package/lib/empty/index.js +119 -0
- package/lib/empty/index.less +33 -0
- package/lib/empty/style/index.js +2 -0
- package/lib/empty/style/less.js +2 -0
- package/lib/field/index.less +172 -172
- package/lib/icon/index.less +10 -10
- package/lib/icon/local.less +1 -1
- package/lib/image/index.less +47 -47
- package/lib/image-preview/index.less +103 -103
- package/lib/image-preview/style/index.js +1 -1
- package/lib/image-preview/style/less.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +10 -2
- package/lib/index.less +5 -3
- package/lib/info/index.less +29 -29
- package/lib/loading/index.less +103 -103
- package/lib/locale/lang/zh-CN.js +16 -0
- package/lib/mixins/bind-event.js +2 -2
- package/lib/mixins/checkbox.js +2 -2
- package/lib/mixins/click-outside.js +2 -2
- package/lib/mixins/slots.js +3 -3
- package/lib/nav-bar/index.less +74 -74
- package/lib/number-keyboard/index.less +142 -142
- package/lib/overlay/index.less +11 -11
- package/lib/password-input/index.css +1 -0
- package/lib/password-input/index.js +93 -0
- package/lib/password-input/index.less +83 -0
- package/lib/password-input/style/index.js +2 -0
- package/lib/password-input/style/less.js +2 -0
- package/lib/pdf-viewer/style/index.js +1 -1
- package/lib/pdf-viewer/style/less.js +1 -1
- package/lib/picker/PickerColumn.js +5 -6
- package/lib/picker/index.js +36 -6
- package/lib/picker/index.less +151 -151
- package/lib/picker/shared.js +4 -0
- package/lib/picker/style/index.js +4 -0
- package/lib/picker/style/less.js +4 -0
- package/lib/popup/index.less +137 -137
- package/lib/popup/style/index.js +1 -1
- package/lib/popup/style/less.js +1 -1
- package/lib/radio/index.less +86 -86
- package/lib/radio-group/index.less +8 -8
- package/lib/rate/index.css +1 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/index.less +47 -47
- package/lib/row/index.less +42 -42
- package/lib/slider/index.less +94 -94
- package/lib/step/index.less +139 -139
- package/lib/stepper/index.less +130 -130
- package/lib/steps/index.less +21 -21
- package/lib/sticky/index.less +11 -11
- package/lib/style/animation.less +139 -139
- package/lib/style/base.less +11 -11
- package/lib/style/clearfix.less +5 -5
- package/lib/style/ellipsis.less +13 -13
- package/lib/style/hairline.less +47 -47
- package/lib/style/halfPxBorder.less +15 -15
- package/lib/style/mixins/clearfix.less +7 -7
- package/lib/style/mixins/ellipsis.less +15 -15
- package/lib/style/mixins/hairline.less +39 -39
- package/lib/style/normalize.less +38 -38
- package/lib/style/reset.less +171 -171
- package/lib/style/var.less +936 -919
- package/lib/swipe/index.less +56 -56
- package/lib/swipe-cell/index.less +29 -29
- package/lib/swipe-item/index.less +8 -8
- package/lib/switch/index.less +56 -56
- package/lib/switch/shared.js +2 -2
- package/lib/switch-cell/index.less +15 -15
- package/lib/tab/index.less +17 -17
- package/lib/tabs/index.less +153 -153
- package/lib/tag/index.less +99 -99
- package/lib/toast/index.less +75 -75
- package/lib/toast/style/index.js +1 -1
- package/lib/toast/style/less.js +1 -1
- package/lib/uploader/index.less +163 -163
- package/lib/uploader/style/index.js +1 -1
- package/lib/uploader/style/less.js +1 -1
- package/lib/utils/create/bem.js +7 -7
- package/lib/utils/create/component.js +2 -2
- package/lib/utils/dom/raf.js +2 -2
- package/lib/utils/dom/reset-scroll.js +3 -3
- package/lib/utils/index.js +29 -29
- package/lib/utils/router.js +2 -2
- package/lib/zart.js +26508 -55081
- package/lib/zart.min.js +5 -5
- package/package.json +74 -74
- package/lib/a037f57fc4d92a8a1f1e.worker.js +0 -60600
- package/lib/b7cf90b4775181215df7.worker.js +0 -10
package/es/cell/index.less
CHANGED
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
@import '../style/mixins/hairline';
|
|
3
|
-
|
|
4
|
-
.zt-cell {
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: @cell-vertical-padding @cell-horizontal-padding;
|
|
10
|
-
overflow: hidden;
|
|
11
|
-
color: @cell-text-color;
|
|
12
|
-
font-size: @cell-font-size;
|
|
13
|
-
line-height: @cell-line-height;
|
|
14
|
-
background-color: @cell-background-color;
|
|
15
|
-
|
|
16
|
-
&::after {
|
|
17
|
-
.hairline-bottom(@cell-border-color, @padding-md, @padding-md);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&:last-child::after,
|
|
21
|
-
&--borderless::after {
|
|
22
|
-
display: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__label {
|
|
26
|
-
margin-top: @cell-label-margin-top;
|
|
27
|
-
color: @cell-label-color;
|
|
28
|
-
font-size: @cell-label-font-size;
|
|
29
|
-
line-height: @cell-label-line-height;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&__title,
|
|
33
|
-
&__value {
|
|
34
|
-
flex: 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&__value {
|
|
38
|
-
position: relative;
|
|
39
|
-
overflow: hidden;
|
|
40
|
-
color: @cell-value-color;
|
|
41
|
-
text-align: right;
|
|
42
|
-
vertical-align: middle;
|
|
43
|
-
word-wrap: break-word;
|
|
44
|
-
|
|
45
|
-
&--alone {
|
|
46
|
-
color: @text-color;
|
|
47
|
-
text-align: left;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&__left-icon,
|
|
52
|
-
&__right-icon {
|
|
53
|
-
height: @cell-line-height;
|
|
54
|
-
font-size: @cell-icon-size;
|
|
55
|
-
line-height: @cell-line-height;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&__left-icon {
|
|
59
|
-
margin-right: @padding-base;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__right-icon {
|
|
63
|
-
margin-left: @padding-base;
|
|
64
|
-
color: @cell-right-icon-color;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&--clickable {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
|
|
70
|
-
&:active {
|
|
71
|
-
background-color: @cell-active-color;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&--required {
|
|
76
|
-
overflow: visible;
|
|
77
|
-
|
|
78
|
-
&::before {
|
|
79
|
-
position: absolute;
|
|
80
|
-
left: @padding-xs;
|
|
81
|
-
color: @cell-required-color;
|
|
82
|
-
font-size: @cell-font-size;
|
|
83
|
-
content: '*';
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
&--center {
|
|
88
|
-
align-items: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
&--large {
|
|
92
|
-
padding-top: @cell-large-vertical-padding;
|
|
93
|
-
padding-bottom: @cell-large-vertical-padding;
|
|
94
|
-
|
|
95
|
-
.zt-cell__title {
|
|
96
|
-
font-size: @cell-large-title-font-size;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.zt-cell__label {
|
|
100
|
-
font-size: @cell-large-label-font-size;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
@import '../style/mixins/hairline';
|
|
3
|
+
|
|
4
|
+
.zt-cell {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
width: 100%;
|
|
9
|
+
padding: @cell-vertical-padding @cell-horizontal-padding;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
color: @cell-text-color;
|
|
12
|
+
font-size: @cell-font-size;
|
|
13
|
+
line-height: @cell-line-height;
|
|
14
|
+
background-color: @cell-background-color;
|
|
15
|
+
|
|
16
|
+
&::after {
|
|
17
|
+
.hairline-bottom(@cell-border-color, @padding-md, @padding-md);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:last-child::after,
|
|
21
|
+
&--borderless::after {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__label {
|
|
26
|
+
margin-top: @cell-label-margin-top;
|
|
27
|
+
color: @cell-label-color;
|
|
28
|
+
font-size: @cell-label-font-size;
|
|
29
|
+
line-height: @cell-label-line-height;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__title,
|
|
33
|
+
&__value {
|
|
34
|
+
flex: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__value {
|
|
38
|
+
position: relative;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
color: @cell-value-color;
|
|
41
|
+
text-align: right;
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
word-wrap: break-word;
|
|
44
|
+
|
|
45
|
+
&--alone {
|
|
46
|
+
color: @text-color;
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__left-icon,
|
|
52
|
+
&__right-icon {
|
|
53
|
+
height: @cell-line-height;
|
|
54
|
+
font-size: @cell-icon-size;
|
|
55
|
+
line-height: @cell-line-height;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__left-icon {
|
|
59
|
+
margin-right: @padding-base;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__right-icon {
|
|
63
|
+
margin-left: @padding-base;
|
|
64
|
+
color: @cell-right-icon-color;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--clickable {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
|
|
70
|
+
&:active {
|
|
71
|
+
background-color: @cell-active-color;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--required {
|
|
76
|
+
overflow: visible;
|
|
77
|
+
|
|
78
|
+
&::before {
|
|
79
|
+
position: absolute;
|
|
80
|
+
left: @padding-xs;
|
|
81
|
+
color: @cell-required-color;
|
|
82
|
+
font-size: @cell-font-size;
|
|
83
|
+
content: '*';
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--center {
|
|
88
|
+
align-items: center;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--large {
|
|
92
|
+
padding-top: @cell-large-vertical-padding;
|
|
93
|
+
padding-bottom: @cell-large-vertical-padding;
|
|
94
|
+
|
|
95
|
+
.zt-cell__title {
|
|
96
|
+
font-size: @cell-large-title-font-size;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.zt-cell__label {
|
|
100
|
+
font-size: @cell-large-label-font-size;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
package/es/cell-group/index.less
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-cell-group {
|
|
4
|
-
background-color: @cell-group-background-color;
|
|
5
|
-
|
|
6
|
-
&--inset {
|
|
7
|
-
margin: @cell-group-inset-padding;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
border-radius: @cell-group-inset-border-radius;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&__title {
|
|
13
|
-
padding: @cell-group-title-padding;
|
|
14
|
-
color: @cell-group-title-color;
|
|
15
|
-
font-size: @cell-group-title-font-size;
|
|
16
|
-
line-height: @cell-group-title-line-height;
|
|
17
|
-
|
|
18
|
-
&--inset {
|
|
19
|
-
padding: @cell-group-inset-title-padding;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-cell-group {
|
|
4
|
+
background-color: @cell-group-background-color;
|
|
5
|
+
|
|
6
|
+
&--inset {
|
|
7
|
+
margin: @cell-group-inset-padding;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border-radius: @cell-group-inset-border-radius;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__title {
|
|
13
|
+
padding: @cell-group-title-padding;
|
|
14
|
+
color: @cell-group-title-color;
|
|
15
|
+
font-size: @cell-group-title-font-size;
|
|
16
|
+
line-height: @cell-group-title-line-height;
|
|
17
|
+
|
|
18
|
+
&--inset {
|
|
19
|
+
padding: @cell-group-inset-title-padding;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
package/es/checkbox/index.less
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-checkbox {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
user-select: none;
|
|
9
|
-
padding: @checkbox-padding;
|
|
10
|
-
|
|
11
|
-
&--disabled {
|
|
12
|
-
cursor: not-allowed;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&--label-disabled {
|
|
16
|
-
cursor: default;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&--horizontal {
|
|
20
|
-
margin-right: @padding-sm;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__icon {
|
|
24
|
-
flex: none;
|
|
25
|
-
height: 1em;
|
|
26
|
-
font-size: @checkbox-size;
|
|
27
|
-
line-height: 1em;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
|
|
30
|
-
.zt-icon {
|
|
31
|
-
display: block;
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
width: 1.25em;
|
|
34
|
-
height: 1.25em;
|
|
35
|
-
color: transparent;
|
|
36
|
-
font-size: 0.8em;
|
|
37
|
-
line-height: 1.25;
|
|
38
|
-
text-align: center;
|
|
39
|
-
border: 1px solid @checkbox-border-color;
|
|
40
|
-
transition-duration: @checkbox-transition-duration;
|
|
41
|
-
transition-property: color, border-color, background-color;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&--round {
|
|
45
|
-
.zt-icon {
|
|
46
|
-
border-radius: 100%;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&--checked {
|
|
51
|
-
.zt-icon {
|
|
52
|
-
color: @white;
|
|
53
|
-
background-color: @checkbox-checked-icon-color;
|
|
54
|
-
border-color: @checkbox-checked-icon-color;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
&--disabled {
|
|
59
|
-
cursor: not-allowed;
|
|
60
|
-
|
|
61
|
-
.zt-icon {
|
|
62
|
-
background-color: @checkbox-disabled-background-color;
|
|
63
|
-
border-color: @checkbox-disabled-icon-color;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&--disabled&--checked {
|
|
68
|
-
.zt-icon {
|
|
69
|
-
opacity: .4;
|
|
70
|
-
background-color: @checkbox-checked-icon-color;
|
|
71
|
-
color: @white;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__label {
|
|
77
|
-
margin-left: @checkbox-label-margin;
|
|
78
|
-
color: @black;
|
|
79
|
-
line-height: @checkbox-size;
|
|
80
|
-
|
|
81
|
-
&--left {
|
|
82
|
-
margin: 0 @checkbox-label-margin 0 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&--disabled {
|
|
86
|
-
color: @checkbox-disabled-label-color;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-checkbox {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
user-select: none;
|
|
9
|
+
padding: @checkbox-padding;
|
|
10
|
+
|
|
11
|
+
&--disabled {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--label-disabled {
|
|
16
|
+
cursor: default;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--horizontal {
|
|
20
|
+
margin-right: @padding-sm;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__icon {
|
|
24
|
+
flex: none;
|
|
25
|
+
height: 1em;
|
|
26
|
+
font-size: @checkbox-size;
|
|
27
|
+
line-height: 1em;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
|
|
30
|
+
.zt-icon {
|
|
31
|
+
display: block;
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
width: 1.25em;
|
|
34
|
+
height: 1.25em;
|
|
35
|
+
color: transparent;
|
|
36
|
+
font-size: 0.8em;
|
|
37
|
+
line-height: 1.25;
|
|
38
|
+
text-align: center;
|
|
39
|
+
border: 1px solid @checkbox-border-color;
|
|
40
|
+
transition-duration: @checkbox-transition-duration;
|
|
41
|
+
transition-property: color, border-color, background-color;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--round {
|
|
45
|
+
.zt-icon {
|
|
46
|
+
border-radius: 100%;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&--checked {
|
|
51
|
+
.zt-icon {
|
|
52
|
+
color: @white;
|
|
53
|
+
background-color: @checkbox-checked-icon-color;
|
|
54
|
+
border-color: @checkbox-checked-icon-color;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--disabled {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
|
|
61
|
+
.zt-icon {
|
|
62
|
+
background-color: @checkbox-disabled-background-color;
|
|
63
|
+
border-color: @checkbox-disabled-icon-color;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--disabled&--checked {
|
|
68
|
+
.zt-icon {
|
|
69
|
+
opacity: .4;
|
|
70
|
+
background-color: @checkbox-checked-icon-color;
|
|
71
|
+
color: @white;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&__label {
|
|
77
|
+
margin-left: @checkbox-label-margin;
|
|
78
|
+
color: @black;
|
|
79
|
+
line-height: @checkbox-size;
|
|
80
|
+
|
|
81
|
+
&--left {
|
|
82
|
+
margin: 0 @checkbox-label-margin 0 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&--disabled {
|
|
86
|
+
color: @checkbox-disabled-label-color;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-checkbox-group {
|
|
4
|
-
&--horizontal {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-wrap: wrap;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-checkbox-group {
|
|
4
|
+
&--horizontal {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
}
|
|
8
|
+
}
|
package/es/col/index.less
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
@import '../style/var';
|
|
2
|
-
|
|
3
|
-
.zt-col {
|
|
4
|
-
float: left;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
min-height: 1px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.generate-col(24);
|
|
10
|
-
.generate-col(@n, @i: 1) when (@i =< @n) {
|
|
11
|
-
.zt-col--@{i} {
|
|
12
|
-
width: (@i * 100% / 24);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.zt-col--offset-@{i} {
|
|
16
|
-
margin-left: (@i * 100% / 24);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.generate-col(@n, (@i + 1));
|
|
20
|
-
}
|
|
1
|
+
@import '../style/var';
|
|
2
|
+
|
|
3
|
+
.zt-col {
|
|
4
|
+
float: left;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
min-height: 1px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.generate-col(24);
|
|
10
|
+
.generate-col(@n, @i: 1) when (@i =< @n) {
|
|
11
|
+
.zt-col--@{i} {
|
|
12
|
+
width: (@i * 100% / 24);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.zt-col--offset-@{i} {
|
|
16
|
+
margin-left: (@i * 100% / 24);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.generate-col(@n, (@i + 1));
|
|
20
|
+
}
|