Sha256: b74272dae2f12cead9648bd539fd4f16eddb4f081234aed2f36973f226cd3be8
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
// Requires Sass 3.1+ @mixin radial-gradient($pos, $shape-size, $G1, $G2, $G3: false, $G4: false, $G5: false, $G6: false, $G7: false, $G8: false, $G9: false, $G10: false, $fallback: false) { $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10); // Set $G1 as the default fallback color $fallback-color: nth($G1, 1); // If $fallback is a color use that color as the fallback color @if (type-of($fallback) == color) or ($fallback == "transparent") { $fallback-color: $fallback; } background-color: $fallback-color; background-image: deprecated-webkit-gradient(radial, $full); // Safari <= 5.0 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. // @include radial-gradient(50% 50%, circle cover, #color1, #color2); // @include radial-gradient(50% 50%, circle cover, $grayLightest 10%, #color1 30%, #color2);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
app_sleuth-0.0.1.pre | lib/app_sleuth/server/assets/sass/mixins/css3/_radial-gradient.scss |