Permalink
Browse files

added fallback for border-radius, removed confusing var names

  • Loading branch information...
1 parent ecc6ac8 commit 3702ec00c79ee8fb6a3b9bf84b87eae4a75ff20f Anders Ytterström committed Dec 3, 2010
Showing with 12 additions and 10 deletions.
  1. +6 −5 css3.sass
  2. +6 −5 css3.scss
View
@@ -23,12 +23,13 @@ $useIEFilters: 0
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0px, OffY=0px, Color='#ffffff')
-ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0px, OffY=0px, Color='#ffffff')"
-=linear-gradient($to, $from, $ie: $useIEFilters)
- background-image: -moz-linear-gradient(top, $to, $from)
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, $to), color-stop(1, $from))
+=linear-gradient($from, $to, $ie: $useIEFilters)
+ background-color: $to
+ background-image: -moz-linear-gradient(top, $from, $to)
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, $from), color-stop(1, $to))
@if $ie == 1
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$to}', endColorstr='#{$from}')
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$to}', endColorstr='#{$from}')"
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}')
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}')"
=rgba($hex, $alpha, $ie: $useIEFilters)
@if $alpha > 1
View
@@ -25,13 +25,14 @@ $useIEFilters: 0; // might be 0 or 1. disabled by default.
}
}
-@mixin linear-gradient($to, $from, $ie: $useIEFilters) {
- background-image: -moz-linear-gradient(top, $to, $from);
- background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $to),color-stop(1, $from));
+@mixin linear-gradient($from, $to, $ie: $useIEFilters) {
+ background-color: $to;
+ background-image: -moz-linear-gradient(top, $from, $to);
+ background-image: -webkit-gradient(linear,left top,left bottom,color-stop(0, $from),color-stop(1, $to));
@if $ie == 1 {
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$to}', endColorstr='#{$from}');
- -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$to}', endColorstr='#{$from}')";
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}');
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$from}', endColorstr='#{$to}')";
}
}

0 comments on commit 3702ec0

Please sign in to comment.