]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Bump up from 2px to 3px so it's consistent; also fix focus of inputs
authorMark Otto <markdotto@gmail.com>
Sun, 9 Apr 2017 04:24:03 +0000 (21:24 -0700)
committerMark Otto <markdotto@gmail.com>
Sun, 9 Apr 2017 04:24:03 +0000 (21:24 -0700)
scss/_variables.scss
scss/mixins/_buttons.scss

index d277011b213e0fcb83a6f22e1769763f8e7e0316..c173395756969f08c5ad7232d5b4013b86f5d6b1 100644 (file)
@@ -352,7 +352,7 @@ $input-btn-line-height-lg:  1.5 !default;
 
 $btn-font-weight:                $font-weight-normal !default;
 $btn-box-shadow:                 inset 0 1px 0 rgba($white,.15), 0 1px 1px rgba($black,.075) !default;
-$btn-focus-box-shadow:           0 0 0 2px rgba($brand-primary, .25) !default;
+$btn-focus-box-shadow:           0 0 0 3px rgba($brand-primary, .25) !default;
 $btn-active-box-shadow:          inset 0 3px 5px rgba($black,.125) !default;
 
 $btn-primary-color:              $white !default;
@@ -407,7 +407,7 @@ $input-border-radius-sm:         $border-radius-sm !default;
 
 $input-bg-focus:                 $input-bg !default;
 $input-border-focus:             lighten($brand-primary, 25%) !default;
-$input-box-shadow-focus:         $input-box-shadow, rgba($input-border-focus, .6) !default;
+$input-box-shadow-focus:         $input-box-shadow, $btn-focus-box-shadow !default;
 $input-color-focus:              $input-color !default;
 
 $input-color-placeholder:        $gray-light !default;
index 47f2834ff591061de7108c1f7593890950554724..f5ca3aa71cc2a3a495b10c90481f4943761398bb 100644 (file)
@@ -22,9 +22,9 @@
   &.focus {
     // Avoid using mixin so we can pass custom focus shadow properly
     @if $enable-shadows {
-      box-shadow: $btn-box-shadow, 0 0 0 2px rgba($border, .5);
+      box-shadow: $btn-box-shadow, 0 0 0 3px rgba($border, .5);
     } @else {
-      box-shadow: 0 0 0 2px rgba($border, .5);
+      box-shadow: 0 0 0 3px rgba($border, .5);
     }
   }
 
@@ -60,7 +60,7 @@
 
   &:focus,
   &.focus {
-    box-shadow: 0 0 0 2px rgba($color, .5);
+    box-shadow: 0 0 0 3px rgba($color, .5);
   }
 
   &.disabled,