From ae244543b43aac5b5622d4079ca8f7d2c11bb506 Mon Sep 17 00:00:00 2001 From: Eduard Neculaesi <neculaesi.eduard@gmail.com> Date: Sat, 7 Jan 2012 19:25:20 +0200 Subject: [PATCH] Add border shorthand. --- lib/mixins.less | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/mixins.less b/lib/mixins.less index 4a05133c65..7b8d455665 100644 --- a/lib/mixins.less +++ b/lib/mixins.less @@ -95,6 +95,14 @@ .columns(@columnSpan); } +// Border shorthand +.border(@top: 1px, @right: 1px, @bottom: 1px, @left: 1px, @color: #000, @type: solid) { + border-top: @top @type @color; + border-right: @right @type @color; + border-bottom: @bottom @type @color; + border-left: @left @type @color; +} + // Border Radius .border-radius(@radius: 5px) { -webkit-border-radius: @radius; @@ -219,4 +227,4 @@ -khtml-opacity: @opacity / 100; -moz-opacity: @opacity / 100; opacity: @opacity / 100; -} \ No newline at end of file +} -- GitLab