Revert "feat: Add css-support for invalid form input elements"

This reverts commit b1aa84804b.
This commit is contained in:
Johannes Schill 2019-02-13 07:46:21 +01:00
parent 44eaa3eaa8
commit b6305c2d80
2 changed files with 4 additions and 15 deletions

View File

@ -203,7 +203,7 @@ $input-border: 1px solid $input-border-color;
}
// Customize the `:focus` state to imitate native WebKit styles.
@include form-control-focus(false);
@include form-control-focus();
// Placeholder
&::placeholder {
@ -251,10 +251,6 @@ $input-border: 1px solid $input-border-color;
&--plaintext {
white-space: unset;
}
&--invalid {
@include form-control-focus(true);
}
}
.gf-form-hint {

View File

@ -30,19 +30,12 @@
}
}
@mixin form-control-focus($error) {
@mixin form-control-focus() {
&:focus {
$shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 5px $input-box-shadow-focus;
border-color: $input-border-focus;
outline: none;
@if $error == true {
border-color: $brand-warning;
$shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 5px $brand-warning;
}
$shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
0 0 5px $input-box-shadow-focus;
@include box-shadow($shadow);
}
}