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