-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
62 lines (56 loc) · 1.21 KB
/
style.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
@for $row from 0 through 3 {
@for $column from 0 through 3 {
.position_#{$row}_#{$column}:not(.isMoving) {
top: 110 * $row + 5;
left: 110 * $column + 5;
}
}
}
@for $fromRow from 0 through 3 {
@for $toRow from 0 through 3 {
$name: row_from_#{$fromRow}_to_#{$toRow};
@if $fromRow == $toRow {
.#{$name} {
top: 110 * $toRow + 5;
}
} @else {
.#{$name} {
animation-duration: 0.20s;
animation-name: $name;
animation-fill-mode: forwards;
}
@keyframes #{$name} {
from {
top: 110 * $fromRow + 5;
}
to {
top: 110 * $toRow + 5;
}
}
}
}
}
@for $fromColumn from 0 through 3 {
@for $toColumn from 0 through 3 {
$name: column_from_#{$fromColumn}_to_#{$toColumn};
@if $fromColumn == $toColumn {
.#{$name} {
left: 110 * $toColumn + 5;
}
} @else {
.#{$name} {
animation-duration: 0.20s;
animation-name: $name;
animation-fill-mode: forwards;
}
@keyframes #{$name} {
from {
left: 110 * $fromColumn + 5;
}
to {
left: 110 * $toColumn + 5;
}
}
}
}
}