Sha256: ae99f29645911b3985f7980119b742214704001b2a65e634f61a2ba5659aa2ac
Contents?: true
Size: 613 Bytes
Versions: 17
Compression:
Stored size: 613 Bytes
Contents
@charset "UTF-8"; /// Mixes a color with black. /// /// @argument {color} $color /// /// @argument {number (percentage)} $percent /// The amount of black to be mixed in. /// /// @return {color} /// /// @example scss /// .element { /// background-color: shade(#ffbb52, 60%); /// } /// /// // CSS Output /// .element { /// background-color: #664a20; /// } @function shade( $color, $percent ) { @if not _is-color($color) { @error "`#{$color}` is not a valid color for the `$color` argument in " + "the `shade` mixin."; } @else { @return mix(#000, $color, $percent); } }
Version data entries
17 entries across 17 versions & 3 rubygems