1 | |
---|
2 | /* Make clicks pass-through */ |
---|
3 | #loading-bar, |
---|
4 | #loading-bar-spinner { |
---|
5 | pointer-events: none; |
---|
6 | -webkit-pointer-events: none; |
---|
7 | -webkit-transition: 350ms linear all; |
---|
8 | -moz-transition: 350ms linear all; |
---|
9 | -o-transition: 350ms linear all; |
---|
10 | transition: 350ms linear all; |
---|
11 | } |
---|
12 | |
---|
13 | #loading-bar.ng-enter, |
---|
14 | #loading-bar.ng-leave.ng-leave-active, |
---|
15 | #loading-bar-spinner.ng-enter, |
---|
16 | #loading-bar-spinner.ng-leave.ng-leave-active { |
---|
17 | opacity: 0; |
---|
18 | } |
---|
19 | |
---|
20 | #loading-bar.ng-enter.ng-enter-active, |
---|
21 | #loading-bar.ng-leave, |
---|
22 | #loading-bar-spinner.ng-enter.ng-enter-active, |
---|
23 | #loading-bar-spinner.ng-leave { |
---|
24 | opacity: 1; |
---|
25 | } |
---|
26 | |
---|
27 | #loading-bar .bar { |
---|
28 | -webkit-transition: width 350ms; |
---|
29 | -moz-transition: width 350ms; |
---|
30 | -o-transition: width 350ms; |
---|
31 | transition: width 350ms;
|
---|
32 | position: absolute; |
---|
33 | background: #f7921d; |
---|
34 | z-index: 10002; |
---|
35 | top: 0; |
---|
36 | left: 0; |
---|
37 | width: 100%; |
---|
38 | height: 2px; |
---|
39 | border-bottom-right-radius: 1px; |
---|
40 | border-top-right-radius: 1px; |
---|
41 | } |
---|
42 | |
---|
43 | /* Fancy blur effect */ |
---|
44 | #loading-bar .peg { |
---|
45 | position: absolute; |
---|
46 | width: 70px; |
---|
47 | right: 0; |
---|
48 | top: 0; |
---|
49 | height: 2px; |
---|
50 | opacity: .45; |
---|
51 | -moz-box-shadow: #f7921d 1px 0 6px 1px; |
---|
52 | -ms-box-shadow: #f7921d 1px 0 6px 1px; |
---|
53 | -webkit-box-shadow: #f7921d 1px 0 6px 1px; |
---|
54 | box-shadow: #f7921d 1px 0 6px 1px; |
---|
55 | -moz-border-radius: 100%; |
---|
56 | -webkit-border-radius: 100%; |
---|
57 | border-radius: 100%; |
---|
58 | } |
---|
59 | |
---|
60 | #loading-bar-spinner { |
---|
61 | display: block; |
---|
62 | position: fixed; |
---|
63 | z-index: 10002; |
---|
64 | top: 10px; |
---|
65 | left: 10px; |
---|
66 | } |
---|
67 | |
---|
68 | #loading-bar-spinner .spinner-icon { |
---|
69 | width: 14px; |
---|
70 | height: 14px; |
---|
71 | |
---|
72 | border: solid 2px transparent; |
---|
73 | border-top-color: #f7921d; |
---|
74 | border-left-color: #f7921d; |
---|
75 | border-radius: 50%; |
---|
76 | |
---|
77 | -webkit-animation: loading-bar-spinner 400ms linear infinite; |
---|
78 | -moz-animation: loading-bar-spinner 400ms linear infinite; |
---|
79 | -ms-animation: loading-bar-spinner 400ms linear infinite; |
---|
80 | -o-animation: loading-bar-spinner 400ms linear infinite; |
---|
81 | animation: loading-bar-spinner 400ms linear infinite; |
---|
82 | } |
---|
83 | |
---|
84 | @-webkit-keyframes loading-bar-spinner { |
---|
85 | 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } |
---|
86 | 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } |
---|
87 | } |
---|
88 | @-moz-keyframes loading-bar-spinner { |
---|
89 | 0% { -moz-transform: rotate(0deg); transform: rotate(0deg); } |
---|
90 | 100% { -moz-transform: rotate(360deg); transform: rotate(360deg); } |
---|
91 | } |
---|
92 | @-o-keyframes loading-bar-spinner { |
---|
93 | 0% { -o-transform: rotate(0deg); transform: rotate(0deg); } |
---|
94 | 100% { -o-transform: rotate(360deg); transform: rotate(360deg); } |
---|
95 | } |
---|
96 | @-ms-keyframes loading-bar-spinner { |
---|
97 | 0% { -ms-transform: rotate(0deg); transform: rotate(0deg); } |
---|
98 | 100% { -ms-transform: rotate(360deg); transform: rotate(360deg); } |
---|
99 | } |
---|
100 | @keyframes loading-bar-spinner { |
---|
101 | 0% { transform: rotate(0deg); transform: rotate(0deg); } |
---|
102 | 100% { transform: rotate(360deg); transform: rotate(360deg); } |
---|
103 | } |
---|