Sha256: 548f77c6fda79f54c1f6d57dd8b3cf3c0c300a8258775e0fea43a768d53a26a4

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

@charset "UTF-8";

/// Generates vendor prefixes.
///
/// @argument {string} $property
///   Property to prefix.
///
/// @argument {string} $value
///   Value to use.
///
/// @argument {list} $prefixes
///   Vendor prefixes to output.
///
/// @example scss
///   .element {
///     @include prefixer(appearance, none, ("webkit", "moz"));
///   }
///
///   // CSS Output
///   .element {
///     -webkit-appearance: none;
///     -moz-appearance: none;
///     appearance: none;
///   }
///
/// @author Hugo Giraudel

@mixin prefixer(
    $property,
    $value,
    $prefixes: ()
  ) {

  @each $prefix in $prefixes {
    #{"-" + $prefix + "-" + $property}: $value;
  }
  #{$property}: $value;
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spice-rack-0.4.0 _sass/bourbon/bourbon/library/_prefixer.scss
spice-rack-0.3.0 _sass/bourbon/bourbon/library/_prefixer.scss
spice-rack-0.2.0 _sass/bourbon/bourbon/library/_prefixer.scss
spice-rack-0.1.0 _sass/bourbon/bourbon/library/_prefixer.scss
bourbon-5.0.0.beta.7 core/bourbon/library/_prefixer.scss