Sha256: 30547c863670a78c23060f347a620b4b3ca38ab35111dab770343585c7c4b9dd
Contents?: true
Size: 845 Bytes
Versions: 529
Compression:
Stored size: 845 Bytes
Contents
// User for linear and radial gradients within background-image or border-image properties @function _render-gradients($gradient-positions, $gradients, $gradient-type, $vendor: false) { $pre-spec: null; $spec: null; $vendor-gradients: null; @if $gradient-type == linear { @if $gradient-positions { $pre-spec: nth($gradient-positions, 1); $spec: nth($gradient-positions, 2); } } @else if $gradient-type == radial { $pre-spec: nth($gradient-positions, 1); $spec: nth($gradient-positions, 2); } @if $vendor { $vendor-gradients: -#{$vendor}-#{$gradient-type}-gradient(#{$pre-spec} $gradients); } @else if $vendor == false { $vendor-gradients: "#{$gradient-type}-gradient(#{$spec} #{$gradients})"; $vendor-gradients: unquote($vendor-gradients); } @return $vendor-gradients; }
Version data entries
529 entries across 512 versions & 37 rubygems