blob: 2b69341de4640dbe316dd5879862e6d7cde36099 (
plain) (
blame)
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
|
// Forms
.form-group:not(:last-child) {
margin-bottom: 1rem;
}
.form-input {
position: relative;
display: block;
width: 100%;
max-width: 100%;
height: 3.2rem;
background-color: #fff;
background-image: none;
border: .1rem solid @control-color;
border-radius: 3px;
color: @body-font-color;
font-size: 1.4rem;
line-height: 1.6rem;
padding: .7rem .8rem;
-webkit-appearance: none;
outline: 0;
&:focus {
border-color: @core-color;
}
&[disabled] {
opacity: .75;
background-color: #eeeff2;
pointer-events: none;
}
// Input Small
&.input-sm {
height: 2.4rem;
border-radius: 2px;
font-size: 1.2rem;
line-height: 1.4rem;
padding: .4rem .6rem;
}
// Input Large
&.input-lg {
height: 4.2rem;
border-radius: 4px;
font-size: 1.8rem;
line-height: 2rem;
padding: 1rem 1.2rem;
}
// Input Inline
&.input-inline {
width: auto;
display: inline-block;
}
// Textarea
textarea& {
height: auto;
}
// Status
&.is-success {
border-color: @control-color-success;
}
&.is-danger {
border-color: @control-color-danger;
}
// TODO: Input with icons
}
.form-label {
display: block;
margin-bottom: .5rem;
}
.form-select {
&:not([multiple]) {
height: 3.2rem;
background-color: #fff;
font-size: 1.4rem;
line-height: 1.6rem;
padding: .7rem .8rem;
border: .1rem solid @control-color;
border-radius: 3px;
outline: 0;
}
&:focus {
border-color: @core-color;
}
}
|