teomello commited on
Commit
d552245
·
verified ·
1 Parent(s): 1912db4

Delete style.css

Browse files
Files changed (1) hide show
  1. style.css +0 -430
style.css DELETED
@@ -1,430 +0,0 @@
1
- /* =========================
2
- GLOBAL BACKGROUND (NYC)
3
- ========================= */
4
-
5
- gradio-app,
6
- .gradio-app,
7
- .main,
8
- #app,
9
- [data-testid="app"],
10
- html,
11
- body {
12
- background: url("https://huggingface.co/spaces/teomello/FinalProjectAPP/resolve/main/Z2kAxe.jpg") no-repeat center center fixed !important;
13
- background-size: cover !important;
14
- min-height: 100vh !important;
15
- margin: 0 !important;
16
- padding: 0 !important;
17
- }
18
-
19
- /* Overlay for readability */
20
- gradio-app::before,
21
- .gradio-app::before,
22
- .main::before,
23
- #app::before,
24
- [data-testid="app"]::before {
25
- content: "" !important;
26
- position: fixed !important;
27
- inset: 0 !important;
28
- background: rgba(0, 0, 0, 0.30) !important;
29
- pointer-events: none !important;
30
- z-index: 0 !important;
31
- }
32
-
33
- /* Remove any previous bottom banner */
34
- body::after {
35
- content: none !important;
36
- }
37
-
38
- /* =========================
39
- MAIN CONTAINER
40
- ========================= */
41
-
42
- .gradio-container {
43
- position: relative !important;
44
- z-index: 1 !important;
45
- max-width: 1400px !important;
46
- width: 94vw !important;
47
- margin: 0 auto !important;
48
- padding-top: 180px !important;
49
- padding-bottom: 120px !important;
50
- background: transparent !important;
51
- }
52
-
53
- /* =========================
54
- TITLE / HERO
55
- ========================= */
56
-
57
- /* Optional: add a dark panel behind title/subtitle for readability */
58
- #escp_title {
59
- background: rgba(0, 0, 0, 0.45) !important;
60
- padding: 20px !important;
61
- border-radius: 12px !important;
62
- max-width: 1100px !important;
63
- margin: 0 auto 18px auto !important;
64
- }
65
-
66
- #escp_title h1 {
67
- color: rgb(242,198,55) !important;
68
- font-size: 3rem !important;
69
- font-weight: 800 !important;
70
- text-align: center !important;
71
- margin: 0 0 12px 0 !important;
72
- }
73
-
74
- /* Subtitle more visible */
75
- #escp_title p,
76
- #escp_title em {
77
- color: rgba(255,255,255,0.98) !important;
78
- font-size: 1.1rem !important;
79
- font-weight: 500 !important;
80
- text-align: center !important;
81
- max-width: 900px !important;
82
- margin: 0 auto 6px auto !important;
83
- line-height: 1.5 !important;
84
- }
85
-
86
- /* =========================
87
- TABS
88
- ========================= */
89
-
90
- .tabs > .tab-nav,
91
- .tab-nav,
92
- div[role="tablist"],
93
- .svelte-tabs > .tab-nav {
94
- background: rgba(0, 0, 0, 0.45) !important;
95
- border-radius: 10px 10px 0 0 !important;
96
- padding: 4px !important;
97
- }
98
-
99
- /* ALL tab buttons */
100
- .tabs > .tab-nav button,
101
- .tab-nav button,
102
- div[role="tablist"] button,
103
- button[role="tab"],
104
- .svelte-tabs button,
105
- .tab-nav > button,
106
- .tabs button {
107
- color: #ffffff !important;
108
- font-weight: 600 !important;
109
- border: none !important;
110
- background: transparent !important;
111
- padding: 10px 20px !important;
112
- border-radius: 8px 8px 0 0 !important;
113
- opacity: 1 !important;
114
- }
115
-
116
- /* Selected tab */
117
- .tabs > .tab-nav button.selected,
118
- .tab-nav button.selected,
119
- button[role="tab"][aria-selected="true"],
120
- button[role="tab"].selected,
121
- div[role="tablist"] button[aria-selected="true"],
122
- .svelte-tabs button.selected {
123
- color: rgb(242, 198, 55) !important;
124
- background: rgba(255, 255, 255, 0.15) !important;
125
- }
126
-
127
- /* Unselected tabs visibility */
128
- .tabs > .tab-nav button:not(.selected),
129
- .tab-nav button:not(.selected),
130
- button[role="tab"][aria-selected="false"],
131
- button[role="tab"]:not(.selected),
132
- div[role="tablist"] button:not([aria-selected="true"]) {
133
- color: #ffffff !important;
134
- opacity: 1 !important;
135
- }
136
-
137
- /* =========================
138
- PANELS / CARDS
139
- ========================= */
140
-
141
- .gradio-container .gr-block,
142
- .gradio-container .gr-box,
143
- .gradio-container .gr-panel,
144
- .gradio-container .gr-group {
145
- background: rgba(255, 255, 255, 0.96) !important;
146
- border-radius: 12px !important;
147
- }
148
-
149
- /* Tab content */
150
- .tabitem {
151
- background: rgba(255, 255, 255, 0.95) !important;
152
- border-radius: 0 0 12px 12px !important;
153
- padding: 16px !important;
154
- }
155
-
156
- /* =========================
157
- INPUTS
158
- ========================= */
159
-
160
- .gradio-container input,
161
- .gradio-container textarea,
162
- .gradio-container select {
163
- background: #ffffff !important;
164
- border: 1px solid #d1d5db !important;
165
- border-radius: 8px !important;
166
- }
167
-
168
- /* =========================
169
- EXECUTION LOG (terminal style)
170
- Force black background + white text
171
- ========================= */
172
-
173
- /* Keep normal inputs white, but log textarea black:
174
- target Gradio textbox/textarea more specifically */
175
- .gradio-container textarea,
176
- .gradio-container .gr-textbox textarea,
177
- .gradio-container [data-testid="textbox"] textarea {
178
- background-color: #111111 !important;
179
- color: #eaeaea !important;
180
- font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
181
- font-size: 0.85rem !important;
182
- border-radius: 10px !important;
183
- padding: 12px !important;
184
- border: 1px solid rgba(255,255,255,0.18) !important;
185
- }
186
-
187
- /* Ensure placeholder is visible if any */
188
- .gradio-container textarea::placeholder {
189
- color: rgba(255,255,255,0.55) !important;
190
- }
191
-
192
- /* =========================
193
- BUTTONS
194
- ========================= */
195
-
196
- /* Only style "real" action buttons, not icon toolbar buttons or thumbnails */
197
- .gradio-container button:not([role="tab"]):not(.icon-button):not(.thumbnail-item):not([class*="thumbnail"]) {
198
- font-weight: 600 !important;
199
- padding: 10px 16px !important;
200
- border-radius: 10px !important;
201
- }
202
-
203
- button.primary {
204
- background-color: rgb(40, 9, 109) !important;
205
- color: #ffffff !important;
206
- border: none !important;
207
- }
208
-
209
- button.primary:hover {
210
- background-color: rgb(60, 20, 140) !important;
211
- }
212
-
213
- button.secondary {
214
- background-color: #ffffff !important;
215
- color: rgb(40, 9, 109) !important;
216
- border: 2px solid rgb(40, 9, 109) !important;
217
- }
218
-
219
- button.secondary:hover {
220
- background-color: rgb(240, 238, 250) !important;
221
- }
222
-
223
- /* =========================
224
- DATAFRAMES / TABLES
225
- ========================= */
226
-
227
- [data-testid="dataframe"] {
228
- background-color: #ffffff !important;
229
- border-radius: 10px !important;
230
- }
231
-
232
- table {
233
- font-size: 0.85rem !important;
234
- }
235
-
236
- /* =========================
237
- CHATBOT (AI Dashboard)
238
- ========================= */
239
-
240
- .gr-chatbot {
241
- min-height: 380px !important;
242
- background-color: #ffffff !important;
243
- border-radius: 12px !important;
244
- }
245
-
246
- .gr-chatbot .message.user {
247
- background-color: rgb(232, 225, 250) !important;
248
- border-radius: 12px !important;
249
- }
250
-
251
- .gr-chatbot .message.bot {
252
- background-color: #f3f4f6 !important;
253
- border-radius: 12px !important;
254
- }
255
-
256
- /* =========================
257
- GALLERY
258
- ========================= */
259
-
260
- .gallery {
261
- background: #ffffff !important;
262
- border-radius: 10px !important;
263
- }
264
-
265
- /* =========================
266
- MARKDOWN HEADINGS
267
- ========================= */
268
-
269
- .tabitem h3 {
270
- color: rgb(40, 9, 109) !important;
271
- font-weight: 700 !important;
272
- }
273
-
274
- .tabitem h4 {
275
- color: #374151 !important;
276
- }
277
-
278
- /* =========================
279
- EXAMPLES ROW (AI Dashboard)
280
- ========================= */
281
-
282
- .examples-row button {
283
- background: rgb(240, 238, 250) !important;
284
- color: rgb(40, 9, 109) !important;
285
- border: 1px solid rgb(40, 9, 109) !important;
286
- border-radius: 8px !important;
287
- font-size: 0.85rem !important;
288
- }
289
-
290
- .examples-row button:hover {
291
- background: rgb(232, 225, 250) !important;
292
- }
293
-
294
- /* =========================
295
- HEADER / FOOTER CLEANUP
296
- ========================= */
297
-
298
- header,
299
- footer,
300
- header *,
301
- footer * {
302
- background: transparent !important;
303
- box-shadow: none !important;
304
- }
305
-
306
- /* Hover state */
307
- .gradio-container .gr-modal button:hover,
308
- .gradio-container .gallery button:hover {
309
- background: rgb(240, 238, 250) !important;
310
- }
311
-
312
- /* =========================
313
- FIX: Image viewer icon-button toolbar (Download/Fullscreen/Share/Close)
314
- These use SVG with fill/stroke="currentColor", so we must set a visible color.
315
- Targets .icon-button class directly — works for gr.Image AND gallery lightbox.
316
- ========================= */
317
-
318
- .gradio-container button.icon-button,
319
- .gradio-container .icon-button,
320
- button.icon-button,
321
- .icon-button {
322
- color: #374151 !important; /* dark gray — visible on white bg */
323
- background: rgba(255,255,255,0.90) !important;
324
- border-radius: 8px !important;
325
- padding: 4px !important; /* keep compact — these are icon-only buttons */
326
- }
327
-
328
- .gradio-container button.icon-button:hover,
329
- .gradio-container .icon-button:hover,
330
- button.icon-button:hover,
331
- .icon-button:hover {
332
- background: rgba(232, 225, 250, 0.95) !important;
333
- color: rgb(40, 9, 109) !important;
334
- }
335
-
336
- /* Ensure SVGs inside icon-buttons inherit the visible color */
337
- .gradio-container button.icon-button svg,
338
- .gradio-container .icon-button svg,
339
- button.icon-button svg,
340
- .icon-button svg {
341
- color: inherit !important;
342
- stroke: currentColor;
343
- }
344
-
345
- /* Also cover any toolbar buttons wrapped in [role=dialog] (older Gradio) */
346
-
347
- .gradio-container [role="dialog"] button[aria-label]:not(.icon-button),
348
- .gradio-container [role="dialog"] button[title]:not(.icon-button) {
349
- background: rgba(255,255,255,0.95) !important;
350
- border: 1px solid rgba(40, 9, 109, 0.40) !important;
351
- border-radius: 10px !important;
352
- color: rgb(40, 9, 109) !important;
353
- }
354
-
355
- .gradio-container [role="dialog"] button[aria-label]:not(.icon-button) svg,
356
- .gradio-container [role="dialog"] button[title]:not(.icon-button) svg {
357
- color: rgb(40, 9, 109) !important;
358
- }
359
-
360
- /* =========================
361
- FIX: Gallery bottom strip — thumbnail-item buttons
362
- ========================= */
363
-
364
- .gradio-container button.thumbnail-item,
365
- .gradio-container [class*="thumbnail-item"] {
366
- background: transparent !important;
367
- border: 2px solid transparent !important;
368
- border-radius: 6px !important;
369
- padding: 2px !important; /* remove the 10px 16px from the general rule */
370
- overflow: hidden !important;
371
- min-width: 52px !important;
372
- min-height: 52px !important;
373
- }
374
-
375
- .gradio-container button.thumbnail-item.selected,
376
- .gradio-container [class*="thumbnail-item"].selected {
377
- border-color: rgb(40, 9, 109) !important;
378
- }
379
-
380
- .gradio-container button.thumbnail-item img,
381
- .gradio-container [class*="thumbnail-item"] img {
382
- display: block !important;
383
- width: 100% !important;
384
- height: 100% !important;
385
- object-fit: cover !important;
386
- opacity: 1 !important;
387
- visibility: visible !important;
388
- filter: none !important;
389
- }
390
-
391
- /* =========================
392
- FIX: Gallery grid thumbnails
393
- ========================= */
394
-
395
- .gradio-container .gallery,
396
- .gradio-container [data-testid="gallery"] {
397
- background: #ffffff !important;
398
- }
399
-
400
- .gradio-container .gallery button:not(.icon-button):not(.thumbnail-item),
401
- .gradio-container [data-testid="gallery"] button:not(.icon-button):not(.thumbnail-item) {
402
- background: transparent !important;
403
- overflow: hidden !important;
404
- min-width: 56px !important;
405
- min-height: 56px !important;
406
- padding: 0 !important;
407
- }
408
-
409
- .gradio-container .gallery img,
410
- .gradio-container [data-testid="gallery"] img {
411
- display: block !important;
412
- opacity: 1 !important;
413
- visibility: visible !important;
414
- filter: none !important;
415
- mix-blend-mode: normal !important;
416
- width: 100% !important;
417
- height: 100% !important;
418
- object-fit: cover !important;
419
- }
420
-
421
- .gradio-container .gallery canvas,
422
- .gradio-container [data-testid="gallery"] canvas {
423
- display: block !important;
424
- opacity: 1 !important;
425
- visibility: visible !important;
426
- filter: none !important;
427
- width: 100% !important;
428
- height: 100% !important;
429
- }
430
-