forked from pterolex/react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Input.less
94 lines (77 loc) · 1.84 KB
/
Input.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
@text-color: #707171;
.WLC-Input {
font-family: 'Ubuntu Light', Helvetica;
font-size: 10pt;
position: relative;
width: 70px;
height: 20px;
input {
font-family: 'Ubuntu Light', Helvetica;
font-size: 10pt;
position: absolute;
z-index: 10;
right: 14px;
width: 40px;
padding: 4px 12px 3px 6px;
text-align: center;
border: 2px solid #fff;
background-color: #fff;
-webkit-appearance: none;
&.WLC-error {
border: 2px solid #ed1d39;
&:focus {
border: 2px solid #ed1d39;
}
}
&.WLC-warning {
border: 2px solid #fec114;
&:focus {
border: 2px solid #fec114;
}
}
&:focus {
outline: 0;
}
&.WLC-focused {
z-index: 20;
right: 5px;
width: 60px;
box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
}
&[disabled] {
background-color: #ececec;
}
}
.WLC-warning-text {
font-family: 'Ubuntu Light',Helvetica;
font-size: 7pt;
position: absolute;
bottom: 7px;
left: -8px;
width: 80px;
height: 10px;
padding: 2px 0;
text-align: center;
color: #fff;
border-radius: 1px;
&.WLC-warning {
background-color: #fec114;
}
&.WLC-error {
background-color: #ed1d39;
}
}
.WLC-appendix {
position: absolute;
bottom: 4px;
left: 29px;
width: 5px;
height: 3px;
&.WLC-error {
background: url('Input/appendix-error.svg');
}
&.WLC-warning {
background: url('Input/appendix-warning.svg');
}
}
}