]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix focus shadows, if enabled
authorMark Otto <markdotto@gmail.com>
Sun, 9 Oct 2016 23:44:04 +0000 (16:44 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 9 Oct 2016 23:44:04 +0000 (16:44 -0700)
scss/mixins/_forms.scss

index e2bead1801c967798b9f50efa610a0a79bf92ab3..a8d501b448d8ad5061b78794a90b0883e5feff33 100644 (file)
   .custom-control {
     color: $color;
   }
+
   // Set the border and box shadow on specific inputs to match
   .form-control {
     border-color: $color;
-    // @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
 
-    &:focus {
-      // border-color: darken($border-color, 10%);
-      // $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($border-color, 20%);
-      // @include box-shadow($shadow);
+    @if $enable-rounded {
+      &:focus {
+        box-shadow: $input-box-shadow, 0 0 6px lighten($color, 20%)
+      }
     }
   }