Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Removed linear and radial gradients from background-image mixin. Extr…
…acted out render-gradients function to seperate partial
- Loading branch information
Phil LaPier
committed
Feb 20, 2012
1 parent
92ecae3
commit 9fd50d1
Showing
3 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// User for linear and radial gradients within background-image or border-image properties | ||
|
||
@function render-gradients($gradients, $gradient-type, $vendor: false) { | ||
$vendor-gradients: false; | ||
@if $vendor { | ||
$vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient($gradients); | ||
} | ||
|
||
@else if $vendor == false { | ||
$vendor-gradients: "#{$gradient-type}-gradient(#{$gradients})"; | ||
$vendor-gradients: unquote($vendor-gradients); | ||
} | ||
@return $vendor-gradients; | ||
} |