-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_icon.scss
More file actions
36 lines (31 loc) · 804 Bytes
/
_icon.scss
File metadata and controls
36 lines (31 loc) · 804 Bytes
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
/* @docs */
$icon-spin-animation-duration: 1.5s !default;
/* @docs */
@keyframes icon-spin {
to {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
.icon {
align-items: center;
display: inline-flex;
justify-content: center;
transition:
transform 150ms ease-out,
opacity 0.3s ease-out;
&.spin {
--#{$prefix}icon-spin-duration: #{$icon-spin-animation-duration};
display: inline-block;
animation-name: icon-spin;
animation-iteration-count: infinite;
animation-timing-function: linear;
animation-duration: var(--#{$prefix}icon-spin-duration);
}
// size variants
@each $name, $size in $sizes {
&.size-#{$name} {
font-size: $size;
}
}
}