AdminLTE/build/less/forms.less

95 lines
1.6 KiB
Plaintext
Raw Normal View History

2015-02-01 21:25:09 +00:00
/*
* Component: Form
* ---------------
*/
2015-02-07 16:35:34 +00:00
.form-control {
2015-07-21 02:36:04 +00:00
.border-radius(@input-radius);
2015-02-01 21:25:09 +00:00
box-shadow: none;
border-color: @gray;
&:focus {
2015-07-21 02:36:04 +00:00
border-color: @light-blue;
2015-02-01 21:25:09 +00:00
box-shadow: none;
}
2015-07-21 02:36:04 +00:00
&::-moz-placeholder,
&:-ms-input-placeholder,
2015-02-01 21:25:09 +00:00
&::-webkit-input-placeholder {
color: #bbb;
2015-07-21 02:36:04 +00:00
opacity: 1;
2015-02-01 21:25:09 +00:00
}
2015-02-25 15:13:11 +00:00
&:not(select) {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
2015-02-01 21:25:09 +00:00
}
.form-group {
&.has-success {
label {
color: @green;
}
.form-control {
2015-07-21 02:36:04 +00:00
border-color: @green;
2015-02-01 21:25:09 +00:00
box-shadow: none;
}
}
&.has-warning {
label {
color: @yellow;
}
.form-control {
2015-07-21 02:36:04 +00:00
border-color: @yellow;
2015-02-01 21:25:09 +00:00
box-shadow: none;
}
}
&.has-error {
label {
color: @red;
}
.form-control {
2015-07-21 02:36:04 +00:00
border-color: @red;
2015-02-01 21:25:09 +00:00
box-shadow: none;
}
}
}
/* Input group */
.input-group {
.input-group-addon {
.border-radius(@input-radius);
border-color: @gray;
background-color: #fff;
}
}
/* button groups */
.btn-group-vertical {
.btn {
&.btn-flat:first-of-type, &.btn-flat:last-of-type {
.border-radius(0);
}
}
}
2015-02-06 22:08:16 +00:00
.icheck > label {
2015-02-01 21:25:09 +00:00
padding-left: 0;
}
/* support Font Awesome icons in form-control */
.form-control-feedback.fa {
line-height: @input-height-base;
}
.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-large;
}
.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-small;
}