summaryrefslogtreecommitdiff
path: root/style/plugins/activity-indicator.scss
blob: d5df8c001394957fe007f4ccfea2053bb8df4400 (plain)
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
$loadingbox-size: 20px;

#imagelightbox-loading,
#imagelightbox-loading div {
    border-radius: 50%;
}

#imagelightbox-loading {
    box-shadow: rgba(0, 0, 0, .75) 0 0 $loadingbox-size*2;

    background: #444; // Fallback
    background: rgba(0, 0, 0, .5);
    height: $loadingbox-size;
    left: 50%;
    margin: -20px 0 0 -20px;
    padding: 10px;
    position: fixed;
    top: 50%;
    width: $loadingbox-size;
    z-index: 10003;
    animation: fade-in .25s linear;

    div {
        animation: imagelightbox-loading .5s ease infinite;

        background-color: #fff;
        height: 20px;
        width: 20px;
    }
}

@keyframes imagelightbox-loading {
    0% {
        opacity: .5;
        transform: scale(.75);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: .5;
        transform: scale(.75);
    }
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}