]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
No longer need to write box-shadows in full when using lighten or other functions
authorLuis Aleman <Luis@toppatch.com>
Mon, 27 Aug 2012 23:13:11 +0000 (19:13 -0400)
committerLuis Aleman <Luis@toppatch.com>
Mon, 27 Aug 2012 23:13:11 +0000 (19:13 -0400)
less/mixins.less

index 989ac0d70645804aa59c3c6bae84a89b38800883..7fcd14c8e4d81f2d2e8ff18bb4b4ec72b5c77ce0 100644 (file)
     .box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
     &:focus {
       border-color: darken(@borderColor, 10%);
-      // Write out in full since the lighten() function isn't easily escaped
-      -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
-         -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
-              box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%);
+      .box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@borderColor, 20%));
     }
   }
   // Give a small background color for input-prepend/-append