Sha256: cfebfee9518c7e82811568a0f383814fa4ad82ab5a6aaf2f21509b954f56bd5b

Contents?: true

Size: 707 Bytes

Versions: 5

Compression:

Stored size: 707 Bytes

Contents

@charset "UTF-8";

/// Generates vendor prefixes for values.
///
/// @argument {string} $property
///   Property to use.
///
/// @argument {string} $value
///   Value to prefix.
///
/// @argument {list} $prefixes
///   Vendor prefixes to output.
///
/// @example scss
///   .element {
///     @include value-prefixer(cursor, grab, ("webkit", "moz"));
///   }
///
///   // CSS Output
///   .element {
///     cursor: -webkit-grab;
///     cursor: -moz-grab;
///     cursor: grab;
///   }
///
/// @author Matthew Tobiasz

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

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

Version data entries

5 entries across 5 versions & 2 rubygems

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