Sha256: eca31a9036c956556a4939b077e764d521a45057dedff62c97b2463e2b06c5d0
Contents?: true
Size: 523 Bytes
Versions: 16
Compression:
Stored size: 523 Bytes
Contents
@function color($key, $sub-key: null) { @if $sub-key != null { @if map-has-key($colors, $key) { $sub-colors: map-get($colors, $key); @if map-has-key($sub-colors, $sub-key) { @return map-get($sub-colors, $sub-key); } @error "Unknown sub-color `#{$sub-key}` in $sub-colors."; @return null; } } @else { @if map-has-key($colors, $key) { @return map-get($colors, $key); } } @warn "Unknown color `#{$key}` in $colors."; @return null; } // @function color()
Version data entries
16 entries across 16 versions & 1 rubygems