Skip to content

Commit

Permalink
Change global prefixer arguments order
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudleo committed May 10, 2012
1 parent e0e093b commit 4f8f909
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/css3/_appearance.scss
@@ -1,3 +1,3 @@
@mixin appearance ($value) {
@include prefixer(appearance, $value, moz, webkit, o, ms);
@include prefixer(appearance, $value, webkit, moz, ms, o);
}
2 changes: 1 addition & 1 deletion app/assets/stylesheets/css3/_background-size.scss
Expand Up @@ -7,5 +7,5 @@
$full: compact($length-1, $length-2, $length-3, $length-4,
$length-5, $length-6, $length-7, $length-8, $length-9);

@include prefixer(background-size, $full, moz, webkit, o, ms);
@include prefixer(background-size, $full, webkit, moz, ms, o);
}
12 changes: 6 additions & 6 deletions app/assets/stylesheets/css3/_prefixer.scss
@@ -1,12 +1,12 @@
@mixin prefixer ($property, $value,
$moz: true,
$webkit: true,
$o: false,
$ms: false,
$spec: true) {
@if $moz { -moz-#{$property}: $value; }
$moz: true,
$ms: false,
$o: false,
$spec: true) {
@if $webkit { -webkit-#{$property}: $value; }
@if $o { -o-#{$property}: $value; }
@if $moz { -moz-#{$property}: $value; }
@if $ms { -ms-#{$property}: $value; }
@if $o { -o-#{$property}: $value; }
@if $spec { #{$property}: $value; }
}
4 changes: 2 additions & 2 deletions app/assets/stylesheets/css3/_transform.scss
@@ -1,11 +1,11 @@
@mixin transform($property: none) {
// none | <transform-function>
@include prefixer(transform, $property, moz, webkit, o, ms);
@include prefixer(transform, $property, webkit, moz, ms, o);
}

@mixin transform-origin($axes: 50%) {
// x-axis - left | center | right | length | %
// y-axis - top | center | bottom | length | %
// z-axis - length
@include prefixer(transform-origin, $axes, moz, webkit, o, ms);
@include prefixer(transform-origin, $axes, webkit, moz, ms, o);
}
10 changes: 5 additions & 5 deletions app/assets/stylesheets/css3/_transition.scss
Expand Up @@ -12,7 +12,7 @@
$full: compact($prop-1, $prop-2, $prop-3, $prop-4, $prop-5,
$prop-6, $prop-7, $prop-8, $prop-9);

@include prefixer(transition, $full, moz, webkit, o, ms);
@include prefixer(transition, $full, webkit, moz, ms, o);
}


Expand All @@ -26,7 +26,7 @@
$full: compact($prop-1, $prop-2, $prop-3, $prop-4, $prop-5,
$prop-6, $prop-7, $prop-8, $prop-9);

@include prefixer(transition-property, $full, moz, webkit, o, ms);
@include prefixer(transition-property, $full, webkit, moz, ms, o);
}

@mixin transition-duration ($time-1: 0,
Expand All @@ -38,7 +38,7 @@
$full: compact($time-1, $time-2, $time-3, $time-4, $time-5,
$time-6, $time-7, $time-8, $time-9);

@include prefixer(transition-duration, $full, moz, webkit, o, ms);
@include prefixer(transition-duration, $full, webkit, moz, ms, o);
}

@mixin transition-timing-function ($motion-1: ease,
Expand All @@ -51,7 +51,7 @@
$motion-6, $motion-7, $motion-8, $motion-9);

// ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
@include prefixer(transition-timing-function, $full, moz, webkit, o, ms);
@include prefixer(transition-timing-function, $full, webkit, moz, ms, o);
}

@mixin transition-delay ($time-1: 0,
Expand All @@ -63,6 +63,6 @@
$full: compact($time-1, $time-2, $time-3, $time-4, $time-5,
$time-6, $time-7, $time-8, $time-9);

@include prefixer(transition-transition-delay, $full, moz, webkit, o, ms);
@include prefixer(transition-transition-delay, $full, webkit, moz, ms, o);
}

2 changes: 1 addition & 1 deletion app/assets/stylesheets/css3/_user-select.scss
@@ -1,3 +1,3 @@
@mixin user-select($arg: none) {
@include prefixer(user-select, $arg, moz, webkit, not o, ms);
@include prefixer(user-select, $arg, webkit, moz, ms);
}

0 comments on commit 4f8f909

Please sign in to comment.