]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
wrap box-shadows in mixin in custom forms. fixes #17242
authorMark Otto <markdotto@gmail.com>
Mon, 24 Aug 2015 06:13:14 +0000 (23:13 -0700)
committerMark Otto <markdotto@gmail.com>
Mon, 24 Aug 2015 06:13:14 +0000 (23:13 -0700)
scss/_custom-forms.scss

index c63c9c18569e1712ed9393fd70830353343f2dd3..0565f2f754ced8ccfd8c2e82920caac3dc917275 100644 (file)
   &:focus {
     border-color: #51a7e8;
     outline: none;
-    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5);
+    @include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 5px rgba(81, 167, 232, 0.5));
   }
 
   // Hides the default caret in IE11
   background-color: #fff;
   border: .075rem solid #ddd;
   border-radius: .25rem;
-  box-shadow: inset 0 .2rem .4rem rgba(0,0,0,.05);
+  @include box-shadow(inset 0 .2rem .4rem rgba(0,0,0,.05));
 }
 .file-custom:after {
   content: "Choose file...";
 
 // Focus state
 .file input:focus ~ .file-custom {
-  box-shadow: 0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9;
+  @include box-shadow(0 0 0 .075rem #fff, 0 0 0 .2rem #0074d9);
 }