Sha256: ae8e8d4e4678d78b6c6595ae7c958a5c5d5e3393455ec6ed13f938a1a05fd27b
Contents?: true
Size: 871 Bytes
Versions: 2
Compression:
Stored size: 871 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
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
hanuman-0.4.0 | _sass/bourbon/helpers/_render-gradients.scss |
sammy-0.5.0 | app/assets/stylesheets/helpers/_render-gradients.scss |