bkui-vue 1.0.3-beta.24 → 1.0.3-beta.26
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/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +1 -1
- package/lib/affix/affix.less +2 -2
- package/lib/affix/affix.variable.css +3 -3
- package/lib/alert/alert.css +21 -21
- package/lib/alert/alert.less +17 -16
- package/lib/alert/alert.variable.css +23 -23
- package/lib/backtop/backtop.css +11 -11
- package/lib/backtop/backtop.less +3 -3
- package/lib/backtop/backtop.variable.css +13 -13
- package/lib/badge/badge.css +32 -32
- package/lib/badge/badge.less +5 -5
- package/lib/badge/badge.variable.css +34 -34
- package/lib/breadcrumb/breadcrumb.css +31 -31
- package/lib/breadcrumb/breadcrumb.less +8 -8
- package/lib/breadcrumb/breadcrumb.variable.css +33 -33
- package/lib/button/button.css +69 -69
- package/lib/button/button.less +3 -5
- package/lib/button/button.variable.css +71 -71
- package/lib/card/card.css +31 -31
- package/lib/card/card.less +4 -4
- package/lib/card/card.variable.css +33 -33
- package/lib/cascader/cascader.css +63 -63
- package/lib/cascader/cascader.less +12 -11
- package/lib/cascader/cascader.variable.css +65 -65
- package/lib/checkbox/checkbox.css +21 -21
- package/lib/checkbox/checkbox.less +8 -8
- package/lib/checkbox/checkbox.variable.css +23 -23
- package/lib/code-diff/code-diff.css +97 -97
- package/lib/code-diff/code-diff.less +3 -4
- package/lib/code-diff/code-diff.variable.css +99 -99
- package/lib/collapse/collapse.css +30 -30
- package/lib/collapse/collapse.less +25 -24
- package/lib/collapse/collapse.variable.css +32 -32
- package/lib/collapse-transition/collapse-transition.css +32 -32
- package/lib/collapse-transition/collapse-transition.less +59 -48
- package/lib/collapse-transition/collapse-transition.variable.css +34 -34
- package/lib/color-picker/color-picker.css +57 -57
- package/lib/color-picker/color-picker.less +36 -30
- package/lib/color-picker/color-picker.variable.css +59 -59
- package/lib/config-provider/config-provider.variable.css +2 -2
- package/lib/container/container.css +19 -19
- package/lib/container/container.less +3 -3
- package/lib/container/container.variable.css +21 -21
- package/lib/date-picker/date-picker.css +92 -92
- package/lib/date-picker/date-picker.less +55 -54
- package/lib/date-picker/date-picker.variable.css +94 -94
- package/lib/dialog/dialog.css +51 -51
- package/lib/dialog/dialog.less +1 -1
- package/lib/dialog/dialog.variable.css +53 -53
- package/lib/divider/divider.css +8 -8
- package/lib/divider/divider.less +5 -8
- package/lib/divider/divider.variable.css +10 -10
- package/lib/dropdown/dropdown.css +15 -15
- package/lib/dropdown/dropdown.less +6 -6
- package/lib/dropdown/dropdown.variable.css +17 -17
- package/lib/exception/exception.css +13 -13
- package/lib/exception/exception.less +6 -6
- package/lib/exception/exception.variable.css +15 -15
- package/lib/fixed-navbar/fixed-navbar.css +9 -9
- package/lib/fixed-navbar/fixed-navbar.less +1 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +11 -11
- package/lib/form/form.css +63 -63
- package/lib/form/form.less +14 -16
- package/lib/form/form.variable.css +65 -65
- package/lib/image/image-viewer.css +23 -23
- package/lib/image/image-viewer.less +24 -25
- package/lib/image/image-viewer.variable.css +25 -25
- package/lib/image/image.css +29 -29
- package/lib/image/image.less +6 -8
- package/lib/image/image.variable.css +31 -31
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.less +1 -2
- package/lib/info-box/info-box.variable.css +12 -12
- package/lib/input/input.css +102 -104
- package/lib/input/input.less +27 -33
- package/lib/input/input.variable.css +104 -106
- package/lib/link/link.css +18 -18
- package/lib/link/link.less +1 -3
- package/lib/link/link.variable.css +20 -20
- package/lib/loading/loading.css +94 -94
- package/lib/loading/loading.less +4 -4
- package/lib/loading/loading.variable.css +96 -96
- package/lib/menu/menu.css +38 -38
- package/lib/menu/menu.less +10 -10
- package/lib/menu/menu.variable.css +40 -40
- package/lib/menu/submenu.css +1 -1
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +3 -3
- package/lib/message/message.css +59 -59
- package/lib/message/message.less +25 -24
- package/lib/message/message.variable.css +61 -61
- package/lib/modal/modal.css +26 -26
- package/lib/modal/modal.less +8 -12
- package/lib/modal/modal.variable.css +28 -28
- package/lib/navigation/navigation.css +25 -25
- package/lib/navigation/navigation.less +9 -9
- package/lib/navigation/navigation.variable.css +27 -27
- package/lib/notify/notify.css +17 -17
- package/lib/notify/notify.less +8 -6
- package/lib/notify/notify.variable.css +19 -19
- package/lib/pagination/pagination.css +60 -60
- package/lib/pagination/pagination.less +24 -25
- package/lib/pagination/pagination.variable.css +62 -62
- package/lib/pop-confirm/pop-confirm.css +10 -10
- package/lib/pop-confirm/pop-confirm.less +14 -11
- package/lib/pop-confirm/pop-confirm.variable.css +12 -12
- package/lib/popover/popover.css +5 -5
- package/lib/popover/popover.less +5 -6
- package/lib/popover/popover.variable.css +7 -7
- package/lib/process/process.css +36 -33
- package/lib/process/process.less +8 -7
- package/lib/process/process.variable.css +38 -35
- package/lib/progress/progress.css +33 -33
- package/lib/progress/progress.less +6 -5
- package/lib/progress/progress.variable.css +35 -35
- package/lib/radio/radio.css +51 -51
- package/lib/radio/radio.less +13 -20
- package/lib/radio/radio.variable.css +53 -53
- package/lib/rate/rate.css +2 -2
- package/lib/rate/rate.less +1 -1
- package/lib/rate/rate.variable.css +4 -4
- package/lib/rate/star.css +7 -7
- package/lib/rate/star.less +1 -1
- package/lib/rate/star.variable.css +9 -9
- package/lib/resize-layout/resize-layout.css +42 -42
- package/lib/resize-layout/resize-layout.less +17 -10
- package/lib/resize-layout/resize-layout.variable.css +44 -44
- package/lib/search-select/search-select.css +15 -15
- package/lib/search-select/search-select.variable.css +17 -17
- package/lib/select/select.css +87 -87
- package/lib/select/select.less +27 -22
- package/lib/select/select.variable.css +89 -89
- package/lib/sideslider/sideslider.css +14 -14
- package/lib/sideslider/sideslider.less +9 -13
- package/lib/sideslider/sideslider.variable.css +16 -16
- package/lib/slider/slider.css +31 -31
- package/lib/slider/slider.less +8 -8
- package/lib/slider/slider.variable.css +33 -33
- package/lib/steps/steps.css +134 -134
- package/lib/steps/steps.less +44 -48
- package/lib/steps/steps.variable.css +136 -136
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +3 -3
- package/lib/styles/mixins/animate.variable.css +6 -6
- package/lib/styles/mixins/mixins.css +15 -15
- package/lib/styles/mixins/mixins.variable.css +15 -15
- package/lib/styles/mixins/popper.css +11 -11
- package/lib/styles/mixins/popper.less +6 -6
- package/lib/styles/mixins/popper.variable.css +13 -13
- package/lib/styles/mixins/scroll.css +5 -5
- package/lib/styles/mixins/scroll.less +4 -4
- package/lib/styles/mixins/scroll.variable.css +7 -7
- package/lib/styles/reset.css +6 -6
- package/lib/styles/reset.less +4 -5
- package/lib/styles/reset.variable.css +8 -8
- package/lib/styles/themes/themes copy.less +167 -0
- package/lib/styles/themes/themes.less +3 -10
- package/lib/swiper/swiper.css +15 -15
- package/lib/swiper/swiper.less +8 -8
- package/lib/swiper/swiper.variable.css +17 -17
- package/lib/switcher/switcher.css +57 -57
- package/lib/switcher/switcher.less +14 -22
- package/lib/switcher/switcher.variable.css +59 -59
- package/lib/tab/tab.css +78 -78
- package/lib/tab/tab.less +40 -39
- package/lib/tab/tab.variable.css +80 -80
- package/lib/table/plugins/head-filter.css +13 -13
- package/lib/table/plugins/head-filter.less +3 -3
- package/lib/table/plugins/head-filter.variable.css +15 -15
- package/lib/table/plugins/head-sort.css +5 -5
- package/lib/table/plugins/head-sort.less +2 -2
- package/lib/table/plugins/head-sort.variable.css +7 -7
- package/lib/table/plugins/settings.css +26 -26
- package/lib/table/plugins/settings.less +1 -3
- package/lib/table/plugins/settings.variable.css +28 -28
- package/lib/table/table.css +380 -380
- package/lib/table/table.less +10 -14
- package/lib/table/table.variable.css +382 -382
- package/lib/tag/tag.css +51 -51
- package/lib/tag/tag.less +34 -34
- package/lib/tag/tag.variable.css +53 -53
- package/lib/tag-input/tag-input.css +38 -38
- package/lib/tag-input/tag-input.less +3 -3
- package/lib/tag-input/tag-input.variable.css +40 -40
- package/lib/time-picker/time-picker.css +40 -40
- package/lib/time-picker/time-picker.less +76 -44
- package/lib/time-picker/time-picker.variable.css +42 -42
- package/lib/timeline/timeline.css +69 -69
- package/lib/timeline/timeline.less +6 -12
- package/lib/timeline/timeline.variable.css +71 -71
- package/lib/transfer/transfer.css +89 -89
- package/lib/transfer/transfer.less +1 -1
- package/lib/transfer/transfer.variable.css +91 -91
- package/lib/tree/tree.css +49 -49
- package/lib/tree/tree.less +6 -7
- package/lib/tree/tree.variable.css +51 -51
- package/lib/upload/upload.css +98 -98
- package/lib/upload/upload.less +68 -69
- package/lib/upload/upload.variable.css +100 -100
- package/lib/virtual-render/virtual-render.css +9 -9
- package/lib/virtual-render/virtual-render.less +1 -1
- package/lib/virtual-render/virtual-render.variable.css +11 -11
- package/package.json +1 -1
package/lib/input/input.css
CHANGED
@@ -11,12 +11,12 @@
|
|
11
11
|
background-color: transparent;
|
12
12
|
}
|
13
13
|
}
|
14
|
-
.bk-transition .bk-fade-enter-active,
|
15
|
-
.bk-transition .bk-fade-leave-active {
|
14
|
+
:where(.bk-transition) .bk-fade-enter-active,
|
15
|
+
:where(.bk-transition) .bk-fade-leave-active {
|
16
16
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
17
17
|
}
|
18
|
-
.bk-transition .bk-fade-enter,
|
19
|
-
.bk-transition .bk-fade-leave-to {
|
18
|
+
:where(.bk-transition) .bk-fade-enter,
|
19
|
+
:where(.bk-transition) .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
22
|
.clearfix-style::after {
|
@@ -27,7 +27,7 @@
|
|
27
27
|
content: '';
|
28
28
|
visibility: hidden;
|
29
29
|
}
|
30
|
-
.bk-popper {
|
30
|
+
:where(.bk-popper) {
|
31
31
|
display: none;
|
32
32
|
padding: 7px 14px;
|
33
33
|
font-size: 12px;
|
@@ -35,42 +35,42 @@
|
|
35
35
|
background: #333;
|
36
36
|
border-radius: 4px;
|
37
37
|
}
|
38
|
-
.bk-popper.light {
|
38
|
+
:where(.bk-popper).light {
|
39
39
|
color: #63656e;
|
40
40
|
background: #fff;
|
41
41
|
box-shadow: #dcdee5 0 0 6px 0;
|
42
42
|
}
|
43
|
-
.bk-popper .bk-popper-arrow,
|
44
|
-
.bk-popper .bk-popper-arrow::before {
|
43
|
+
:where(.bk-popper) .bk-popper-arrow,
|
44
|
+
:where(.bk-popper) .bk-popper-arrow::before {
|
45
45
|
position: absolute;
|
46
46
|
width: 8px;
|
47
47
|
height: 8px;
|
48
48
|
background: inherit;
|
49
49
|
}
|
50
|
-
.bk-popper .bk-popper-arrow {
|
50
|
+
:where(.bk-popper) .bk-popper-arrow {
|
51
51
|
visibility: hidden;
|
52
52
|
}
|
53
|
-
.bk-popper .bk-popper-arrow::before {
|
53
|
+
:where(.bk-popper) .bk-popper-arrow::before {
|
54
54
|
content: '';
|
55
55
|
visibility: visible;
|
56
56
|
transform: rotate(45deg);
|
57
57
|
}
|
58
|
-
.bk-popper[data-show] {
|
58
|
+
:where(.bk-popper)[data-show] {
|
59
59
|
display: block;
|
60
60
|
}
|
61
|
-
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
61
|
+
:where(.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow) {
|
62
62
|
bottom: -4px;
|
63
63
|
}
|
64
|
-
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
64
|
+
:where(.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow) {
|
65
65
|
top: -4px;
|
66
66
|
}
|
67
|
-
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
67
|
+
:where(.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow) {
|
68
68
|
right: -4px;
|
69
69
|
}
|
70
|
-
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
70
|
+
:where(.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow) {
|
71
71
|
left: -4px;
|
72
72
|
}
|
73
|
-
.bk-textarea {
|
73
|
+
:where(.bk-textarea) {
|
74
74
|
--textarea-line-height: 20px;
|
75
75
|
display: inline-flex;
|
76
76
|
width: 100%;
|
@@ -85,48 +85,48 @@
|
|
85
85
|
transition: all 0.3s;
|
86
86
|
flex-direction: column;
|
87
87
|
}
|
88
|
-
.bk-textarea ::placeholder {
|
88
|
+
:where(.bk-textarea) ::placeholder {
|
89
89
|
font-size: 12px;
|
90
90
|
color: #c4c6cc;
|
91
91
|
}
|
92
|
-
.bk-textarea.resizable {
|
92
|
+
:where(.bk-textarea).resizable {
|
93
93
|
resize: both;
|
94
94
|
}
|
95
|
-
.bk-textarea ::-webkit-scrollbar {
|
96
|
-
-webkit-appearance: none;
|
95
|
+
:where(.bk-textarea) ::-webkit-scrollbar {
|
97
96
|
width: 3px;
|
97
|
+
appearance: none;
|
98
98
|
}
|
99
|
-
.bk-textarea ::-webkit-scrollbar-thumb {
|
99
|
+
:where(.bk-textarea) ::-webkit-scrollbar-thumb {
|
100
|
+
background-color: #dcdee5;
|
100
101
|
border-radius: 4px;
|
101
|
-
background-color: #DCDEE5;
|
102
102
|
}
|
103
|
-
.bk-textarea.is-disabled,
|
104
|
-
.bk-textarea.is-readonly {
|
103
|
+
:where(.bk-textarea).is-disabled,
|
104
|
+
:where(.bk-textarea).is-readonly {
|
105
105
|
background-color: #fafbfd;
|
106
106
|
border-color: #dcdee5;
|
107
107
|
}
|
108
|
-
.bk-textarea.is-disabled .bk-input--prefix-area,
|
109
|
-
.bk-textarea.is-readonly .bk-input--prefix-area,
|
110
|
-
.bk-textarea.is-disabled .bk-input--suffix-area,
|
111
|
-
.bk-textarea.is-readonly .bk-input--suffix-area,
|
112
|
-
.bk-textarea.is-disabled .bk-input--suffix-icon,
|
113
|
-
.bk-textarea.is-readonly .bk-input--suffix-icon {
|
108
|
+
:where(.bk-textarea).is-disabled .bk-input--prefix-area,
|
109
|
+
:where(.bk-textarea).is-readonly .bk-input--prefix-area,
|
110
|
+
:where(.bk-textarea).is-disabled .bk-input--suffix-area,
|
111
|
+
:where(.bk-textarea).is-readonly .bk-input--suffix-area,
|
112
|
+
:where(.bk-textarea).is-disabled .bk-input--suffix-icon,
|
113
|
+
:where(.bk-textarea).is-readonly .bk-input--suffix-icon {
|
114
114
|
cursor: not-allowed;
|
115
115
|
background-color: #fafbfd;
|
116
116
|
}
|
117
|
-
.bk-textarea.is-disabled input,
|
118
|
-
.bk-textarea.is-readonly input,
|
119
|
-
.bk-textarea.is-disabled textarea,
|
120
|
-
.bk-textarea.is-readonly textarea {
|
117
|
+
:where(.bk-textarea).is-disabled input,
|
118
|
+
:where(.bk-textarea).is-readonly input,
|
119
|
+
:where(.bk-textarea).is-disabled textarea,
|
120
|
+
:where(.bk-textarea).is-readonly textarea {
|
121
121
|
cursor: not-allowed;
|
122
122
|
background-color: #fafbfd;
|
123
123
|
opacity: 1;
|
124
124
|
}
|
125
|
-
.bk-textarea.is-readonly input,
|
126
|
-
.bk-textarea.is-readonly textarea {
|
125
|
+
:where(.bk-textarea).is-readonly input,
|
126
|
+
:where(.bk-textarea).is-readonly textarea {
|
127
127
|
cursor: auto;
|
128
128
|
}
|
129
|
-
.bk-textarea > textarea {
|
129
|
+
:where(.bk-textarea) > textarea {
|
130
130
|
width: 100%;
|
131
131
|
padding: 5px 10px;
|
132
132
|
line-height: 1.5;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
outline: none;
|
137
137
|
resize: none;
|
138
138
|
}
|
139
|
-
.bk-textarea--max-length {
|
139
|
+
:where(.bk-textarea) .bk-textarea--max-length {
|
140
140
|
padding-right: 8px;
|
141
141
|
margin: 0;
|
142
142
|
margin-left: auto;
|
@@ -145,18 +145,18 @@
|
|
145
145
|
transform: scale(0.8);
|
146
146
|
justify-content: flex-end;
|
147
147
|
}
|
148
|
-
.bk-textarea--max-length.is-over-limit {
|
148
|
+
:where(.bk-textarea) .bk-textarea--max-length.is-over-limit {
|
149
149
|
color: #ea3636;
|
150
150
|
}
|
151
|
-
.bk-textarea--max-length span {
|
151
|
+
:where(.bk-textarea) .bk-textarea--max-length span {
|
152
152
|
color: #979ba5;
|
153
153
|
}
|
154
|
-
.bk-textarea.is-focused:not(.is-readonly) {
|
154
|
+
:where(.bk-textarea).is-focused:not(.is-readonly) {
|
155
155
|
border-color: #3a84ff;
|
156
156
|
outline: 0;
|
157
157
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
158
158
|
}
|
159
|
-
.bk-input {
|
159
|
+
:where(.bk-input) {
|
160
160
|
display: inline-flex;
|
161
161
|
align-items: stretch;
|
162
162
|
width: 100%;
|
@@ -166,125 +166,125 @@
|
|
166
166
|
border-radius: 2px;
|
167
167
|
transition: all 0.3s;
|
168
168
|
}
|
169
|
-
.bk-input ::placeholder {
|
169
|
+
:where(.bk-input) ::placeholder {
|
170
170
|
font-size: 12px;
|
171
171
|
color: #c4c6cc;
|
172
172
|
}
|
173
|
-
.bk-input.is-disabled,
|
174
|
-
.bk-input.is-readonly {
|
173
|
+
:where(.bk-input).is-disabled,
|
174
|
+
:where(.bk-input).is-readonly {
|
175
175
|
background-color: #fafbfd;
|
176
176
|
border-color: #dcdee5;
|
177
177
|
}
|
178
|
-
.bk-input.is-disabled .bk-input--prefix-area,
|
179
|
-
.bk-input.is-readonly .bk-input--prefix-area,
|
180
|
-
.bk-input.is-disabled .bk-input--suffix-area,
|
181
|
-
.bk-input.is-readonly .bk-input--suffix-area,
|
182
|
-
.bk-input.is-disabled .bk-input--suffix-icon,
|
183
|
-
.bk-input.is-readonly .bk-input--suffix-icon {
|
178
|
+
:where(.bk-input).is-disabled .bk-input--prefix-area,
|
179
|
+
:where(.bk-input).is-readonly .bk-input--prefix-area,
|
180
|
+
:where(.bk-input).is-disabled .bk-input--suffix-area,
|
181
|
+
:where(.bk-input).is-readonly .bk-input--suffix-area,
|
182
|
+
:where(.bk-input).is-disabled .bk-input--suffix-icon,
|
183
|
+
:where(.bk-input).is-readonly .bk-input--suffix-icon {
|
184
184
|
cursor: not-allowed;
|
185
185
|
background-color: #fafbfd;
|
186
186
|
}
|
187
|
-
.bk-input.is-disabled input,
|
188
|
-
.bk-input.is-readonly input,
|
189
|
-
.bk-input.is-disabled textarea,
|
190
|
-
.bk-input.is-readonly textarea {
|
187
|
+
:where(.bk-input).is-disabled input,
|
188
|
+
:where(.bk-input).is-readonly input,
|
189
|
+
:where(.bk-input).is-disabled textarea,
|
190
|
+
:where(.bk-input).is-readonly textarea {
|
191
191
|
cursor: not-allowed;
|
192
192
|
background-color: #fafbfd;
|
193
193
|
opacity: 1;
|
194
194
|
}
|
195
|
-
.bk-input.is-readonly input,
|
196
|
-
.bk-input.is-readonly textarea {
|
195
|
+
:where(.bk-input).is-readonly input,
|
196
|
+
:where(.bk-input).is-readonly textarea {
|
197
197
|
cursor: auto;
|
198
198
|
}
|
199
|
-
.bk-input:hover:not(.is-disabled) {
|
199
|
+
:where(.bk-input):hover:not(.is-disabled) {
|
200
200
|
border-color: #979ba5;
|
201
201
|
}
|
202
|
-
.bk-input:hover:not(.is-disabled) .show-clear-only-hover {
|
202
|
+
:where(.bk-input):hover:not(.is-disabled) .show-clear-only-hover {
|
203
203
|
display: flex;
|
204
204
|
}
|
205
|
-
.bk-input.is-simplicity {
|
205
|
+
:where(.bk-input).is-simplicity {
|
206
206
|
background-color: transparent;
|
207
207
|
border-color: transparent;
|
208
208
|
border-bottom-color: #c4c6cc;
|
209
209
|
}
|
210
|
-
.bk-input.is-simplicity:hover:not(.is-disabled) {
|
210
|
+
:where(.bk-input).is-simplicity:hover:not(.is-disabled) {
|
211
211
|
background-color: #f5f7fa;
|
212
212
|
border-color: transparent;
|
213
213
|
border-bottom-color: #c4c6cc;
|
214
214
|
box-shadow: none;
|
215
215
|
}
|
216
|
-
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--text,
|
217
|
-
.bk-input.is-simplicity:hover:not(.is-disabled) .bk-input--suffix-icon {
|
216
|
+
:where(.bk-input).is-simplicity:hover:not(.is-disabled) .bk-input--text,
|
217
|
+
:where(.bk-input).is-simplicity:hover:not(.is-disabled) .bk-input--suffix-icon {
|
218
218
|
background-color: #f5f7fa;
|
219
219
|
}
|
220
|
-
.bk-input--suffix-icon {
|
220
|
+
:where(.bk-input) .bk-input--suffix-icon {
|
221
221
|
display: flex;
|
222
222
|
height: 100%;
|
223
223
|
padding-right: 8px;
|
224
224
|
font-size: 14px;
|
225
225
|
color: #c4c6cc;
|
226
|
+
cursor: pointer;
|
226
227
|
background-color: white;
|
227
228
|
align-items: center;
|
228
229
|
align-self: center;
|
229
230
|
flex-shrink: 0;
|
230
|
-
cursor: pointer;
|
231
231
|
}
|
232
|
-
.bk-input--suffix-icon:hover {
|
232
|
+
:where(.bk-input) .bk-input--suffix-icon:hover {
|
233
233
|
color: #313238;
|
234
234
|
}
|
235
|
-
.bk-input--suffix-icon.show-clear-only-hover {
|
235
|
+
:where(.bk-input) .bk-input--suffix-icon.show-clear-only-hover {
|
236
236
|
display: none;
|
237
237
|
}
|
238
|
-
.bk-input--clear-icon {
|
238
|
+
:where(.bk-input) .bk-input--clear-icon {
|
239
239
|
cursor: pointer;
|
240
240
|
flex-shrink: 0;
|
241
241
|
}
|
242
|
-
.bk-input--clear-icon:hover {
|
242
|
+
:where(.bk-input) .bk-input--clear-icon:hover {
|
243
243
|
color: #979ba5;
|
244
244
|
}
|
245
|
-
.bk-input--large {
|
245
|
+
:where(.bk-input) .bk-input--large {
|
246
246
|
height: 40px;
|
247
247
|
font-size: 14px;
|
248
248
|
}
|
249
|
-
.bk-input--large ::placeholder {
|
249
|
+
:where(.bk-input) .bk-input--large ::placeholder {
|
250
250
|
font-size: 14px;
|
251
251
|
color: #c4c6cc;
|
252
252
|
}
|
253
|
-
.bk-input--large .bk-input--max-length {
|
253
|
+
:where(.bk-input) .bk-input--large .bk-input--max-length {
|
254
254
|
font-size: 16px;
|
255
255
|
}
|
256
|
-
.bk-input--large .bk-input--number-control span:first-child {
|
256
|
+
:where(.bk-input) .bk-input--large .bk-input--number-control span:first-child {
|
257
257
|
margin-bottom: 4px;
|
258
258
|
}
|
259
|
-
.bk-input--small {
|
259
|
+
:where(.bk-input) .bk-input--small {
|
260
260
|
height: 26px;
|
261
261
|
font-size: 12px;
|
262
262
|
}
|
263
|
-
.bk-input--small .bk-input--max-length {
|
263
|
+
:where(.bk-input) .bk-input--small .bk-input--max-length {
|
264
264
|
font-size: 12px;
|
265
265
|
}
|
266
|
-
.bk-input--default {
|
266
|
+
:where(.bk-input) .bk-input--default {
|
267
267
|
font-size: 12px;
|
268
268
|
}
|
269
|
-
.bk-input--default .bk-input--max-length {
|
269
|
+
:where(.bk-input) .bk-input--default .bk-input--max-length {
|
270
270
|
font-size: 12px;
|
271
271
|
}
|
272
|
-
.bk-input.is-focused:not(.is-readonly) {
|
272
|
+
:where(.bk-input).is-focused:not(.is-readonly) {
|
273
273
|
border-color: #3a84ff;
|
274
274
|
outline: 0;
|
275
275
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
276
276
|
}
|
277
|
-
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
277
|
+
:where(.bk-input).is-focused:not(.is-readonly).is-simplicity {
|
278
278
|
border-color: transparent;
|
279
279
|
border-bottom-color: #3a84ff;
|
280
280
|
box-shadow: none;
|
281
281
|
}
|
282
|
-
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--text,
|
283
|
-
.bk-input.is-focused:not(.is-readonly).is-simplicity .bk-input--suffix-icon {
|
282
|
+
:where(.bk-input).is-focused:not(.is-readonly).is-simplicity .bk-input--text,
|
283
|
+
:where(.bk-input).is-focused:not(.is-readonly).is-simplicity .bk-input--suffix-icon {
|
284
284
|
background-color: #f5f7fa;
|
285
285
|
}
|
286
|
-
.bk-input--prefix-area,
|
287
|
-
.bk-input--suffix-area {
|
286
|
+
:where(.bk-input) .bk-input--prefix-area,
|
287
|
+
:where(.bk-input) .bk-input--suffix-area {
|
288
288
|
display: flex;
|
289
289
|
padding: 0 8px;
|
290
290
|
color: #63656e;
|
@@ -292,23 +292,23 @@
|
|
292
292
|
border-right: 1px solid #c4c6cc;
|
293
293
|
align-items: center;
|
294
294
|
}
|
295
|
-
.bk-input--suffix-area {
|
295
|
+
:where(.bk-input) .bk-input--suffix-area {
|
296
296
|
border: 0;
|
297
297
|
border-left: 1px solid #c4c6cc;
|
298
298
|
}
|
299
|
-
.bk-input--max-length {
|
299
|
+
:where(.bk-input) .bk-input--max-length {
|
300
300
|
align-self: center;
|
301
301
|
padding-right: 8px;
|
302
302
|
font-size: 12px;
|
303
303
|
transform: scale(0.8);
|
304
304
|
}
|
305
|
-
.bk-input--max-length.is-over-limit {
|
305
|
+
:where(.bk-input) .bk-input--max-length.is-over-limit {
|
306
306
|
color: #ea3636;
|
307
307
|
}
|
308
|
-
.bk-input--max-length span {
|
308
|
+
:where(.bk-input) .bk-input--max-length span {
|
309
309
|
color: #979ba5;
|
310
310
|
}
|
311
|
-
.bk-input--text {
|
311
|
+
:where(.bk-input) .bk-input--text {
|
312
312
|
width: 100%;
|
313
313
|
padding: 0 8px;
|
314
314
|
overflow: hidden;
|
@@ -325,28 +325,28 @@
|
|
325
325
|
transition: all 0.3s;
|
326
326
|
flex: 1;
|
327
327
|
}
|
328
|
-
.bk-input--text[type='search']::-webkit-search-decoration,
|
329
|
-
.bk-input--text[type='search']::-webkit-search-cancel-button,
|
330
|
-
.bk-input--text[type='search']::-webkit-search-results-button,
|
331
|
-
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
328
|
+
:where(.bk-input) .bk-input--text[type='search']::-webkit-search-decoration,
|
329
|
+
:where(.bk-input) .bk-input--text[type='search']::-webkit-search-cancel-button,
|
330
|
+
:where(.bk-input) .bk-input--text[type='search']::-webkit-search-results-button,
|
331
|
+
:where(.bk-input) .bk-input--text[type='search']::-webkit-search-results-decoration {
|
332
332
|
appearance: none;
|
333
333
|
}
|
334
|
-
.bk-input--text [type='search']::-ms-clear {
|
334
|
+
:where(.bk-input) .bk-input--text [type='search']::-ms-clear {
|
335
335
|
display: none;
|
336
336
|
width: 0;
|
337
337
|
height: 0;
|
338
338
|
}
|
339
|
-
.bk-input--text [type='search']::-ms-reveal {
|
339
|
+
:where(.bk-input) .bk-input--text [type='search']::-ms-reveal {
|
340
340
|
display: none;
|
341
341
|
width: 0;
|
342
342
|
height: 0;
|
343
343
|
}
|
344
|
-
.bk-input--text[type='number']::-webkit-inner-spin-button,
|
345
|
-
.bk-input--text[type='number']::-webkit-outer-spin-button {
|
344
|
+
:where(.bk-input) .bk-input--text[type='number']::-webkit-inner-spin-button,
|
345
|
+
:where(.bk-input) .bk-input--text[type='number']::-webkit-outer-spin-button {
|
346
346
|
margin: 0;
|
347
347
|
appearance: none;
|
348
348
|
}
|
349
|
-
.bk-input--number-control {
|
349
|
+
:where(.bk-input) .bk-input--number-control {
|
350
350
|
display: flex;
|
351
351
|
width: 26px;
|
352
352
|
height: 100%;
|
@@ -356,7 +356,7 @@
|
|
356
356
|
flex-direction: column;
|
357
357
|
align-items: center;
|
358
358
|
}
|
359
|
-
.bk-input--number-control span {
|
359
|
+
:where(.bk-input) .bk-input--number-control span {
|
360
360
|
display: flex;
|
361
361
|
overflow: hidden;
|
362
362
|
line-height: 1;
|
@@ -367,17 +367,17 @@
|
|
367
367
|
flex: 1;
|
368
368
|
align-items: center;
|
369
369
|
}
|
370
|
-
.bk-input--number-control span.is-disabled {
|
370
|
+
:where(.bk-input) .bk-input--number-control span.is-disabled {
|
371
371
|
color: #c4c6cc;
|
372
372
|
cursor: not-allowed;
|
373
373
|
}
|
374
|
-
.bk-input--number-control svg {
|
374
|
+
:where(.bk-input) .bk-input--number-control svg {
|
375
375
|
font-size: 14px;
|
376
376
|
}
|
377
|
-
.bk-input--number-control span:first-child {
|
377
|
+
:where(.bk-input) .bk-input--number-control span:first-child {
|
378
378
|
transform: rotate(180deg);
|
379
379
|
}
|
380
|
-
.bk-input--number-control span:not(.is-disabled):hover {
|
380
|
+
:where(.bk-input) .bk-input--number-control span:not(.is-disabled):hover {
|
381
381
|
background-color: #eaebf0;
|
382
382
|
}
|
383
383
|
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
@@ -385,7 +385,6 @@ input:-webkit-autofill,
|
|
385
385
|
input:-webkit-autofill:hover,
|
386
386
|
input:-webkit-autofill:focus,
|
387
387
|
input:-webkit-autofill:active {
|
388
|
-
-webkit-box-shadow: 0 0 0 100px white inset !important;
|
389
388
|
box-shadow: 0 0 0 100px white inset !important;
|
390
389
|
}
|
391
390
|
/* 针对 Firefox 的样式 */
|
@@ -393,6 +392,5 @@ input:-moz-autofill,
|
|
393
392
|
input:-moz-autofill:hover,
|
394
393
|
input:-moz-autofill:focus,
|
395
394
|
input:-moz-autofill:active {
|
396
|
-
-moz-box-shadow: 0 0 0 100px white inset !important;
|
397
395
|
box-shadow: 0 0 0 100px white inset !important;
|
398
396
|
}
|
package/lib/input/input.less
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.disabled() {
|
11
|
-
|
12
11
|
&.is-disabled,
|
13
12
|
&.is-readonly {
|
14
13
|
background-color: @input-disabled-bg;
|
@@ -35,7 +34,6 @@
|
|
35
34
|
&.is-readonly textarea {
|
36
35
|
cursor: auto;
|
37
36
|
}
|
38
|
-
|
39
37
|
}
|
40
38
|
|
41
39
|
.placeholder(@fontSize: @font-size-base) {
|
@@ -45,7 +43,7 @@
|
|
45
43
|
}
|
46
44
|
}
|
47
45
|
|
48
|
-
.@{bk-prefix}-textarea {
|
46
|
+
:where(.@{bk-prefix}-textarea) {
|
49
47
|
--textarea-line-height: 20px;
|
50
48
|
display: inline-flex;
|
51
49
|
width: 100%;
|
@@ -57,7 +55,7 @@
|
|
57
55
|
border: @border-width-base @border-style-base @input-border-color;
|
58
56
|
border-radius: @border-radius-base;
|
59
57
|
box-sizing: border-box;
|
60
|
-
transition: all .3s;
|
58
|
+
transition: all 0.3s;
|
61
59
|
flex-direction: column;
|
62
60
|
.placeholder();
|
63
61
|
|
@@ -66,18 +64,18 @@
|
|
66
64
|
}
|
67
65
|
|
68
66
|
::-webkit-scrollbar {
|
69
|
-
-webkit-appearance: none;
|
70
67
|
width: 3px;
|
68
|
+
appearance: none;
|
71
69
|
}
|
72
70
|
|
73
71
|
::-webkit-scrollbar-thumb {
|
72
|
+
background-color: #dcdee5;
|
74
73
|
border-radius: 4px;
|
75
|
-
background-color: #DCDEE5;
|
76
74
|
}
|
77
75
|
|
78
76
|
.disabled();
|
79
77
|
|
80
|
-
>textarea {
|
78
|
+
> textarea {
|
81
79
|
width: 100%;
|
82
80
|
padding: 5px 10px;
|
83
81
|
line-height: 1.5;
|
@@ -88,13 +86,13 @@
|
|
88
86
|
resize: none;
|
89
87
|
}
|
90
88
|
|
91
|
-
|
89
|
+
.@{bk-prefix}-textarea--max-length {
|
92
90
|
padding-right: @input-horizontal-padding;
|
93
91
|
margin: 0;
|
94
92
|
margin-left: auto;
|
95
93
|
font-size: @font-size-base;
|
96
94
|
text-align: right;
|
97
|
-
transform: scale(.8);
|
95
|
+
transform: scale(0.8);
|
98
96
|
justify-content: flex-end;
|
99
97
|
|
100
98
|
&.is-over-limit {
|
@@ -111,7 +109,7 @@
|
|
111
109
|
}
|
112
110
|
}
|
113
111
|
|
114
|
-
.@{bk-prefix}-input {
|
112
|
+
:where(.@{bk-prefix}-input) {
|
115
113
|
display: inline-flex;
|
116
114
|
align-items: stretch;
|
117
115
|
width: 100%;
|
@@ -119,7 +117,7 @@
|
|
119
117
|
font-size: @font-size-base;
|
120
118
|
border: @border-width-base @border-style-base @input-border-color;
|
121
119
|
border-radius: @border-radius-base;
|
122
|
-
transition: all .3s;
|
120
|
+
transition: all 0.3s;
|
123
121
|
.placeholder();
|
124
122
|
.disabled();
|
125
123
|
|
@@ -149,17 +147,17 @@
|
|
149
147
|
}
|
150
148
|
}
|
151
149
|
|
152
|
-
|
150
|
+
.@{bk-prefix}-input--suffix-icon {
|
153
151
|
display: flex;
|
154
152
|
height: 100%;
|
155
153
|
padding-right: @input-horizontal-padding;
|
156
154
|
font-size: @input-icon-size;
|
157
155
|
color: @light-gray;
|
156
|
+
cursor: pointer;
|
158
157
|
background-color: @input-bg;
|
159
158
|
align-items: center;
|
160
159
|
align-self: center;
|
161
160
|
flex-shrink: 0;
|
162
|
-
cursor: pointer;
|
163
161
|
|
164
162
|
&:hover {
|
165
163
|
color: #313238;
|
@@ -170,7 +168,7 @@
|
|
170
168
|
}
|
171
169
|
}
|
172
170
|
|
173
|
-
|
171
|
+
.@{bk-prefix}-input--clear-icon {
|
174
172
|
cursor: pointer;
|
175
173
|
flex-shrink: 0;
|
176
174
|
|
@@ -179,8 +177,7 @@
|
|
179
177
|
}
|
180
178
|
}
|
181
179
|
|
182
|
-
|
183
|
-
&--large {
|
180
|
+
.@{bk-prefix}-input--large {
|
184
181
|
.component-size(@component-size-large, @font-size-medium);
|
185
182
|
.placeholder(@font-size-medium);
|
186
183
|
|
@@ -195,7 +192,7 @@
|
|
195
192
|
}
|
196
193
|
}
|
197
194
|
|
198
|
-
|
195
|
+
.@{bk-prefix}-input--small {
|
199
196
|
.component-size(@component-size-small, @font-size-base);
|
200
197
|
|
201
198
|
.@{bk-prefix}-input--max-length {
|
@@ -203,7 +200,7 @@
|
|
203
200
|
}
|
204
201
|
}
|
205
202
|
|
206
|
-
|
203
|
+
.@{bk-prefix}-input--default {
|
207
204
|
font-size: @font-size-base;
|
208
205
|
|
209
206
|
.@{bk-prefix}-input--max-length {
|
@@ -226,10 +223,8 @@
|
|
226
223
|
}
|
227
224
|
}
|
228
225
|
|
229
|
-
|
230
|
-
|
231
|
-
&--prefix-area,
|
232
|
-
&--suffix-area {
|
226
|
+
.@{bk-prefix}-input--prefix-area,
|
227
|
+
.@{bk-prefix}-input--suffix-area {
|
233
228
|
display: flex;
|
234
229
|
padding: 0 @input-horizontal-padding;
|
235
230
|
color: @default-color;
|
@@ -238,16 +233,16 @@
|
|
238
233
|
align-items: center;
|
239
234
|
}
|
240
235
|
|
241
|
-
|
236
|
+
.@{bk-prefix}-input--suffix-area {
|
242
237
|
border: 0;
|
243
238
|
border-left: 1px solid @input-border-color;
|
244
239
|
}
|
245
240
|
|
246
|
-
|
241
|
+
.@{bk-prefix}-input--max-length {
|
247
242
|
align-self: center;
|
248
243
|
padding-right: @input-horizontal-padding;
|
249
244
|
font-size: 12px;
|
250
|
-
transform: scale(.8);
|
245
|
+
transform: scale(0.8);
|
251
246
|
|
252
247
|
&.is-over-limit {
|
253
248
|
color: @danger-color;
|
@@ -258,7 +253,7 @@
|
|
258
253
|
}
|
259
254
|
}
|
260
255
|
|
261
|
-
|
256
|
+
.@{bk-prefix}-input--text {
|
262
257
|
width: 100%;
|
263
258
|
padding: 0 @input-horizontal-padding;
|
264
259
|
overflow: hidden;
|
@@ -272,7 +267,7 @@
|
|
272
267
|
border-radius: @border-radius-base;
|
273
268
|
outline: none;
|
274
269
|
box-sizing: border-box;
|
275
|
-
transition: all .3s;
|
270
|
+
transition: all 0.3s;
|
276
271
|
flex: 1;
|
277
272
|
|
278
273
|
//Chrome
|
@@ -301,11 +296,9 @@
|
|
301
296
|
margin: 0;
|
302
297
|
appearance: none;
|
303
298
|
}
|
304
|
-
|
305
|
-
|
306
299
|
}
|
307
300
|
|
308
|
-
|
301
|
+
.@{bk-prefix}-input--number-control {
|
309
302
|
display: flex;
|
310
303
|
width: 26px;
|
311
304
|
height: 100%;
|
@@ -347,12 +340,13 @@
|
|
347
340
|
}
|
348
341
|
|
349
342
|
// 去掉自动填充时的背景颜色
|
343
|
+
|
350
344
|
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
351
345
|
input:-webkit-autofill,
|
352
346
|
input:-webkit-autofill:hover,
|
353
347
|
input:-webkit-autofill:focus,
|
354
348
|
input:-webkit-autofill:active {
|
355
|
-
|
349
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
356
350
|
box-shadow: 0 0 0 100px @input-bg inset !important;
|
357
351
|
}
|
358
352
|
|
@@ -361,6 +355,6 @@ input:-moz-autofill,
|
|
361
355
|
input:-moz-autofill:hover,
|
362
356
|
input:-moz-autofill:focus,
|
363
357
|
input:-moz-autofill:active {
|
364
|
-
-moz-box-shadow: 0 0 0 100px @input-bg inset !important;
|
365
358
|
box-shadow: 0 0 0 100px @input-bg inset !important;
|
366
|
-
|
359
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
360
|
+
}
|