Added "debug" mixin.

My goto for troubleshooting CSS is slapping a single pixel red border around the element. .debug does just that. Optional parameters are color and "style" (which by default is 1px solid).
This commit is contained in:
Josh Sherman 2013-01-27 10:42:38 -05:00
parent 191754c0ec
commit 82de98776f

View file

@ -1,5 +1,5 @@
/*---------------------------------------------------
LESS Elements 0.9
LESS Elements 0.9 + My Hax0rin
---------------------------------------------------
A set of useful LESS mixins
More info at: http://lesselements.com
@ -153,4 +153,7 @@
-moz-background-clip: @argument;
-webkit-background-clip: @argument;
background-clip: @argument;
}
}
.debug(@color: red, @sizeStyle: 1px solid) {
border: @sizeStyle @color;
}