1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00
tube-status-server/stylesheets/bourbon/addons/_prefixer.scss
2013-01-25 17:54:45 +00:00

28 lines
714 B
SCSS

//************************************************************************//
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
//************************************************************************//
@mixin prefixer ($property, $value, $prefixes) {
@each $prefix in $prefixes {
@if $prefix == webkit {
-webkit-#{$property}: $value;
}
@else if $prefix == moz {
-moz-#{$property}: $value;
}
@else if $prefix == ms {
-ms-#{$property}: $value;
}
@else if $prefix == o {
-o-#{$property}: $value;
}
@else if $prefix == spec {
#{$property}: $value;
}
@else {
@warn "Unrecognized prefix: #{$prefix}";
}
}
}