From cdbe27d9d1082ace683a7eea4d59465d2ab9e007 Mon Sep 17 00:00:00 2001 From: Michael Romanenko Date: Mon, 26 Sep 2011 04:12:05 +0600 Subject: [PATCH] Prevent bg color from leaking outside the border --- elements.less | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements.less b/elements.less index 9e3cb73..07233b9 100644 --- a/elements.less +++ b/elements.less @@ -54,6 +54,7 @@ -webkit-border-radius: @radius; -moz-border-radius: @radius; border-radius: @radius; + -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; } .border-radius(@topright: 0, @bottomright: 0, @bottomleft: 0, @topleft: 0) { -webkit-border-top-right-radius: @topright; @@ -68,6 +69,7 @@ border-bottom-right-radius: @bottomright; border-bottom-left-radius: @bottomleft; border-top-left-radius: @topleft; + -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box; } .opacity(@opacity: 0.5) { -moz-opacity: @opacity;