aboutsummaryrefslogtreecommitdiff
path: root/static/widgets/image/index.css
blob: f4e2dce718d4119cbf8ba6a3c381c04db4814df0 (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
51
52
53
54
55
56
57
58
59
#container {
	position: relative;
	background: var(--card-background);
	height: 100%;
}

#container img {
	max-width: 700px;
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: #223223aa 1px 1px 4px;
	visibility: hidden;
}

#container.loaded img {
	visibility: visible;
}

@keyframes loader {
}

@keyframes loader {
	0% {
		width: 60px;
		height: 60px;
	}

	25% {
		border: 5px solid var(--page-background);
	}

	50% {
		width: 80px;
		height: 80px;
	}

	75% {
		border: 10px solid var(--page-background);
	}

	100% {
		width: 60px;
		height: 60px;
	}
}

#loading {
	position: absolute;
	border: 10px solid var(--page-background);
	border-radius: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation: 0.5s infinite loader ease;
}

.loaded #loading {
	display: none;
}