blob: a16dd8a08a71e732a5d78cc7886bfd501a43fd89 [file] [log] [blame]
Matteo Scandolobf14f882016-06-02 10:01:34 -07001@import '../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/_variables.scss';
2
3/* LOADER */
4.loader {
5 font-size: 10px;
6 margin: 150px auto;
7 text-indent: -9999em;
8 width: 11em;
9 height: 11em;
10 border-radius: 50%;
11 background: #ffffff;
12 background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%);
13 position: relative;
14 animation: load3 1.4s infinite linear;
15 transform: translateZ(0);
16
17 &:before {
18 width: 50%;
19 height: 50%;
20 background: $brand-primary;
21 border-radius: 100% 0 0 0;
22 position: absolute;
23 top: 0;
24 left: 0;
25 content: '';
26 }
27
28 &:after {
29 background: #fff;
30 width: 75%;
31 height: 75%;
32 border-radius: 50%;
33 content: '';
34 margin: auto;
35 position: absolute;
36 top: 0;
37 left: 0;
38 bottom: 0;
39 right: 0;
40 }
41}
42
43.loader.reverse {
44 background: $brand-primary;
45 &:before {
46 background: #fff;
47 }
48 &:after {
49 background: $brand-primary;
50 }
51}
52
53
54.loader.small{
55 width: 2em;
56 height: 2em;
57 margin: 10px auto;
58}
59
60.loader.inline {
61 display: inline-block;
62 margin: 0 auto;
63 float: right;
64}
65
66
67@keyframes load3 {
68 0% {
69 transform: rotate(0deg);
70 }
71 100% {
72 transform: rotate(360deg);
73 }
74}