mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-27 07:14:36 +02:00
trying out new validation styles
This commit is contained in:
@@ -255,11 +255,21 @@ select.form-control-lg {
|
||||
background-size: ($input-height-inner / 2) ($input-height-inner / 2);
|
||||
}
|
||||
|
||||
.form-control-validated,
|
||||
.is-validated {
|
||||
padding-right: ($input-btn-padding-x * 3);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center right ($input-height-inner / 4);
|
||||
background-size: ($input-height-inner / 2) ($input-height-inner / 2);
|
||||
}
|
||||
|
||||
// Form validation states
|
||||
.has-success {
|
||||
@include form-control-validation($brand-success);
|
||||
|
||||
.form-control-success {
|
||||
.form-control-success,
|
||||
.form-control-validated,
|
||||
.is-validated {
|
||||
background-image: $form-icon-success;
|
||||
}
|
||||
}
|
||||
@@ -267,7 +277,9 @@ select.form-control-lg {
|
||||
.has-warning {
|
||||
@include form-control-validation($brand-warning);
|
||||
|
||||
.form-control-warning {
|
||||
.form-control-warning,
|
||||
.form-control-validated,
|
||||
.is-validated {
|
||||
background-image: $form-icon-warning;
|
||||
}
|
||||
}
|
||||
@@ -275,7 +287,9 @@ select.form-control-lg {
|
||||
.has-danger {
|
||||
@include form-control-validation($brand-danger);
|
||||
|
||||
.form-control-danger {
|
||||
.form-control-danger,
|
||||
.form-control-validated,
|
||||
.is-validated {
|
||||
background-image: $form-icon-danger;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user