benivo-ui-library 1.7.10 → 1.7.12
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/benivo-ui-lib.less +8 -8
- package/checkbox.less +96 -3
- package/index.js +1 -1
- package/input.less +105 -14
- package/mixins.less +8 -0
- package/package.json +8 -1
- package/tooltip.less +215 -92
package/benivo-ui-lib.less
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
@import "
|
|
3
|
-
@import '
|
|
4
|
-
@import '
|
|
5
|
-
@import '
|
|
6
|
-
@import '
|
|
7
|
-
|
|
8
|
-
@import '
|
|
1
|
+
// @import "../components/input/input.less";
|
|
2
|
+
// @import "../components/tooltip/tooltip.less";
|
|
3
|
+
// @import '../components/button/button.less';
|
|
4
|
+
// @import '../components/checkbox/checkbox.less';
|
|
5
|
+
// @import '../components/radiobutton/radiobutton.less';
|
|
6
|
+
// @import '../components/select/select.less';
|
|
7
|
+
// @import '../components/navigation/navigation.less';
|
|
8
|
+
// @import '../components/swiperSlider/swiper/swiper.less';
|
package/checkbox.less
CHANGED
|
@@ -58,10 +58,26 @@
|
|
|
58
58
|
|
|
59
59
|
input {
|
|
60
60
|
&:checked {
|
|
61
|
-
|
|
61
|
+
&+label:before {
|
|
62
62
|
background-color: @form-placeholder-color;
|
|
63
63
|
border-color: @form-placeholder-color;
|
|
64
64
|
}
|
|
65
|
+
|
|
66
|
+
&+label:after {
|
|
67
|
+
color: #ffffff;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.checkbox-loading-state {
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
input {
|
|
76
|
+
&:checked {
|
|
77
|
+
&+label:before {
|
|
78
|
+
background-color: #ffffff;
|
|
79
|
+
border-color: @form-border-color;
|
|
80
|
+
}
|
|
65
81
|
}
|
|
66
82
|
}
|
|
67
83
|
}
|
|
@@ -70,12 +86,12 @@
|
|
|
70
86
|
display: none;
|
|
71
87
|
|
|
72
88
|
&:checked {
|
|
73
|
-
|
|
89
|
+
&+label:before {
|
|
74
90
|
background-color: @form-checkbox-active-color;
|
|
75
91
|
border-color: @form-checkbox-active-color;
|
|
76
92
|
}
|
|
77
93
|
|
|
78
|
-
|
|
94
|
+
&+label:after {
|
|
79
95
|
display: inline-block;
|
|
80
96
|
position: absolute;
|
|
81
97
|
left: 0.25rem;
|
|
@@ -86,6 +102,12 @@
|
|
|
86
102
|
color: #ffffff;
|
|
87
103
|
}
|
|
88
104
|
}
|
|
105
|
+
|
|
106
|
+
&:hover:not(:checked):not(:disabled) {
|
|
107
|
+
&+label:before {
|
|
108
|
+
border-color: @form-checkbox-active-color;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
89
111
|
}
|
|
90
112
|
|
|
91
113
|
label:hover {
|
|
@@ -121,6 +143,12 @@
|
|
|
121
143
|
align-items: center;
|
|
122
144
|
.border-radius(.25rem);
|
|
123
145
|
}
|
|
146
|
+
|
|
147
|
+
label[data-focus-click]:focus-visible:before {
|
|
148
|
+
outline: 1px auto Highlight;
|
|
149
|
+
outline: 1px auto -webkit-focus-ring-color;
|
|
150
|
+
}
|
|
151
|
+
|
|
124
152
|
// Validation
|
|
125
153
|
input {
|
|
126
154
|
&.field-invalid {
|
|
@@ -161,6 +189,71 @@
|
|
|
161
189
|
}
|
|
162
190
|
}
|
|
163
191
|
}
|
|
192
|
+
|
|
193
|
+
&.on-off {
|
|
194
|
+
padding-left: 40px;
|
|
195
|
+
|
|
196
|
+
&.right-side {
|
|
197
|
+
padding-left: 0;
|
|
198
|
+
padding-right: 40px;
|
|
199
|
+
|
|
200
|
+
.on-off-slide {
|
|
201
|
+
left: initial;
|
|
202
|
+
right: 0;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.on-off-slide {
|
|
207
|
+
width: 36px;
|
|
208
|
+
height: 20px;
|
|
209
|
+
position: absolute;
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
top: 0;
|
|
212
|
+
left: 0;
|
|
213
|
+
right: 0;
|
|
214
|
+
bottom: 0;
|
|
215
|
+
.border-radius(18px);
|
|
216
|
+
background-color: #ccc;
|
|
217
|
+
.transition(.4s);
|
|
218
|
+
|
|
219
|
+
&:before {
|
|
220
|
+
position: absolute;
|
|
221
|
+
content: "";
|
|
222
|
+
height: 16px;
|
|
223
|
+
width: 16px;
|
|
224
|
+
left: 2px;
|
|
225
|
+
bottom: 2px;
|
|
226
|
+
top: 2px;
|
|
227
|
+
.border-radius(50%);
|
|
228
|
+
background-color: white;
|
|
229
|
+
.transition(.4s);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&.disabled {
|
|
233
|
+
.filter(grayscale(100%));
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
input:checked+.on-off-slide {
|
|
238
|
+
background-color: @primary-color;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
input:focus+.on-off-slide {
|
|
242
|
+
.box-shadow(0 0 1px @primary-color);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
input:checked+.on-off-slide:before {
|
|
246
|
+
.transform(translateX(16px));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
input:checked+label:after {
|
|
250
|
+
content: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
label:before {
|
|
254
|
+
content: none;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
164
257
|
}
|
|
165
258
|
|
|
166
259
|
.form-row {
|