@mixin form-control-validation-severity-state($color) {
background-image: escape-svg(url("data:image/svg+xml,"));
&:focus {
border-color: $color;
box-shadow: 0 0 0 $form-select-focus-width rgba($color, .25);
}
}
@mixin form-select-validation-severity-state($color) {
background-image: escape-svg(url("data:image/svg+xml,"));
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
&:focus {
box-shadow: 0 0 0 $form-select-focus-width rgba($color, .25);
}
}
@mixin form-check-input-validation-severity-state($color) {
& {
border-color: $color;
}
&:checked {
background-color: $color;
}
& ~ .form-check-label {
color: unset;
}
&:focus {
box-shadow: 0 0 0 0.2rem rgba($color, .25);
}
}