File size: 6,251 Bytes
65bb020
a13431b
 
ca5ba1d
d17ad7a
cb9be22
d17ad7a
 
 
 
 
 
845aee0
a88d05c
cb9be22
a88d05c
d17ad7a
 
 
 
 
 
 
 
 
 
845aee0
1f8e1fc
a13431b
d17ad7a
 
 
 
 
 
 
 
 
 
 
 
 
d031df4
d17ad7a
 
 
 
 
 
 
 
 
6b9677b
d17ad7a
 
 
 
 
 
 
 
 
 
 
 
699507c
 
 
 
 
 
 
 
 
 
 
 
 
845aee0
699507c
 
955b536
d031df4
699507c
a13431b
 
 
 
 
d031df4
 
a13431b
 
 
 
 
3045c9d
 
a13431b
 
 
 
 
d031df4
 
 
a13431b
 
 
fe1b646
 
a13431b
 
 
 
 
a79d87c
690f674
a13431b
 
 
 
 
a79d87c
98138aa
a79d87c
a13431b
 
 
 
 
 
 
 
 
 
a5c7b22
690f674
a617521
a13431b
 
 
 
 
 
 
 
 
d031df4
 
 
a13431b
 
4396926
 
 
 
 
 
a13431b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
690f674
 
 
a13431b
 
 
 
 
690f674
 
a13431b
 
 
690f674
 
a13431b
 
690f674
 
 
 
 
 
 
 
 
a13431b
690f674
 
c73b38b
a13431b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
body {
	position: relative !important;

	/* MARK: Modal warning resolution  */
	& #resolution_modal_wrapper {
		--opacity-value: 1;
		position: absolute !important;
		inset: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 200;
		transition: opacity 0.6s ease-in-out, backdrop-filter 0.7s ease-in-out;
		backdrop-filter: blur(var(--blur-value));
		opacity: (--opacity-value);

		& #alertModal {
			position: absolute !important;
			top: 50%;
			left: 50%;
			width: 400px;
			max-width: 80vw !important;
			min-height: 140px;
			transform: translate(-50%, -50%);
			padding: var(--size-4) var(--size-8);
			background-color: var(--neutral-900) !important;
			transition: opacity 0.6s ease-in-out;
			opacity: (--opacity-value);

			border-top-width: 8px;
			border-right-width: 1px;
			border-bottom-width: 1px;
			border-left-width: 1px;
			border-top-style: solid;
			border-right-style: solid;
			border-bottom-style: solid;
			border-left-style: solid;
			border-top-color: var(--primary-600);
			border-right-color: var(--primary-600);
			border-bottom-color: var(--primary-600);
			border-left-color: var(--primary-600);
			border-radius: var(--container-radius);

			& #alertModalP {
				display: flex;
				justify-content: center;

				& span {
					color: var(--neutral-50);
					margin-top: 0rem;
					line-height: 1.4;
				}

				& svg {
					font-size: 4rem;
					margin-right: 1rem;
					color: var(--cat-red);
					fill: var(--cat-red);
				}
			}
		}
		& button {
			color: var(--text-color-by-luminance) !important;
		}
	}
	& > gradio-app {
		padding-top: 30px;
		position: relative;
	}
	& > gradio-app::before {
		position: absolute;
		content: "";
		background: var(--primary-900);
		background: linear-gradient(6deg, var(--primary-900) 0%, var(--primary-700) 100%);
		width: 100%;
		height: 355px;
		top: 0;
		z-index: 0;
		transition: filter 0.8s ease-in-out;
		filter: blur(var(--blur-value));
	}
}

body div.tabs > div.tab-nav {
	border-bottom: none !important;
	padding: 0 0.25rem 0 0.25rem !important;
	flex-wrap: nowrap;
	overflow-x: scroll;
	overflow-y: hidden;
}

div.tabs > div.tab-nav > button {
	color: var(--neutral-800);
	background: var(--primary-800) !important;
	opacity: 0.7 !important;
	min-width: 145px !important;
}

div.tabs > div.tab-nav > button.selected {
	border-width: 0 !important;
	background: var(--primary-600) !important;
	color: var(--neutral-950) !important;
	font-weight: 600;
}

div.tabs div.tabitem {
	background-color: var(--neutral-900) !important;
	border-top: 8px solid var(--primary-600) !important;
	border-radius: var(--container-radius) !important;
}

