forked from relax/relax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.less
106 lines (91 loc) · 1.41 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
95
96
97
98
99
100
101
102
103
104
105
106
.input {
.roundedCorners(2px);
max-width: 480px;
position: relative;
input {
border: 0;
background: transparent;
box-shadow: none;
width: 100%;
max-width: 480px;
display: block;
outline: none;
border: 1px solid #383838;
border-radius: 3px;
padding: 7px 7px;
font-size: 13px;
color: #efefef;
.transition();
&:focus {
border-color: @adminPrimary;
}
}
&.block {
max-width: none;
display: block;
input {
max-width: none;
}
}
&.big {
input {
font-size: 17px;
}
}
&.white {
input {
border-color: #cccccc;
color: #333333;
}
}
&.disabled {
.opacity(0.5);
}
&.with-state {
input {
padding-right: 34px;
}
}
.state {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 35px;
>* {
position: absolute;
top: 50%;
left: 50%;
line-height: 21px;
height: 21px;
.transform(translate(-50%, -50%));
}
i {
font-size: 16px;
}
&.valid i {
color: @success;
}
&.invalid i {
color: @alert;
}
}
}
input.valid {
border: 1px solid #00ff00;
}
input.invalid {
border: 1px solid #ff0000;
}
// White areas
.white-options {
.input {
input {
border-color: #cccccc;
color: #333333;
&:focus {
border-color: @adminPrimary;
}
}
}
}