Sha256: 984683cc199cd4d2205fa56ce5b16b31ac5dfbca7adb07670c0a98eeaff43a0b

Contents?: true

Size: 555 Bytes

Versions: 3

Compression:

Stored size: 555 Bytes

Contents

@mixin set-multiple($value, $properties...) {
  $property-length: length($properties);
  $error-msg: "The `set-multiple` mixin requires you to pass in a list of properties as the second argument";

  @if $property-length < 1 {
    @if feature-exists(at-error) {
      @error $error-msg;
    } 
    @else {
      @warn $error-msg;
    }
  }

  // If the first argument passed in is a white-spaced separated list.
  $properties: if($property-length == 1, nth($properties, 1), $properties);

  @each $property in $properties {
    #{$property}: $value
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
toolkit-2.9.0 stylesheets/toolkit/_set-multiple.scss
toolkit-2.8.0 stylesheets/toolkit/_set-multiple.scss
toolkit-2.7.0 stylesheets/toolkit/_set-multiple.scss