blob: a04b17f12bdd25b4cbd96f40d4776981a090bc41 [file] [log] [blame]
Matteo Scandolofb46ae62017-08-08 09:10:50 -07001
2/*
3 * Copyright 2017-present Open Networking Foundation
4
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8
9 * http://www.apache.org/licenses/LICENSE-2.0
10
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18
Matteo Scandolo042ea632017-03-01 19:02:34 -080019@import '../vars';
20
21.loader,
22.loader:before,
23.loader:after {
24 background: $color-accent;
25 animation: loaderAnimation 1s infinite ease-in-out;
26 width: 1em;
27 height: 4em;
28}
29.loader {
30 color: $color-accent;
31 text-indent: -9999em;
32 margin: 88px auto;
33 position: relative;
34 font-size: 11px;
35 transform: translateZ(0);
36 animation-delay: -0.16s;
37}
38.loader:before,
39.loader:after {
40 position: absolute;
41 top: 0;
42 content: '';
43}
44.loader:before {
45 left: -1.5em;
46 animation-delay: -0.32s;
47}
48.loader:after {
49 left: 1.5em;
50}
51
52@keyframes loaderAnimation {
53 0%,
54 80%,
55 100% {
56 box-shadow: 0 0;
57 height: 4em;
58 }
59 40% {
60 box-shadow: 0 -2em;
61 height: 5em;
62 }
63}