saffron 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile.lock +1 -1
- data/README.md +16 -9
- data/app/assets/stylesheets/entrances/_drop-in.scss +5 -5
- data/app/assets/stylesheets/entrances/_fade-in-down.scss +3 -3
- data/app/assets/stylesheets/entrances/_fade-in-left.scss +3 -3
- data/app/assets/stylesheets/entrances/_fade-in-right.scss +3 -3
- data/app/assets/stylesheets/entrances/_fade-in-up.scss +3 -3
- data/app/assets/stylesheets/entrances/_fade-in-zoom-big.scss +6 -6
- data/app/assets/stylesheets/entrances/_fade-in-zoom.scss +4 -4
- data/app/assets/stylesheets/entrances/_fade-in.scss +3 -3
- data/app/assets/stylesheets/entrances/_newspaper.scss +4 -4
- data/app/assets/stylesheets/entrances/_pop-in.scss +4 -4
- data/app/assets/stylesheets/entrances/_rise-in.scss +3 -3
- data/app/assets/stylesheets/entrances/_slide-in.scss +10 -10
- data/app/assets/stylesheets/entrances/_stretch.scss +12 -12
- data/app/assets/stylesheets/entrances/_turn-in.scss +10 -10
- data/app/assets/stylesheets/exits/_compress.scss +9 -9
- data/app/assets/stylesheets/exits/_drop-out.scss +4 -4
- data/app/assets/stylesheets/exits/_explode.scss +4 -4
- data/app/assets/stylesheets/exits/_fade-out-down.scss +4 -4
- data/app/assets/stylesheets/exits/_fade-out-left.scss +3 -3
- data/app/assets/stylesheets/exits/_fade-out-right.scss +3 -3
- data/app/assets/stylesheets/exits/_fade-out-up.scss +4 -4
- data/app/assets/stylesheets/exits/_fade-out-zoom-big.scss +5 -5
- data/app/assets/stylesheets/exits/_fade-out-zoom.scss +4 -4
- data/app/assets/stylesheets/exits/_fade-out.scss +3 -3
- data/app/assets/stylesheets/exits/_poof.scss +4 -4
- data/app/assets/stylesheets/exits/_rise-out.scss +4 -4
- data/app/assets/stylesheets/exits/_slide-out.scss +8 -8
- data/app/assets/stylesheets/exits/_turn-out.scss +10 -10
- data/app/assets/stylesheets/helpers/_animation.scss +2 -2
- data/app/assets/stylesheets/helpers/_contains.scss +1 -1
- data/app/assets/stylesheets/helpers/_keyframes.scss +5 -5
- data/app/assets/stylesheets/helpers/_prefix.scss +3 -3
- data/app/assets/stylesheets/helpers/_transform.scss +6 -6
- data/app/assets/stylesheets/helpers/_transition.scss +4 -4
- data/app/assets/stylesheets/in-place/_around-the-world.scss +4 -4
- data/app/assets/stylesheets/in-place/_bounce.scss +8 -8
- data/app/assets/stylesheets/in-place/_colors.scss +3 -3
- data/app/assets/stylesheets/in-place/_contract.scss +2 -2
- data/app/assets/stylesheets/in-place/_cube-flip.scss +16 -16
- data/app/assets/stylesheets/in-place/_enlarge.scss +2 -2
- data/app/assets/stylesheets/in-place/_expand.scss +1 -1
- data/app/assets/stylesheets/in-place/_flip.scss +6 -6
- data/app/assets/stylesheets/in-place/_float.scss +5 -5
- data/app/assets/stylesheets/in-place/_ping.scss +5 -5
- data/app/assets/stylesheets/in-place/_pulsate.scss +4 -4
- data/app/assets/stylesheets/in-place/_quiver.scss +13 -13
- data/app/assets/stylesheets/in-place/_shake.scss +8 -8
- data/app/assets/stylesheets/in-place/_spin.scss +4 -4
- data/app/assets/stylesheets/in-place/_square-dance.scss +6 -6
- data/app/assets/stylesheets/in-place/_sunrise.scss +4 -4
- data/app/assets/stylesheets/in-place/_sway.scss +5 -5
- data/app/assets/stylesheets/in-place/_teeter.scss +9 -9
- data/bower.json +1 -1
- data/lib/saffron/version.rb +1 -1
- data/saffron/entrances/_drop-in.scss +5 -5
- data/saffron/entrances/_fade-in-down.scss +3 -3
- data/saffron/entrances/_fade-in-left.scss +3 -3
- data/saffron/entrances/_fade-in-right.scss +3 -3
- data/saffron/entrances/_fade-in-up.scss +3 -3
- data/saffron/entrances/_fade-in-zoom-big.scss +6 -6
- data/saffron/entrances/_fade-in-zoom.scss +4 -4
- data/saffron/entrances/_fade-in.scss +3 -3
- data/saffron/entrances/_newspaper.scss +4 -4
- data/saffron/entrances/_pop-in.scss +4 -4
- data/saffron/entrances/_rise-in.scss +3 -3
- data/saffron/entrances/_slide-in.scss +10 -10
- data/saffron/entrances/_stretch.scss +12 -12
- data/saffron/entrances/_turn-in.scss +10 -10
- data/saffron/exits/_compress.scss +9 -9
- data/saffron/exits/_drop-out.scss +4 -4
- data/saffron/exits/_explode.scss +4 -4
- data/saffron/exits/_fade-out-down.scss +4 -4
- data/saffron/exits/_fade-out-left.scss +3 -3
- data/saffron/exits/_fade-out-right.scss +3 -3
- data/saffron/exits/_fade-out-up.scss +4 -4
- data/saffron/exits/_fade-out-zoom-big.scss +5 -5
- data/saffron/exits/_fade-out-zoom.scss +4 -4
- data/saffron/exits/_fade-out.scss +3 -3
- data/saffron/exits/_poof.scss +4 -4
- data/saffron/exits/_rise-out.scss +4 -4
- data/saffron/exits/_slide-out.scss +8 -8
- data/saffron/exits/_turn-out.scss +10 -10
- data/saffron/helpers/_animation.scss +2 -2
- data/saffron/helpers/_contains.scss +1 -1
- data/saffron/helpers/_keyframes.scss +5 -5
- data/saffron/helpers/_prefix.scss +3 -3
- data/saffron/helpers/_transform.scss +6 -6
- data/saffron/helpers/_transition.scss +4 -4
- data/saffron/in-place/_around-the-world.scss +4 -4
- data/saffron/in-place/_bounce.scss +8 -8
- data/saffron/in-place/_colors.scss +3 -3
- data/saffron/in-place/_contract.scss +2 -2
- data/saffron/in-place/_cube-flip.scss +16 -16
- data/saffron/in-place/_enlarge.scss +2 -2
- data/saffron/in-place/_expand.scss +1 -1
- data/saffron/in-place/_flip.scss +6 -6
- data/saffron/in-place/_float.scss +5 -5
- data/saffron/in-place/_ping.scss +5 -5
- data/saffron/in-place/_pulsate.scss +4 -4
- data/saffron/in-place/_quiver.scss +13 -13
- data/saffron/in-place/_shake.scss +8 -8
- data/saffron/in-place/_spin.scss +4 -4
- data/saffron/in-place/_square-dance.scss +6 -6
- data/saffron/in-place/_sunrise.scss +4 -4
- data/saffron/in-place/_sway.scss +5 -5
- data/saffron/in-place/_teeter.scss +9 -9
- data/tasks/package.json +2 -2
- metadata +22 -44
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(dropOut) {
|
1
|
+
@include u-keyframes(dropOut) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(translateY($saf-drop-rise-distance) rotate(-40deg));
|
8
|
+
@include u-transform(translateY($saf-drop-rise-distance) rotate(-40deg));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin dropOut($duration: 0.5s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(dropOut $duration $delay $fill-mode);
|
13
|
+
@include u-animation(dropOut $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(explode) {
|
1
|
+
@include u-keyframes(explode) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(scale(5));
|
8
|
+
@include u-transform(scale(5));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin explode($duration: 0.5s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(explode $duration $delay $fill-mode);
|
13
|
+
@include u-animation(explode $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(fadeOutDown) {
|
1
|
+
@include u-keyframes(fadeOutDown) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(translateY($saf-translateY-distance));
|
8
|
+
@include u-transform(translateY($saf-translateY-distance));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin fadeOutDown($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(fadeOutDown $duration $delay $fill-mode);
|
13
|
+
@include u-animation(fadeOutDown $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
@include keyframes(fadeOutLeft) {
|
1
|
+
@include u-keyframes(fadeOutLeft) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
4
|
}
|
5
5
|
100% {
|
6
6
|
opacity: 0;
|
7
|
-
@include transform(translateX($saf-translateX-distance * -1) translateZ(0));
|
7
|
+
@include u-transform(translateX($saf-translateX-distance * -1) translateZ(0));
|
8
8
|
}
|
9
9
|
}
|
10
10
|
|
11
11
|
@mixin fadeOutLeft($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
12
|
-
@include animation(fadeOutLeft $duration $delay $fill-mode);
|
12
|
+
@include u-animation(fadeOutLeft $duration $delay $fill-mode);
|
13
13
|
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
@include keyframes(fadeOutRight) {
|
1
|
+
@include u-keyframes(fadeOutRight) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
4
|
}
|
5
5
|
100% {
|
6
6
|
opacity: 0;
|
7
|
-
@include transform(translateX($saf-translateX-distance) translateZ(0));
|
7
|
+
@include u-transform(translateX($saf-translateX-distance) translateZ(0));
|
8
8
|
}
|
9
9
|
}
|
10
10
|
|
11
11
|
@mixin fadeOutRight($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
12
|
-
@include animation(fadeOutRight $duration $delay $fill-mode);
|
12
|
+
@include u-animation(fadeOutRight $duration $delay $fill-mode);
|
13
13
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(fadeOutUp) {
|
1
|
+
@include u-keyframes(fadeOutUp) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(translateY($saf-translateY-distance * -1));
|
8
|
+
@include u-transform(translateY($saf-translateY-distance * -1));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin fadeOutUp($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(fadeOutUp $duration $delay $fill-mode);
|
13
|
+
@include u-animation(fadeOutUp $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,19 +1,19 @@
|
|
1
|
-
@include keyframes(fadeOutZoomBig) {
|
1
|
+
@include u-keyframes(fadeOutZoomBig) {
|
2
2
|
0% {
|
3
|
-
@include transform(scale(1) translateZ(0));
|
3
|
+
@include u-transform(scale(1) translateZ(0));
|
4
4
|
}
|
5
5
|
40% {
|
6
|
-
@include transform(scale(1.25));
|
6
|
+
@include u-transform(scale(1.25));
|
7
7
|
}
|
8
8
|
60% {
|
9
9
|
opacity: 1;
|
10
10
|
}
|
11
11
|
100% {
|
12
12
|
opacity: 0;
|
13
|
-
@include transform(scale(0));
|
13
|
+
@include u-transform(scale(0));
|
14
14
|
}
|
15
15
|
}
|
16
16
|
|
17
17
|
@mixin fadeOutZoomBig($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
18
|
-
@include animation(fadeOutZoomBig $duration $delay $fill-mode);
|
18
|
+
@include u-animation(fadeOutZoomBig $duration $delay $fill-mode);
|
19
19
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(fadeOutZoom) {
|
1
|
+
@include u-keyframes(fadeOutZoom) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(scale(0));
|
8
|
+
@include u-transform(scale(0));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin fadeOutZoom($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(fadeOutZoom $duration $delay $fill-mode);
|
13
|
+
@include u-animation(fadeOutZoom $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
@include keyframes(fadeOut) {
|
1
|
+
@include u-keyframes(fadeOut) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
@@ -9,5 +9,5 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
@mixin fadeOut($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
12
|
-
@include animation(fadeOut $duration $delay $fill-mode);
|
12
|
+
@include u-animation(fadeOut $duration $delay $fill-mode);
|
13
13
|
}
|
@@ -1,17 +1,17 @@
|
|
1
|
-
@include keyframes(poof) {
|
1
|
+
@include u-keyframes(poof) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(scale(1));
|
4
|
+
@include u-transform(scale(1));
|
5
5
|
-webkit-filter: blur(0);
|
6
6
|
}
|
7
7
|
|
8
8
|
100% {
|
9
9
|
opacity: 0;
|
10
|
-
@include transform(scale(2));
|
10
|
+
@include u-transform(scale(2));
|
11
11
|
-webkit-filter: blur(40px);
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
15
|
@mixin poof($duration: 0.85s, $delay: 0s, $fill-mode: forwards) {
|
16
|
-
@include animation(poof $duration $delay $fill-mode);
|
16
|
+
@include u-animation(poof $duration $delay $fill-mode);
|
17
17
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
@include keyframes(riseOut) {
|
1
|
+
@include u-keyframes(riseOut) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateZ(0));
|
4
|
+
@include u-transform(translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(translateY($saf-drop-rise-distance * -1));
|
8
|
+
@include u-transform(translateY($saf-drop-rise-distance * -1));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin riseOut($duration: 0.5s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(riseOut $duration $delay $fill-mode);
|
13
|
+
@include u-animation(riseOut $duration $delay $fill-mode);
|
14
14
|
}
|
@@ -1,29 +1,29 @@
|
|
1
|
-
@include keyframes(slideOutLeft) {
|
1
|
+
@include u-keyframes(slideOutLeft) {
|
2
2
|
35% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(translateX($saf-translateX-distance) translateZ(0));
|
4
|
+
@include u-transform(translateX($saf-translateX-distance) translateZ(0));
|
5
5
|
}
|
6
6
|
100% {
|
7
7
|
opacity: 0;
|
8
|
-
@include transform(translateX($saf-translateX-distance * -10));
|
8
|
+
@include u-transform(translateX($saf-translateX-distance * -10));
|
9
9
|
}
|
10
10
|
}
|
11
11
|
|
12
12
|
@mixin slideOutLeft($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
13
|
-
@include animation(slideOutLeft $duration $delay $fill-mode);
|
13
|
+
@include u-animation(slideOutLeft $duration $delay $fill-mode);
|
14
14
|
}
|
15
15
|
|
16
|
-
@include keyframes(slideOutRight) {
|
16
|
+
@include u-keyframes(slideOutRight) {
|
17
17
|
35% {
|
18
18
|
opacity: 1;
|
19
|
-
@include transform(translateX($saf-translateX-distance * -1) translateZ(0));
|
19
|
+
@include u-transform(translateX($saf-translateX-distance * -1) translateZ(0));
|
20
20
|
}
|
21
21
|
100% {
|
22
22
|
opacity: 0;
|
23
|
-
@include transform(translateX($saf-translateX-distance * 10));
|
23
|
+
@include u-transform(translateX($saf-translateX-distance * 10));
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
27
|
@mixin slideOutRight($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
28
|
-
@include animation(slideOutRight $duration $delay $fill-mode);
|
28
|
+
@include u-animation(slideOutRight $duration $delay $fill-mode);
|
29
29
|
}
|
@@ -1,33 +1,33 @@
|
|
1
|
-
@include keyframes(turnOutDown) {
|
1
|
+
@include u-keyframes(turnOutDown) {
|
2
2
|
0% {
|
3
3
|
opacity: 1;
|
4
|
-
@include transform(perspective(800px) rotateX(0deg) translateZ(0));
|
5
|
-
@include prefix(backface-visibility, hidden, webkit spec);
|
4
|
+
@include u-transform(perspective(800px) rotateX(0deg) translateZ(0));
|
5
|
+
@include u-prefix(backface-visibility, hidden, webkit spec);
|
6
6
|
}
|
7
7
|
|
8
8
|
100% {
|
9
9
|
opacity: 0;
|
10
|
-
@include transform(perspective(500px) rotateX($saf-turn-angle * -1) translateZ(150px));
|
10
|
+
@include u-transform(perspective(500px) rotateX($saf-turn-angle * -1) translateZ(150px));
|
11
11
|
}
|
12
12
|
}
|
13
13
|
|
14
14
|
@mixin turnOutDown($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
15
|
-
@include animation(turnOutDown $duration $delay $fill-mode);
|
15
|
+
@include u-animation(turnOutDown $duration $delay $fill-mode);
|
16
16
|
}
|
17
17
|
|
18
|
-
@include keyframes(turnOutUp) {
|
18
|
+
@include u-keyframes(turnOutUp) {
|
19
19
|
0% {
|
20
20
|
opacity: 1;
|
21
|
-
@include transform(perspective(800px) rotateX(0deg) translateZ(0));
|
22
|
-
@include prefix(backface-visibility, hidden, webkit spec);
|
21
|
+
@include u-transform(perspective(800px) rotateX(0deg) translateZ(0));
|
22
|
+
@include u-prefix(backface-visibility, hidden, webkit spec);
|
23
23
|
}
|
24
24
|
|
25
25
|
100% {
|
26
26
|
opacity: 0;
|
27
|
-
@include transform(perspective(500px) rotateX($saf-turn-angle) translateZ(150px));
|
27
|
+
@include u-transform(perspective(500px) rotateX($saf-turn-angle) translateZ(150px));
|
28
28
|
}
|
29
29
|
}
|
30
30
|
|
31
31
|
@mixin turnOutUp($duration: 1s, $delay: 0s, $fill-mode: forwards) {
|
32
|
-
@include animation(turnOutUp $duration $delay $fill-mode);
|
32
|
+
@include u-animation(turnOutUp $duration $delay $fill-mode);
|
33
33
|
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
@mixin animation($properties...) {
|
2
|
-
@include prefix(animation, $properties, webkit spec);
|
1
|
+
@mixin u-animation($properties...) {
|
2
|
+
@include u-prefix(animation, $properties, webkit spec);
|
3
3
|
}
|
@@ -1,23 +1,23 @@
|
|
1
|
-
@mixin keyframes($name) {
|
1
|
+
@mixin u-keyframes($name) {
|
2
2
|
@each $prefix in $saf-prefixes {
|
3
3
|
@if $prefix == "webkit" {
|
4
4
|
@-webkit-keyframes #{$name} {
|
5
|
-
@include prefix-only($prefix);
|
5
|
+
@include u-prefix-only($prefix);
|
6
6
|
@content;
|
7
7
|
}
|
8
8
|
} @else if $prefix == "moz" {
|
9
9
|
@-moz-keyframes #{$name} {
|
10
|
-
@include prefix-only($prefix);
|
10
|
+
@include u-prefix-only($prefix);
|
11
11
|
@content;
|
12
12
|
}
|
13
13
|
} @else if $prefix == "o" {
|
14
14
|
@-o-keyframes #{$name} {
|
15
|
-
@include prefix-only($prefix);
|
15
|
+
@include u-prefix-only($prefix);
|
16
16
|
@content;
|
17
17
|
}
|
18
18
|
} @else if $prefix == "spec" {
|
19
19
|
@keyframes #{$name} {
|
20
|
-
@include prefix-all();
|
20
|
+
@include u-prefix-all();
|
21
21
|
@content;
|
22
22
|
}
|
23
23
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
@mixin prefix($property, $value, $prefixes: $saf-prefixes) {
|
1
|
+
@mixin u-prefix($property, $value, $prefixes: $saf-prefixes) {
|
2
2
|
@each $prefix in $prefixes {
|
3
3
|
@if $prefix == "webkit" {
|
4
4
|
-webkit-#{$property}: #{$value};
|
@@ -16,7 +16,7 @@
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
-
@mixin prefix-all($value: true){
|
19
|
+
@mixin u-prefix-all($value: true){
|
20
20
|
@if $value {
|
21
21
|
$prefixes: ("webkit", "moz", "o", "ms", "spec");
|
22
22
|
} @else {
|
@@ -24,7 +24,7 @@
|
|
24
24
|
}
|
25
25
|
}
|
26
26
|
|
27
|
-
@mixin prefix-only($only) {
|
27
|
+
@mixin u-prefix-only($only) {
|
28
28
|
@if $only == "webkit" {
|
29
29
|
$prefixes: ("webkit", "spec");
|
30
30
|
} @else if $only == "moz" {
|
@@ -1,9 +1,9 @@
|
|
1
|
-
@mixin transform($property: none) {
|
2
|
-
@if contains($saf-prefixes, "webkit") and contains($saf-prefixes, "ms") {
|
3
|
-
@include prefix(transform, $property, webkit ms spec);
|
4
|
-
} @else if contains($saf-prefixes, "webkit") {
|
5
|
-
@include prefix(transform, $property, webkit spec);
|
1
|
+
@mixin u-transform($property: none) {
|
2
|
+
@if u-contains($saf-prefixes, "webkit") and u-contains($saf-prefixes, "ms") {
|
3
|
+
@include u-prefix(transform, $property, webkit ms spec);
|
4
|
+
} @else if u-contains($saf-prefixes, "webkit") {
|
5
|
+
@include u-prefix(transform, $property, webkit spec);
|
6
6
|
} @else {
|
7
|
-
@include prefix(transform, $property, spec);
|
7
|
+
@include u-prefix(transform, $property, spec);
|
8
8
|
}
|
9
9
|
}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
@mixin transition ($properties...) {
|
2
|
-
@if contains($saf-prefixes, "webkit") {
|
3
|
-
@include prefix(transition, $properties, webkit spec);
|
1
|
+
@mixin u-transition ($properties...) {
|
2
|
+
@if u-contains($saf-prefixes, "webkit") {
|
3
|
+
@include u-prefix(transition, $properties, webkit spec);
|
4
4
|
} @else {
|
5
|
-
@include prefix(transition, $properties, spec);
|
5
|
+
@include u-prefix(transition, $properties, spec);
|
6
6
|
}
|
7
7
|
}
|
@@ -1,12 +1,12 @@
|
|
1
|
-
@include keyframes(aroundTheWorld) {
|
1
|
+
@include u-keyframes(aroundTheWorld) {
|
2
2
|
0% {
|
3
|
-
@include transform(rotate(0deg) translate3d($saf-distance-from-origin * -1, $saf-distance-from-origin * -1, 0) rotate(0deg));
|
3
|
+
@include u-transform(rotate(0deg) translate3d($saf-distance-from-origin * -1, $saf-distance-from-origin * -1, 0) rotate(0deg));
|
4
4
|
}
|
5
5
|
100% {
|
6
|
-
@include transform(rotate(360deg) translate3d($saf-distance-from-origin * -1, $saf-distance-from-origin * -1, 0) rotate(-360deg));
|
6
|
+
@include u-transform(rotate(360deg) translate3d($saf-distance-from-origin * -1, $saf-distance-from-origin * -1, 0) rotate(-360deg));
|
7
7
|
}
|
8
8
|
}
|
9
9
|
|
10
10
|
@mixin aroundTheWorld($duration: 2s, $delay: 0s, $fill-mode: none, $count: infinite, $timing: ease-in-out) {
|
11
|
-
@include animation(aroundTheWorld $count $duration $delay $fill-mode $timing);
|
11
|
+
@include u-animation(aroundTheWorld $count $duration $delay $fill-mode $timing);
|
12
12
|
}
|
@@ -1,24 +1,24 @@
|
|
1
|
-
@include keyframes(bounce) {
|
1
|
+
@include u-keyframes(bounce) {
|
2
2
|
0%, 85%, 100% {
|
3
|
-
@include transform(translateY(0) scaleY(1) scaleX(1) translateZ(0));
|
3
|
+
@include u-transform(translateY(0) scaleY(1) scaleX(1) translateZ(0));
|
4
4
|
}
|
5
5
|
25% {
|
6
|
-
@include transform(translateY(-1.35rem) scaleY(1.02) scaleX(0.98));
|
6
|
+
@include u-transform(translateY(-1.35rem) scaleY(1.02) scaleX(0.98));
|
7
7
|
}
|
8
8
|
35% {
|
9
|
-
@include transform(translateY(0) scaleY(0.98) scaleX(1.02));
|
9
|
+
@include u-transform(translateY(0) scaleY(0.98) scaleX(1.02));
|
10
10
|
}
|
11
11
|
50% {
|
12
|
-
@include transform(translateY(-1rem) scaleY(1.01) scaleX(0.99));
|
12
|
+
@include u-transform(translateY(-1rem) scaleY(1.01) scaleX(0.99));
|
13
13
|
}
|
14
14
|
60% {
|
15
|
-
@include transform(translateY(0) scaleY(0.99) scaleX(1.01));
|
15
|
+
@include u-transform(translateY(0) scaleY(0.99) scaleX(1.01));
|
16
16
|
}
|
17
17
|
75% {
|
18
|
-
@include transform(translateY(-0.05rem));
|
18
|
+
@include u-transform(translateY(-0.05rem));
|
19
19
|
}
|
20
20
|
}
|
21
21
|
|
22
22
|
@mixin bounce($duration: 1s, $delay: 0s, $count: 1, $fill-mode: none) {
|
23
|
-
@include animation(bounce $count $duration $delay $fill-mode);
|
23
|
+
@include u-animation(bounce $count $duration $delay $fill-mode);
|
24
24
|
}
|