From 82de98776f4b21fc5d2672cc9c4fe8a9af6b7930 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Sun, 27 Jan 2013 10:42:38 -0500 Subject: [PATCH] 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). --- elements.less | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/elements.less b/elements.less index 9e45973..e8c33fa 100644 --- a/elements.less +++ b/elements.less @@ -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; -} \ No newline at end of file +} +.debug(@color: red, @sizeStyle: 1px solid) { + border: @sizeStyle @color; +}