aboutsummaryrefslogtreecommitdiff
path: root/static/widgets/image/index.css
blob: f265644926b7b8c29452e74997d04fb5aa34e11c (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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#container {
	position: relative;
	height: 100%;
	min-height: 100px;
	border-radius: var(--border-radius);
	overflow: none;
	box-shadow: #223223aa 1px 1px 4px;
	background: var(--card-background);
}

#container img {
	border-radius: var(--border-radius);
	max-width: 700px;
	width: calc(100vw - 20px);
	visibility: hidden;
	margin-bottom: -5px;
	height: calc((100vw - 20px) * 0.8);
}

#container.loaded img {
	visibility: visible;
	width: 100%;
	height: unset;
}

@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;
}

#menu {
	position: absolute;
	top: 0px;
	left: 0px;
	height: 100%;
	width: 0px;
	background: #efefef99;
	backdrop-filter: blur(5px);
	border-radius: var(--border-radius);
	transition: width 0.2s ease, padding 0.2s ease;
	overflow: hidden;
	align-content: center;
	overflow: hidden;
	padding: 0px;
}

#menu.open {
	width: 100%;
	padding: 10px;
}

#delete {
	background: #ee5151;
	padding: 10px;
	color: #fff;
	font-weight: bold;
	margin: auto;
	width: min-content;
	border-radius: var(--border-radius);
	cursor: pointer;
	user-select: none;
}

#date {
	background: #efefef99;
	padding: 10px;
	font-weight: bold;
	margin: auto;
	width: min-content;
	border-radius: var(--border-radius);
	cursor: pointer;
	user-select: none;
	margin-bottom: 10px;
}