-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_mixins.scss
89 lines (80 loc) · 2.08 KB
/
_mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@mixin clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
@mixin transition($args...) {
-webkit-transition: $args;
-moz-transition: $args;
-ms-transition: $args;
-o-transition: $args;
transition: $args;
}
@mixin ease {
@include transition(.2s all ease);
}
@mixin transform($args...) {
-webkit-transform: $args;
-moz-transform: $args;
-ms-transform: $args;
-o-transform: $args;
transform: $args;
}
@mixin box-shadow($args...) {
-webkit-box-shadow: $args;
-moz-box-shadow: $args;
box-shadow: $args;
}
@mixin media-query($device) {
@media screen and (max-width: $device) {
@content;
}
}
@mixin media-query-min($width) {
@media screen and (min-width: $width) {
@content;
}
}
@mixin media-query-min-max($min-width, $max-width) {
@media screen and (min-width: $min-width) and (max-width: $max-width) {
@content;
}
}
@mixin keyframes($animationName) {
@-webkit-keyframes #{$animationName} {
@content;
}
@-moz-keyframes #{$animationName} {
@content;
}
@-o-keyframes #{$animationName} {
@content;
}
@keyframes #{$animationName} {
@content;
}
}
@mixin animate($name, $duration, $iteration, $direction, $timing) {
-webkit-animation-duration: $duration;
-moz-animation-duration: $duration;
-o-animation-duration: $duration;
animation-duration: $duration;
-webkit-animation-iteration-count: $iteration;
-moz-animation-iteration-count: $iteration;
-o-animation-iteration-count: $iteration;
animation-iteration-count: $iteration;
-webkit-animation-name: $name;
-moz-animation-name: $name;
-o-animation-name: $name;
animation-name: $name;
-webkit-animation-direction: $direction;
-moz-animation-direction: $direction;
-o-animation-direction: $direction;
animation-direction: $direction;
-webkit-animation-timing-function: $timing;
-moz-animation-timing-function: $timing;
-o-animation-timing-function: $timing;
animation-timing-function: $timing;
}