#input_column div.tabs > div.tab-nav > button {
	color: var(--neutral-50) !important;
	background: var(--neutral-800) !important;
	opacity: 0.7 !important;
	min-width: 145px !important;
}

#input_column div.tabs > div.tab-nav > button.selected {
	border-width: 0 !important;
	background: var(--primary-600) !important;
	color: var(--neutral-950) !important;
	font-weight: 600;
}

#input_column {
	& div.tabs div.tabitem {
		background-color: var(--neutral-800) !important;
		border: 0 solid var(--neutral-800) !important;
		border-top: 8px solid var(--primary-600) !important;
		border-right: 0 solid var(--neutral-800) !important;
		border-bottom: 0 solid var(--neutral-800) !important;
		border-left: 0 solid var(--neutral-800) !important;
		border-radius: var(--container-radius) !important;
		padding: 0 !important;
	}
}

.radio-btn-group {
	& label {
		font-weight: bold !important;
	}

	& label:has(input[type="radio"]:checked),
	label:has(input[type="radio"]:not(:checked)):hover {
		transition: color 0.4s ease-out, background 0.4s ease-out;
		color: var(--neutral-900) !important;
	}
}

.top-description h1 {
	color: var(--neutral-400);
	font-size: 2rem;
}

/* MARK: Toggle Button Checkbox */
/* INFO: gr.Checkbox elem_classes".toggle-btn" */

.toggle-btn {
	display: flex;
	flex-direction: column-reverse;

	& > div.wrap {
		display: none;
	}

	& > div:not(.wrap) {
		margin-top: var(--spacing-lg);
		margin-bottom: 0;
	}

	& > label {
		position: relative;
		width: 57px;
		height: 27px;
		display: inline-block;
		border-radius: 13px;
		background: var(--neutral-700);
		box-shadow: var(--shadow-inset);
		transition: background-color 0.3s, cursor 0.3s;
		border: solid 0.4px var(--border-color-primary);
		cursor: pointer;

		& > input[type="checkbox"] {
			width: 0;
			height: 0;
			opacity: 0;
		}

		& > span {
			position: absolute;
			left: 60px;
			height: 27px;
			min-width: 140px;
			line-height: 27px;
		}
	}

	& > label:has(input[type="checkbox"])::after {
		content: "";
		position: absolute;
		top: 3px;
		left: 3px;
		width: 20px;
		height: 20px;
		border-radius: 50%;
		background: var(--neutral-900);
		box-shadow: var(--shadow-inset);
		transition: left 0.2s ease-in-out, background 0.2s ease-in-out;
	}

	& > label:has(input[type="checkbox"]:checked)::after {
		content: "";
		position: absolute;
		background: var(--neutral-900);
		opacity: 0.8;
		left: 32px;
	}

	& > label:has(input[type="checkbox"]:checked) {
		background: var(--primary-600);
	}
}

/* MARK: Range Input */
input[type="range"].svelte-pc1gm4 {
	accent-color: var(--slider-color);
	background: var(--neutral-700) !important;
	background-image: linear-gradient(var(--slider-color), var(--slider-color)) !important;
	background-size: 0% 100%;
}

input[type="range"].svelte-pc1gm4::-webkit-slider-thumb {
	background-color: var(--primary-600);
	border-width: 0;
}

input[type="range"].svelte-pc1gm4::-webkit-slider-thumb:hover {
	background-color: var(--primary-500);
}

/* MARK: Text-Color Override */
label.svelte-1b6s6s,
label.svelte-9gxdi0,
span.svelte-1gfkn6j,
span.svelte-1gfkn6j,
.primary.svelte-cmf5ev,
label.selected.svelte-1k4wjf2.svelte-1k4wjf2.svelte-1k4wjf2 {
	color: var(--text-color-by-luminance) !important;
}

.md-header {
	& h1 {
		color: var(--primary-950) !important;
	}

	& p {
		color: var(--neutral-800) !important;
		line-height: 1.5 !important;
		font-size: 1.1rem !important;

		& i {
			display: inline-flex;
			align-items: center;
			justify-content: center;

			& svg {
				font-size: inherit !important;
				width: 16px !important;
				height: 16px !important;
			}
		}
	}
}