Sha256: 715b5193c2b8b25f6da64c94dce8290672749923400b88be465f4e76e5f56a8f

Contents?: true

Size: 441 Bytes

Versions: 9

Compression:

Stored size: 441 Bytes

Contents

// Mixin to prefix several properties at once

// EXAMPLE
// @include prefix((
//   appearance: none,
//   touch-callout: none,
//   user-select: none
// ), webkit moz ms khtml);

@mixin prefix($declarations, $prefixes: ()) {
  @each $property, $value in $declarations {
    @each $prefix in $prefixes {
      #{'-' + $prefix + '-' + $property}: $value;
    }

    // Output standard non-prefixed declaration
    #{$property}: $value;
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.6 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.5 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.4 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.3.1 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.3 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.2 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.1 app/assets/stylesheets/spree/backend/global/_mixins.scss
spree_backend-4.2.0 app/assets/stylesheets/spree/backend/global/_mixins.scss