Skip to content

Commit

Permalink
Fix radial-gradient mixin calling radial-gradient function
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Oct 7, 2011
1 parent c6b2b73 commit b5d42a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions app/assets/stylesheets/css3/_linear-gradient.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@

$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);

background-color: nth($G1, 1);
background-image: -webkit-gradient(linear, left top, left bottom, from($G1), to($G2)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient($pos, $full);
background-image: -moz-linear-gradient($pos, $full);
background-image: -ms-linear-gradient($pos, $full);
background-image: -o-linear-gradient($pos, $full);
background-image: unquote("linear-gradient(#{$pos}, #{$full})");
background-color: nth($G1, 1);
background-image: -webkit-gradient(linear, left top, left bottom, from($G1), to($G2)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient($pos, $full);
background-image: -moz-linear-gradient($pos, $full);
background-image: -ms-linear-gradient($pos, $full);
background-image: -o-linear-gradient($pos, $full);
background-image: unquote("linear-gradient(#{$pos}, #{$full})");
}

// Usage: Gradient position is optional, default is top. Position can be a degree. Color stops are optional as well.
Expand Down
12 changes: 6 additions & 6 deletions app/assets/stylesheets/css3/_radial-gradient.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@

$full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);

background-color: nth($G1, 1);
background-image: -webkit-radial-gradient($pos, $shape-size, $full);
background-image: -moz-radial-gradient($pos, $shape-size, $full);
background-image: -ms-radial-gradient($pos, $shape-size, $full);
background-image: -o-radial-gradient($pos, $shape-size, $full);
background-image: radial-gradient($pos, $shape-size, $full);
background-color: nth($G1, 1);
background-image: -webkit-radial-gradient($pos, $shape-size, $full);
background-image: -moz-radial-gradient($pos, $shape-size, $full);
background-image: -ms-radial-gradient($pos, $shape-size, $full);
background-image: -o-radial-gradient($pos, $shape-size, $full);
background-image: unquote("radial-gradient($pos, $shape-size, $full)");
}

// Usage: Gradient position and shape-size are required. Color stops are optional.
Expand Down

0 comments on commit b5d42a7

Please sign in to comment.