1
//************************************************************************//
2
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
3
//************************************************************************//
4
$prefix-for-webkit: true !default;
5
$prefix-for-mozilla: true !default;
6
$prefix-for-microsoft: true !default;
7
$prefix-for-opera: true !default;
8
$prefix-for-spec: true !default; // required for keyframe mixin
10
@mixin prefixer ($property, $value, $prefixes) {
11
@each $prefix in $prefixes {
13
@if $prefix == webkit and $prefix-for-webkit == true {
14
-webkit-#{$property}: $value;
16
@else if $prefix == moz and $prefix-for-mozilla == true {
17
-moz-#{$property}: $value;
19
@else if $prefix == ms and $prefix-for-microsoft == true {
20
-ms-#{$property}: $value;
22
@else if $prefix == o and $prefix-for-opera == true {
23
-o-#{$property}: $value;
25
@else if $prefix == spec and $prefix-for-spec == true {
29
@warn "Unrecognized prefix: #{$prefix}";
34
@mixin disable-prefix-for-all() {
35
$prefix-for-webkit: false;
36
$prefix-for-mozilla: false;
37
$prefix-for-microsoft: false;
38
$prefix-for-opera: false;
39
$prefix-for-spec: false;