-
Notifications
You must be signed in to change notification settings - Fork 463
/
Copy pathmixins.scss
62 lines (56 loc) · 1.23 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
@mixin circular-loader($size) {
display: block;
width: $size;
height: $size;
border-radius: 50%;
border: 3px solid rgb(153, 153, 255);
border: 3px solid var(--popup-icon-color);
border-top-color: transparent;
animation: circular-loader-animation 1s linear infinite;
box-sizing: border-box;
}
@mixin loader($size) {
display: flex;
align-items: center;
justify-content: center;
&::after {
content: '';
@include circular-loader($size);
}
}
@mixin linear-loader($width, $height) {
&::after {
content: '';
display: block;
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin: 0 auto;
width: 30%;
height: 2px;
background-color: rgb(0, 0, 0);
animation: linear-loader-animation ease 1s infinite;
border-radius: 1px;
}
}
@mixin active-icon() {
background-color: inherit !important;
color: rgba(0, 0, 0, 0.2);
color: var(--active-color);
text-shadow: 0 0 0.5rem var(--box-shadow-color);
}
@mixin icon-badge() {
position: relative;
&::after {
content: '•';
position: absolute;
top: 5px;
right: 5px;
color: #ffda0c;
font-size: 1.4em;
height: fit-content;
line-height: 4px;
text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
}
}