aboutsummaryrefslogtreecommitdiff
path: root/src/app/css/dragui.css
blob: fb5b1a7e8333aeb94f5f24a2a464ac834b439d77 (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
@import "theming.css";

/*
 This stylesheet is meant for the DragUI, i.e the UI that pops up when dragging
 a modfile over the window.
*/

#dragUI {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	color: white;
	opacity: 0.0;
	position: fixed;
	z-index: 1000000;
	pointer-events: none;
	background: var(--bg);
	backdrop-filter: blur(15px);
	transition: 0.1s ease-in-out;
}

#dragUI.shown {
	opacity: 1.0;
	pointer-events: all;
}

#dragUI #dragitems {
	--size: 25vw;
	top: 50%;
	left: 50%;
	opacity: 0.6;
	position: absolute;
	text-align: center;
	width: var(--size);
	height: var(--size);
	margin-top: calc(var(--size) / 2 * -1);
	margin-left: calc(var(--size) / 2 * -1);
}

#dragUI #dragitems #icon {
	width: 100%;
	height: 100%;
	filter: invert(1);
	transform: scale(0.45);
	background-size: cover;
	background-image: url("../icons/download.png");
	transition: 0.1s ease-in-out;
}

#dragUI.shown #dragitems #icon {
	transform: scale(0.5);
}

#dragUI #dragitems #text {
	top: -5vw;
	position: relative;
}