-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
90 lines (87 loc) · 1.32 KB
/
index.css
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
82
83
84
85
86
87
88
89
90
html {
height: 100%;
}
body {
height: calc(100% - 16px);
}
.help {
position: absolute;
top: 5em;
right: 5em;
z-index: 1;
padding: 1em;
background-color: white;
}
.status {
position: absolute;
top: 2px;
right: 2px;
z-index: 1;
margin: 0;
padding: 0.1em;
background-color: white;
animation: fadeOut 2s;
animation-fill-mode: forwards;
}
.status > * {
font-size: 12pt;
margin: 0;
}
.viewer {
width: 100%;
height: 100%;
}
.viewer > img {
position: relative;
}
.viewer > .caption {
bottom: 8px;
font-size: 1em;
position: absolute;
text-align: center;
visibility: hidden;
width: calc(100% - 16px);
}
.viewer > .spinner {
animation: rotate 2s linear infinite;
position: absolute;
top: 45%;
left: 45%;
margin: -5% 0 0 -5%;
width: 20%;
height: 20%;
}
.viewer > .spinner circle {
fill: none;
stroke: rgb(164, 153, 247);
stroke-linecap: round;
stroke-width: 1px;
animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
@keyframes dash {
0% {
stroke-dasharray: 1, 150;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -35;
}
100% {
stroke-dasharray: 90, 150;
stroke-dashoffset: -124;
}
}
@keyframes fadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}