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

Version Path
shipit-engine-0.39.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.38.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.37.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.36.1 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.36.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.35.1 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.35.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.34.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.33.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.32.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.31.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.30.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.29.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.28.1 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.28.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.27.1 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.27.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.26.0 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.25.1 app/assets/stylesheets/_base/_spacing.scss
shipit-engine-0.25.0 app/assets/stylesheets/_base/_spacing.scss