aboutsummaryrefslogtreecommitdiff
path: root/src/app/css/popups.css
blob: 70a39a672f685eab0ca896703a70be0ae899d8fc (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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
@import "theming.css";

/*
 This stylesheet is meant for the various popups we use, whether it be the
 previewer, the browser, the settings menu, or anything alike.
*/

.popup {
	--spacing: var(--padding);

	z-index: 2;
	opacity: 0.0;
	position: fixed;
	overflow-y: scroll;
	top: var(--spacing);
	pointer-events: none;
	left: var(--spacing);
	background: var(--bg);
	right: var(--spacing);
	bottom: var(--spacing);
	transform: scale(0.98);
	backdrop-filter: blur(15px);
	border-radius: calc(var(--padding) / 3);

	transition-duration: 0.15s;
	transition-property: opacity, transform;
	transition-timing-function: ease-in-out;
}

.popup.shown {
	opacity: 1.0;
	pointer-events: all;
	transform: scale(1.0);
}

.popup.small {
	left: 20vw;
	right: 20vw;
	top: calc(var(--padding) * 2);
	bottom: calc(var(--padding) * 2);
}

#overlay {
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	opacity: 0.0;
	position: fixed;
	background: var(--bg);
	pointer-events: none;
	transition: opacity 0.15s ease-in-out;
}

#overlay.shown {
	opacity: 0.8;
	pointer-events: all;
}

/* browser/preview popup { */
@keyframes fadein {
	0% {opacity: 0.0}
	100% {opacity: 1.0}
}

.popup webview {
	width: 78%;
	margin: 0 auto;
	filter: opacity(1.0);
	transition: filter 0.15s ease-in-out;
	margin-top: calc(var(--spacing) / 2);
	height: calc(100% - calc(var(--spacing) / 2));
}

.popup webview.loading {
	filter: opacity(0.0);
	pointer-events: none;
}
/* } */

/* settings popup { */

.popup .options {
	color: white;
	margin: calc(var(--padding) / 2);
}

.popup .options .option {
	width: 100%;
	display: flex;
	margin-bottom: var(--padding);
	justify-content: space-between;
}

.popup .overlay {
	z-index: 1;
	color: white;
	opacity: 0.0;
	position: fixed;
	pointer-events: none;
	transform: scale(0.9);
	background: var(--selbg);
	backdrop-filter: blur(15px);
	transition: 0.15s ease-in-out;
	padding: calc(var(--spacing) / 2);
	border-radius: calc(var(--spacing) / 2);
}

.popup .overlay.shown {
	opacity: 1.0;
	pointer-events: all;
	transform: scale(1.0);
}

#options.popup .misc button {
	margin-left: 0px;
	width: auto !important;
	padding-right: calc(var(--padding) / 2) !important;
}

.check {
	display:flex;
	cursor: pointer;
}

.check::before {
	width: 1em;
	height: 1em;
	content: " ";
    background-size: 75%;
	filter: brightness(1.3);
    background-position: center;
    background-repeat: no-repeat;
	transition: 0.15s ease-in-out;
	background-color: var(--selbg);
	margin-right: calc(var(--spacing) / 3);
	border-radius: calc(var(--spacing) / 4);
}

.check.checked::before {
	background-color: rgb(var(--red));
    background-image: url(../icons/check.png);
}

.option .text {font-weight: 600}
.option .text .desc {
	opacity: 0.8;
	font-weight: 500;
	font-size: 0.9em;
	max-width: 400px;
	margin-top: calc(var(--padding) / 3);
}

.option .actions input, .option .actions select {
	width: 100%;
	margin: 0px;
	--spacing: calc(var(--padding) / 3);
}

.option[type=array] .actions input {
	word-spacing: 15px;
	margin-right: 15vw;
}

.option .actions button {
	background: var(--selbg);
}

.switch {
	width: 50px;
	height: 25px;
	border-radius: 50px;
}

.switch.on {
	background: rgba(var(--red), 0.2) !important;
}

.switch::after {
	left: -5px;
	width: 15px;
	height: 15px;
	content: " ";
	display: block;
	background: red;
	position: relative;
	border-radius: 50px;
	background: var(--bg);
	transition: 0.2s ease-in-out;
}

.switch.on::after {
	left: 15px;
	width: 20px;
	opacity: 0.5;
	background: rgb(var(--red));
}

.switch.on:hover::after {
	transform: scale(1.2);
}

.title {
	display: flex;
}

.title img {
	width: 30px;
	height: 30px;
	margin: auto 0;
}

.title h2 {
	margin-left: calc(var(--padding) / 3);
}

/* } */