added IE7, IE8, IE9 support to .gradient and .bw-gradient

This commit is contained in:
Dmitry Fadeyev 2012-11-24 18:32:40 +00:00
parent 28dde64521
commit 18e592234b

View file

@ -18,6 +18,7 @@
background: -moz-linear-gradient(center bottom, background: -moz-linear-gradient(center bottom,
@start 0%, @start 0%,
@stop 100%); @stop 100%);
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start));
} }
.bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) { .bw-gradient(@color: #F5F5F5, @start: 0, @stop: 255) {
background: @color; background: @color;
@ -32,6 +33,7 @@
background: -moz-linear-gradient(center bottom, background: -moz-linear-gradient(center bottom,
rgb(@start,@start,@start) 0%, rgb(@start,@start,@start) 0%,
rgb(@stop,@stop,@stop) 100%); rgb(@stop,@stop,@stop) 100%);
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",rgb(@stop,@stop,@stop),rgb(@start,@start,@start)));
} }
.bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) { .bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) {
border-top: solid 1px @top-color; border-top: solid 1px @top-color;