Sha256: 7c9c0837150003164fd3e7249b92ebb8baa7e4d9681bc332b82d5d048a953bff
Contents?: true
Size: 524 Bytes
Versions: 31
Compression:
Stored size: 524 Bytes
Contents
$spacing-data: ( tight: 0.75rem, base: 1rem, loose: 1.5rem ); /// 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
31 entries across 31 versions & 1 rubygems