2015-10-31 22:00:16 +01:00
|
|
|
/*
|
|
|
|
* Component: Form
|
|
|
|
* ---------------
|
|
|
|
*/
|
|
|
|
.form-control {
|
2016-10-22 21:32:28 +02:00
|
|
|
//@include border-radius($input-radius);
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: none;
|
2016-10-22 21:32:28 +02:00
|
|
|
//border-color: $gray;
|
2015-10-31 22:00:16 +01:00
|
|
|
&:focus {
|
2016-01-16 17:27:23 +01:00
|
|
|
border-color: $brand-primary;
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
&::-moz-placeholder,
|
|
|
|
&:-ms-input-placeholder,
|
|
|
|
&::-webkit-input-placeholder {
|
|
|
|
color: #bbb;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(select) {
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-group {
|
|
|
|
&.has-success {
|
|
|
|
label {
|
2016-01-16 17:27:23 +01:00
|
|
|
color: $brand-success;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
.form-control {
|
2016-01-16 17:27:23 +01:00
|
|
|
border-color: $brand-success;
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-warning {
|
|
|
|
label {
|
2016-01-16 17:27:23 +01:00
|
|
|
color: $brand-warning;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
.form-control {
|
2016-01-16 17:27:23 +01:00
|
|
|
border-color: $brand-warning;
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.has-error {
|
|
|
|
label {
|
2016-01-16 17:27:23 +01:00
|
|
|
color: $brand-danger;
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
.form-control {
|
2016-01-16 17:27:23 +01:00
|
|
|
border-color: $brand-danger;
|
2015-10-31 22:00:16 +01:00
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
2016-10-19 17:24:30 +02:00
|
|
|
|
|
|
|
&.has-icon {
|
|
|
|
position: relative;
|
|
|
|
.form-control {
|
|
|
|
padding-right: 35px;
|
|
|
|
}
|
|
|
|
.form-icon {
|
|
|
|
cursor: pointer;
|
|
|
|
position: absolute;
|
|
|
|
right: 3px;
|
|
|
|
top: 0;
|
|
|
|
padding: $input-padding-y $input-padding-x;
|
|
|
|
margin-top: -3px;
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 22:00:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Input group */
|
|
|
|
.input-group {
|
|
|
|
.input-group-addon {
|
2016-10-22 21:32:28 +02:00
|
|
|
//@include border-radius($input-radius);
|
2015-10-31 22:00:16 +01:00
|
|
|
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(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icheck > label {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* support Font Awesome icons in form-control */
|
|
|
|
.form-control-feedback.fa {
|
|
|
|
line-height: $input-height;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-lg + .form-control-feedback.fa,
|
|
|
|
.input-group-lg + .form-control-feedback.fa,
|
|
|
|
.form-group-lg .form-control + .form-control-feedback.fa {
|
|
|
|
line-height: $input-height-lg;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-sm + .form-control-feedback.fa,
|
|
|
|
.input-group-sm + .form-control-feedback.fa,
|
|
|
|
.form-group-sm .form-control + .form-control-feedback.fa {
|
|
|
|
line-height: $input-height-sm;
|
|
|
|
}
|