-
Notifications
You must be signed in to change notification settings - Fork 22
/
_loading.scss
83 lines (75 loc) · 2.06 KB
/
_loading.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
@keyframes aesthetic-windows-95-boot-infinite-loader {
0% {
transform: translate(-220%);
}
100% {
transform: translate(160%);
}
}
.aesthetic-windows-95-boot-loader {
width: 100%;
height: 20px;
background-color: $aesthetic-windows-95-gray;
overflow: hidden;
font-size: 0;
}
.aesthetic-windows-95-boot-loader > * {
width: 75%;
height: 100%;
opacity: 0.5;
background: linear-gradient(to right, $aesthetic-windows-95-grey 0%, $aesthetic-windows-95-blue 15%, $aesthetic-windows-95-blue 85%, $aesthetic-windows-95-gray 100%);
display: inline-block;
margin-right: 1px;
animation: aesthetic-windows-95-boot-infinite-loader 4.5s infinite;
animation-timing-function: linear;
}
// Windows XP loading bar
// https://codepen.io/duptitung/pen/XMVNyZ
@keyframes aesthetic-windows-xp-infinite-loader {
0% {
transform: translate(-50px);
}
100% {
transform: translate(160px);
}
}
.aesthetic-windows-xp-loader {
width: 150px;
height: 10px;
border: 2px solid #b2b2b2;
border-radius: 7px;
padding: 2px 1px;
overflow: hidden;
font-size: 0;
}
.aesthetic-windows-xp-loader > * {
width: 9px;
height: 100%;
background: linear-gradient(to bottom, #2838c7 0%,#5979ef 17%,#869ef3 32%,#869ef3 45%,#5979ef 59%,#2838c7 100%);
display: inline-block;
margin-right: 2px;
animation: aesthetic-windows-xp-infinite-loader 3.5s infinite;
animation-timing-function: linear;
}
.aesthetic-windows-95-loader {
width: 150px;
height: 20px;
border-top: 1px solid $aesthetic-windows-95-black;
border-left: 1px solid $aesthetic-windows-95-black;
border-right: 1px solid $aesthetic-windows-95-grey-border;
border-bottom: 1px solid $aesthetic-windows-95-grey-border;
border-radius: 0px;
padding: 1px 1px;
background-color: $aesthetic-windows-95-gray;
overflow: hidden;
font-size: 0;
}
.aesthetic-windows-95-loader > * {
width: 12px;
height: 100%;
background: $aesthetic-windows-95-blue;
display: inline-block;
margin-right: 1px;
animation: aesthetic-windows-xp-infinite-loader 3.5s infinite;
animation-timing-function: linear;
}