diff options
| author | David Hirtle <[email protected]> | 2012-05-04 13:50:16 -0700 |
|---|---|---|
| committer | David Hirtle <[email protected]> | 2012-05-04 13:50:16 -0700 |
| commit | 452d8c1df0fe75acfc9431a0b0f349f85a6c1fd1 (patch) | |
| tree | 0fd752825afeaf56b33cbbb00b22e1b5bb732bca /less | |
| parent | ef368f0076523a8d0cd6b411549d7e9af9d1cf98 (diff) | |
| download | bootstrap-452d8c1df0fe75acfc9431a0b0f349f85a6c1fd1.tar.xz bootstrap-452d8c1df0fe75acfc9431a0b0f349f85a6c1fd1.zip | |
Gradient mixins blow up in IE7/8 if you happen to use rgba() colors as params
Diffstat (limited to 'less')
| -rw-r--r-- | less/mixins.less | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/less/mixins.less b/less/mixins.less index b107955f5..7ee6a2ae9 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -352,7 +352,7 @@ background-image: -o-linear-gradient(left, @startColor, @endColor); // Opera 11.10 background-image: linear-gradient(left, @startColor, @endColor); // Le standard background-repeat: repeat-x; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",@startColor,@endColor)); // IE9 and down + filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@startColor),argb(@endColor))); // IE9 and down } .vertical(@startColor: #555, @endColor: #333) { background-color: mix(@startColor, @endColor, 60%); @@ -363,7 +363,7 @@ background-image: -o-linear-gradient(top, @startColor, @endColor); // Opera 11.10 background-image: linear-gradient(top, @startColor, @endColor); // The standard background-repeat: repeat-x; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down + filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down } .directional(@startColor: #555, @endColor: #333, @deg: 45deg) { background-color: @endColor; @@ -383,7 +383,7 @@ background-image: -o-linear-gradient(@startColor, @midColor @colorStop, @endColor); background-image: linear-gradient(@startColor, @midColor @colorStop, @endColor); background-repeat: no-repeat; - filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@startColor,@endColor)); // IE9 and down, gets no color-stop at all for proper fallback + filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@startColor),argb(@endColor))); // IE9 and down, gets no color-stop at all for proper fallback } .radial(@innerColor: #555, @outerColor: #333) { background-color: @outerColor; |
