_forms.scss
1.3 KB
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
/*
* Component: Form
* ---------------
*/
.form-control {
@include border-radius-same($input-radius !important);
box-shadow: none;
border-color: $gray;
&:focus {
border-color: $light-blue !important;
box-shadow: none;
}
&::-moz-placeholder {
color: #bbb;
opacity: 1;
}
&:-ms-input-placeholder {
color: #bbb;
}
&::-webkit-input-placeholder {
color: #bbb;
}
&:not(select) {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
}
.form-group {
&.has-success {
label {
color: $green;
}
.form-control {
border-color: $green !important;
box-shadow: none;
}
}
&.has-warning {
label {
color: $yellow;
}
.form-control {
border-color: $yellow !important;
box-shadow: none;
}
}
&.has-error {
label {
color: $red;
}
.form-control {
border-color: $red !important;
box-shadow: none;
}
}
}
/* Input group */
.input-group {
.input-group-addon {
@include border-radius-same($input-radius);
border-color: $gray;
background-color: #fff;
}
}
/* button groups */
.btn-group-vertical {
.btn {
&.btn-flat:first-of-type, &.btn-flat:last-of-type {
@include border-radius-same(0);
}
}
}
.icheck > label {
padding-left: 0;
}