@brandup/ui-kit 1.0.19 → 1.0.20
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/package.json +1 -1
- package/source/common.less +2 -0
- package/source/inputs.less +22 -0
- package/vars.less +16 -9
package/package.json
CHANGED
package/source/common.less
CHANGED
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
// popup
|
|
36
36
|
|
|
37
37
|
--popup-fill: @popup-fill;
|
|
38
|
+
--popup-color: @popup-color;
|
|
38
39
|
--popup-border-style: @popup-border-style;
|
|
39
40
|
--popup-border-width: @popup-border-width;
|
|
40
41
|
--popup-border-color: @popup-border-color;
|
|
@@ -123,6 +124,7 @@ svg {
|
|
|
123
124
|
box-sizing: border-box;
|
|
124
125
|
z-index: 1000;
|
|
125
126
|
background: var(--popup-fill);
|
|
127
|
+
color: var(--popup-color);
|
|
126
128
|
border-style: var(--popup-border-style);
|
|
127
129
|
border-color: var(--popup-border-color);
|
|
128
130
|
border-width: var(--popup-border-width);
|
package/source/inputs.less
CHANGED
|
@@ -55,6 +55,12 @@
|
|
|
55
55
|
--incorrect--input-fill: @incorrect--input-fill;
|
|
56
56
|
--incorrect--input-color: @input-color;
|
|
57
57
|
|
|
58
|
+
--expanded--input-color: @expanded--input-color;
|
|
59
|
+
--expanded--input-fill: @expanded--input-fill;
|
|
60
|
+
|
|
61
|
+
--hasvalue--input-color: @hasvalue--input-color;
|
|
62
|
+
--hasvalue--input-fill: @hasvalue--input-fill;
|
|
63
|
+
|
|
58
64
|
// toggler
|
|
59
65
|
--toggler-height: @toggler-height;
|
|
60
66
|
--toggler-padding: @toggler-padding;
|
|
@@ -242,4 +248,20 @@ input[type=checkbox] {
|
|
|
242
248
|
background-color: var(--invalid--input-fill);
|
|
243
249
|
color: var(--invalid--input-color);
|
|
244
250
|
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// состояние для выбранного значения
|
|
254
|
+
|
|
255
|
+
&.hasvalue {
|
|
256
|
+
background: var(--hasvalue--input-fill);
|
|
257
|
+
color: var(--hasvalue--input-color);
|
|
258
|
+
border-radius: var(--input-border-radius);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
// состояние при открытии выпадашки
|
|
262
|
+
|
|
263
|
+
&.expanded {
|
|
264
|
+
background: var(--expanded--input-fill);
|
|
265
|
+
color: var(--expanded--input-color);
|
|
266
|
+
border-radius: var(--input-border-radius);
|
|
245
267
|
}
|
package/vars.less
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
@svg-stroke: none;
|
|
40
40
|
|
|
41
41
|
@popup-fill: @main-background;
|
|
42
|
+
@popup-color: @text-color;
|
|
42
43
|
@popup-border-style: solid;
|
|
43
44
|
@popup-border-width: 1px;
|
|
44
45
|
@popup-border-color: #aaa;
|
|
@@ -58,8 +59,8 @@
|
|
|
58
59
|
@input-fill: #fff;
|
|
59
60
|
|
|
60
61
|
@input-width: auto;
|
|
61
|
-
@input-height:
|
|
62
|
-
@input-padding-lr:
|
|
62
|
+
@input-height: 46px;
|
|
63
|
+
@input-padding-lr: 20px;
|
|
63
64
|
@textarea-size: 100px;
|
|
64
65
|
|
|
65
66
|
@input-color: @text-color;
|
|
@@ -68,28 +69,34 @@
|
|
|
68
69
|
@input-font-weight: inherit;
|
|
69
70
|
@input-font-style: inherit;
|
|
70
71
|
|
|
71
|
-
@hover--input-border-color: #
|
|
72
|
-
@hover--input-fill:
|
|
73
|
-
@hover--input-color:
|
|
72
|
+
@hover--input-border-color: #666666;
|
|
73
|
+
@hover--input-fill: #fff;
|
|
74
|
+
@hover--input-color: inherit;
|
|
74
75
|
|
|
75
|
-
@focus--input-border-color: #
|
|
76
|
+
@focus--input-border-color: #222222;
|
|
76
77
|
@focus--input-fill: @input-fill;
|
|
77
|
-
@focus--input-color:
|
|
78
|
+
@focus--input-color: inherit;
|
|
78
79
|
|
|
79
80
|
@readonly--input-fill: #f7f7f7;
|
|
80
81
|
@readonly--input-color: @input-color;
|
|
81
82
|
|
|
82
83
|
@disabled--input-border-color: #aaa;
|
|
83
84
|
@disabled--input-fill: #eee;
|
|
84
|
-
@disabled--input-color: @input-color;
|
|
85
|
+
@disabled--input-color: lighten(@input-color, 50%);
|
|
85
86
|
|
|
86
87
|
@invalid--input-border-color: red;
|
|
87
88
|
@invalid--input-fill: rgb(255, 220, 220);
|
|
88
|
-
@invalid--input-color:
|
|
89
|
+
@invalid--input-color: inherit;
|
|
89
90
|
|
|
90
91
|
@incorrect--input-fill: rgb(255, 220, 220);
|
|
91
92
|
@incorrect--input-color: inherit;
|
|
92
93
|
|
|
94
|
+
@expanded--input-fill: #fff; // переменные для выпадашки
|
|
95
|
+
@expanded--input-color: inherit;
|
|
96
|
+
|
|
97
|
+
@hasvalue--input-fill: #fff; // переменные для выбранного значения
|
|
98
|
+
@hasvalue--input-color: @input-color;
|
|
99
|
+
|
|
93
100
|
@toggler-height: 30px;
|
|
94
101
|
@toggler-padding: 3px;
|
|
95
102
|
@toggler-round-fill: @focus--input-border-color;
|