Sha256: 0bf7bf57d4f10a636454f58327024e15d4888fdf69788f83a3e019e6fd3c7f2d
Contents?: true
Size: 630 Bytes
Versions: 39
Compression:
Stored size: 630 Bytes
Contents
$unit: 4px; $spacing-data: ( none: 0, extra-tight: rem($unit), tight: rem($unit * 2), base: rem($unit * 4), loose: rem($unit * 5), extra-loose: rem($unit * 8) ); /// Returns the spacing value for a given variant. /// /// @param {String} $variant - The key for the given variant. /// @return {Number} The spacing for the variant. @function spacing($variant: base) { $fetched-value: map-get($spacing-data, $variant); @if type-of($fetched-value) == number { @return $fetched-value; } @else { @error 'Spacing variant `#{$variant}` not found. Available variants: #{available-names($spacing-data)}'; } }
Version data entries
39 entries across 39 versions & 1 rubygems