From f9324de2620c96512951efa1423ce0013cf3d888 Mon Sep 17 00:00:00 2001 From: Mark Perkins Date: Fri, 3 Aug 2012 12:19:40 +0100 Subject: [PATCH] Clean up border-radius helper Simplified mixins after suggestion from @aron --- examples/css/example.css | 2 +- mixins/helpers.less | 22 ++++------------------ 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/examples/css/example.css b/examples/css/example.css index 3929802..6c567ce 100644 --- a/examples/css/example.css +++ b/examples/css/example.css @@ -398,7 +398,7 @@ h2 { display: block; margin: 10px 0; border: 0; - font: 0/0 a; + font: a; text-shadow: none; color: transparent; background-color: transparent; diff --git a/mixins/helpers.less b/mixins/helpers.less index a79fafc..e0137dd 100644 --- a/mixins/helpers.less +++ b/mixins/helpers.less @@ -4,24 +4,10 @@ // Shortcuts -------------------------------- -.border-radius(@radius: 5px) { - -moz-border-radius: @radius; - border-radius: @radius; -} - -.border-radius(@top-left: 5px, @top-right: 5px, @bottom-left: 5px, @bottom-right: 5px) { - -webkit-border-top-left-radius: @top-left; - -webkit-border-top-right-radius: @top-right; - -webkit-border-bottom-left-radius: @bottom-left; - -webkit-border-bottom-right-radius: @bottom-right; - -moz-border-radius-topleft: @top-left; - -moz-border-radius-topright: @top-right; - -moz-border-radius-bottomleft: @bottom-left; - -moz-border-radius-bottomright: @bottom-right; - border-top-left-radius: @top-left; - border-top-right-radius: @top-right; - border-bottom-left-radius: @bottom-left; - border-bottom-right-radius: @bottom-right; +.border-radius(@radius:5px) { + -webkit-border-radius: @arguments; + -moz-border-radius: @arguments; + border-radius: @arguments; } .box-sizing(@type: border-box) {