blob: d86cf8f07f9a6016e8a5de7ee81bc529f8e7602c (
plain)
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
|
@use "sass:list";
/* stylelint-disable property-no-vendor-prefix */
/* FUNCTIONS */
//animation
@mixin transition($target, $duration, $ease) {
transition: $target $duration $ease;
}
//animation
@mixin animation-delay($delay) {
animation-delay: $delay;
}
//animation
@mixin animation($animate...) {
$max: list.length($animate);
$animations: '';
@for $i from 1 through $max {
$animations: #{$animations + list.nth($animate, $i)};
@if $i < $max {
$animations: #{$animations + ", "};
}
}
animation: #{$animations};
}
//keyframes
@mixin keyframes($animationName) {
@keyframes #{$animationName} {
@content;
}
}
@mixin border-radius($radius: 4px) {
border-radius: $radius;
}
|