/
progress-indicator.component.scss
81 lines (64 loc) · 1.46 KB
/
progress-indicator.component.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
// --------------------------------------------------------------
// configuration TODO: we should implement this from the app!
// --------------------------------------------------------------
// color definitions
$bright: rgba(249, 249, 249, 1);
$dark: rgba(41, 41, 41, 1);
$mute: rgba(128, 128, 128, 0.8);
$accent: rgba(255, 196, 0, 1);
$primary: rgba(0, 105, 92, 1);
$warn: rgb(244, 67, 54);
// --------------------------------------------------------------
//
// default progress-indicator: rolling dasch logo
//
.app-progress-indicator.default {
margin: 48px auto;
.loader {
display: block;
margin: 0 auto;
}
svg path {
stroke-dasharray: 530;
stroke-dashoffset: 530;
animation: load 3s both infinite;
}
@keyframes load {
to {
stroke-dashoffset: 2120;
}
}
}
//
// submit data has a different progress indicator
//
.app-progress-indicator.submit {
height: 32px;
width: 32px;
.on-submit {
animation: spinner-keyframes .7s linear infinite;
height: 32px;
width: 32px;
.spinner {
border: 2px solid $primary;
border-bottom-color: transparent;
border-radius: 50%;
border-right-color: transparent;
height: 28px;
width: 28px;
}
}
.before-submit {
color: $mute;
}
.after-submit {
color: $primary;
}
.submit-error {
color: $warn;
}
@keyframes spinner-keyframes {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
}