by Steven17. September 2012 12:09I've been working on the Bootstrap mixins today and ran into an issue with arguments - i'm not sure is this is specific to the compiler I am using or a more general problem but i understand it is being removed in the next version (2.2) anyway. The fix can be found here - and repeated below for brevity (you escape any calls to .box-shadow but wrapping the function call in quotes).
.box-shadow(@shadow) {-webkit-box-shadow: @shadow;-moz-box-shadow: @shadow;box-shadow: @shadow;
}
.element {.box-shadow(~"0 1px 3px #eee, 0 5px 10px #f5f5f5");
}
You can then download a compiler from http://www.dotlesscss.org and run bootstrap through it as follows:
dotless.Compiler bootstrap.less bootstrap.css
a75718e9-4fdb-48a5-90ee-0bb23a7fb3fa|0|.0|27604f05-86ad-47ef-9e05-950bb762570c
Tags: css
Tech