_inputs.scss
3.36 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.form-control::-moz-placeholder{
@include placeholder($medium-gray,1);
}
.form-control:-moz-placeholder{
@include placeholder($medium-gray,1);
}
.form-control::-webkit-input-placeholder{
@include placeholder($medium-gray,1);
}
.form-control:-ms-input-placeholder{
@include placeholder($medium-gray,1);
}
.form-control {
background-color: $white-bg;
border: 1px solid $light-gray;
border-radius: $border-radius-base;
color: #565656;
@include input-size($padding-base-vertical, $padding-base-horizontal - 4, $height-base);
@include box-shadow(none);
&:focus{
background-color: $white-bg;
border: 1px solid $medium-dark-gray;
@include box-shadow(none);
outline: 0 !important;
color: #333333;
}
.has-success &,
.has-error &,
.has-success &:focus,
.has-error &:focus{
border-color: $light-gray;
@include box-shadow(none);
}
.has-success &{
color: $success-color;
}
.has-success &:focus{
border-color: $success-color;
}
.has-error &{
color: $danger-color;
}
.has-error &:focus{
border-color: $danger-color;
}
& + .form-control-feedback{
border-radius: $border-radius-large;
font-size: $font-size-base;
margin-top: -7px;
position: absolute;
right: 10px;
top: 50%;
vertical-align: middle;
}
.open &{
border-radius: $border-radius-base $border-radius-base 0 0;
border-bottom-color: transparent;
}
}
.input-lg{
height: 55px;
padding: $padding-large-vertical $padding-large-horizontal;
}
.has-error{
.form-control-feedback{
color: $danger-color;
}
}
.has-success{
.form-control-feedback{
color: $success-color
}
}
.input-group-addon {
background-color: $white-color;
border: 1px solid $light-gray;
border-radius: $border-radius-base;
.has-success &,
.has-error &{
background-color: $white-color;
border: 1px solid $light-gray;
}
.has-error .form-control:focus + &{
border-color: $danger-color;
color: $danger-color;
}
.has-success .form-control:focus + &{
border-color: $success-color;
color: $success-color;
}
.form-control:focus + &,
.form-control:focus ~ &{
background-color: $white-color;
border-color: $dark-gray;
}
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
border-right: 0 none;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child) {
border-left: 0 none;
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
background-color: $smoke-bg;
color: $default-color;
cursor: not-allowed;
}
.input-group-btn .btn{
border-width: $border-thin;
padding: $padding-round-vertical $padding-base-horizontal;
}
.input-group-btn .btn-default:not(.btn-fill){
border-color: $medium-gray;
}
.input-group-btn:last-child > .btn{
margin-left: 0;
}
.input-group-focus .input-group-addon{
border-color: $dark-gray;
}