aboutsummaryrefslogtreecommitdiff
path: root/less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-05-24 21:18:07 -0700
committerMark Otto <[email protected]>2013-05-24 21:18:07 -0700
commit5ea070bdf600a26bbf7da31db94aa76f64c5423f (patch)
treed94cc0582b9fa0446829a8b935f1dff85e77d943 /less
parent3160bd872ee02567ae369ad1d940207523cd5a44 (diff)
parentc47d9932cb8a9d8dedf900f62918e70f7a1f5a50 (diff)
downloadbootstrap-5ea070bdf600a26bbf7da31db94aa76f64c5423f.tar.xz
bootstrap-5ea070bdf600a26bbf7da31db94aa76f64c5423f.zip
Merge branch '3.0.0-wip' of https://github.com/hppycoder/bootstrap into hppycoder-3.0.0-wip
Diffstat (limited to 'less')
-rw-r--r--less/mixins.less10
1 files changed, 5 insertions, 5 deletions
diff --git a/less/mixins.less b/less/mixins.less
index b54b05c4e..bdd787166 100644
--- a/less/mixins.less
+++ b/less/mixins.less
@@ -255,12 +255,12 @@
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down
}
- .vertical(@startColor: #555, @endColor: #333) {
+ .vertical(@startColor: #555, @endColor: #333, @startPercent: 0%, @endPercent: 100%) {
background-color: @endColor;
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
- background-image: -webkit-linear-gradient(top, @startColor, @endColor); // Safari 5.1+, Chrome 10+
- background-image: -moz-linear-gradient(top, @startColor, @endColor); // FF 3.6+
- background-image: linear-gradient(to bottom, @startColor, @endColor); // Standard, IE10
+ background-image: -webkit-gradient(linear, 0 @startPercent, 0 @endPercent, from(@startColor), to(@endColor)); // Safari 4+, Chrome 2+
+ background-image: -webkit-linear-gradient(top, @startColor, @startPercent, @endColor, @endPercent); // Safari 5.1+, Chrome 10+
+ background-image: -moz-linear-gradient(top, @startColor @startPercent, @endColor @endPercent); // FF 3.6+
+ background-image: linear-gradient(to bottom, @startColor @startPercent, @endColor @endPercent); // Standard, IE10
background-repeat: repeat-x;
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down
}