Sha256: 8d35e57eb495c4826de78ec723c1997c92ca369d4fcb153196402593c4f4cf2a

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

@charset "UTF-8";

/// Adds padding to the element.
///
/// @param {List} $padding (flex-gutter())
///   A list of padding value(s) to use. Passing `default` in the list will result in using the gutter width as a padding value.
///
/// @example scss - Usage
///   .element {
///     @include pad(30px -20px 10px default);
///   }
///
/// @example css - CSS Output
///   .element {
///     padding: 30px -20px 10px 2.35765%;
///   }

@mixin pad($padding: flex-gutter()) {
  $padding-list: null;
  @each $value in $padding {
    $value: if($value == 'default', flex-gutter(), $value);
    $padding-list: join($padding-list, $value);
  }
  padding: $padding-list;
}

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
frozen-0.0.1 dummy/assets/stylesheets/neat/grid/_pad.scss
neat-1.7.1 app/assets/stylesheets/grid/_pad.scss