|
|
|
//
|
|
|
|
// A partial implementation of the Ruby cross browser support functions from Compass:
|
|
|
|
// https://github.com/Compass/compass/blob/stable/lib/compass/sass_extensions/functions/cross_browser_support.rb
|
|
|
|
//
|
|
|
|
|
|
|
|
@function prefix($prefix, $property1, $property2:null, $property3:null, $property4:null, $property5:null, $property6:null, $property7:null, $property8:null, $property9:null) {
|
|
|
|
$properties: $property1, $property2, $property3, $property4, $property5, $property6, $property7, $property8, $property9;
|
|
|
|
$props: false;
|
|
|
|
@each $item in $properties {
|
|
|
|
@if $item == null {}
|
|
|
|
@else {
|
|
|
|
$item: #{$prefix}-#{$item};
|
|
|
|
@if $props {
|
|
|
|
$props: $props, $item;
|
|
|
|
}
|
|
|
|
@else {
|
|
|
|
$props: $item;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@return $props;
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -svg($property) {
|
|
|
|
@return prefix('-svg', $property);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -owg($property) {
|
|
|
|
@return prefix('-owg', $property);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -webkit($property) {
|
|
|
|
@return prefix('-webkit', $property);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -moz($property) {
|
|
|
|
@return prefix('-moz', $property);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -o($property) {
|
|
|
|
@return prefix('-o', $property);
|
|
|
|
}
|
|
|
|
|
|
|
|
@function -pie($property) {
|
|
|
|
@return prefix('-pie', $property);
|
|
|
|
}
|