Phileassss commited on
Commit
beead84
·
verified ·
1 Parent(s): c74ec89

Delete style.css

Browse files
Files changed (1) hide show
  1. style.css +0 -423
style.css DELETED
@@ -1,423 +0,0 @@
1
- /* ── Reset & base ── */
2
- *, *::before, *::after { box-sizing: border-box; }
3
-
4
- html, body {
5
- background: #f4f4f6 !important;
6
- margin: 0 !important;
7
- padding: 0 !important;
8
- min-height: 100vh !important;
9
- font-family: system-ui, -apple-system, sans-serif !important;
10
- }
11
-
12
- /* ── Full-width Gradio shell ── */
13
- gradio-app,
14
- .gradio-app,
15
- .main,
16
- #app,
17
- [data-testid="app"] {
18
- background: #f4f4f6 !important;
19
- background-image:
20
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_top.png'),
21
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_mid.png'),
22
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_bottom.png') !important;
23
- background-position: top center, 0 440px, bottom center !important;
24
- background-repeat: no-repeat, repeat-y, no-repeat !important;
25
- background-size: 100% auto, 100% auto, 100% auto !important;
26
- min-height: 100vh !important;
27
- }
28
-
29
- /* ── Gradio container: full width, no padding-top ── */
30
- .gradio-container {
31
- max-width: 100% !important;
32
- width: 100% !important;
33
- margin: 0 !important;
34
- padding: 0 !important;
35
- background: transparent !important;
36
- }
37
-
38
- /* ── Title block ── */
39
- #escp_title {
40
- text-align: center !important;
41
- padding: 28px 0 8px !important;
42
- }
43
- #escp_title h1 {
44
- color: #0d1b5e !important;
45
- font-size: 2.6rem !important;
46
- font-weight: 900 !important;
47
- margin: 0 0 6px !important;
48
- letter-spacing: -0.5px !important;
49
- }
50
- #escp_title p,
51
- #escp_title em {
52
- color: #3a4888 !important;
53
- font-size: 1rem !important;
54
- font-weight: 500 !important;
55
- }
56
-
57
- /* ── Tab nav: pill-style top bar ── */
58
- .tabs > .tab-nav,
59
- .tab-nav,
60
- div[role="tablist"],
61
- .svelte-tabs > .tab-nav {
62
- background: white !important;
63
- border-bottom: 0.5px solid #dde0f0 !important;
64
- border-radius: 0 !important;
65
- padding: 0 20px !important;
66
- display: flex !important;
67
- gap: 4px !important;
68
- box-shadow: 0 1px 4px rgba(26,40,104,0.06) !important;
69
- }
70
-
71
- .tabs > .tab-nav button,
72
- .tab-nav button,
73
- div[role="tablist"] button,
74
- button[role="tab"],
75
- .svelte-tabs button,
76
- .tab-nav > button,
77
- .tabs button {
78
- color: #7a88c0 !important;
79
- font-weight: 700 !important;
80
- font-size: 0.9rem !important;
81
- border: none !important;
82
- background: transparent !important;
83
- padding: 14px 22px !important;
84
- border-radius: 0 !important;
85
- border-bottom: 2.5px solid transparent !important;
86
- opacity: 1 !important;
87
- transition: color 0.15s, border-color 0.15s !important;
88
- }
89
-
90
- .tabs > .tab-nav button.selected,
91
- .tab-nav button.selected,
92
- button[role="tab"][aria-selected="true"],
93
- button[role="tab"].selected,
94
- div[role="tablist"] button[aria-selected="true"],
95
- .svelte-tabs button.selected {
96
- color: #1a2868 !important;
97
- background: #eef2ff !important;
98
- border-bottom: 3px solid #1a2868 !important;
99
- border-radius: 6px 6px 0 0 !important;
100
- }
101
-
102
- .tabs > .tab-nav button:not(.selected),
103
- .tab-nav button:not(.selected),
104
- button[role="tab"][aria-selected="false"],
105
- button[role="tab"]:not(.selected),
106
- div[role="tablist"] button:not([aria-selected="true"]) {
107
- color: #7a88c0 !important;
108
- border-bottom: 2.5px solid transparent !important;
109
- }
110
-
111
- /* ── Tab content: no heavy white box ── */
112
- .tabitem {
113
- background: transparent !important;
114
- border-radius: 0 !important;
115
- padding: 20px 24px 40px !important;
116
- }
117
-
118
- /* ── White cards ── */
119
- .gradio-container .gr-block,
120
- .gradio-container .gr-box,
121
- .gradio-container .gr-panel,
122
- .gradio-container .gr-group {
123
- background: white !important;
124
- border-radius: 16px !important;
125
- border: 0.5px solid #e0e4f0 !important;
126
- }
127
-
128
- /* ── Inputs ── */
129
- .gradio-container input,
130
- .gradio-container textarea,
131
- .gradio-container select {
132
- background: #fafbff !important;
133
- border: 0.5px solid #dde0f0 !important;
134
- border-radius: 8px !important;
135
- font-size: 13px !important;
136
- color: #0d1b5e !important;
137
- }
138
-
139
- .gradio-container input:focus,
140
- .gradio-container textarea:focus {
141
- border-color: #1a2868 !important;
142
- outline: none !important;
143
- box-shadow: 0 0 0 3px rgba(26,40,104,0.08) !important;
144
- }
145
-
146
- /* ── Blue slider thumbs ── */
147
- input[type="range"] {
148
- accent-color: #1a2868 !important;
149
- }
150
- input[type="range"]::-webkit-slider-thumb {
151
- background: #1a2868 !important;
152
- border: 2px solid white !important;
153
- box-shadow: 0 0 0 3px rgba(26,40,104,0.15) !important;
154
- }
155
- input[type="range"]::-moz-range-thumb {
156
- background: #1a2868 !important;
157
- border: 2px solid white !important;
158
- }
159
- input[type="range"]::-webkit-slider-runnable-track {
160
- background: #dde8f8 !important;
161
- border-radius: 4px !important;
162
- }
163
-
164
- /* ── Primary button ── */
165
- button.primary,
166
- .gradio-container button.primary,
167
- .gradio-container button[variant="primary"] {
168
- background: #1a2868 !important;
169
- color: white !important;
170
- font-size: 1rem !important;
171
- font-weight: 700 !important;
172
- padding: 13px 20px !important;
173
- border-radius: 12px !important;
174
- border: none !important;
175
- box-shadow: 0 4px 14px rgba(26,40,104,0.22) !important;
176
- letter-spacing: 0.2px !important;
177
- }
178
- button.primary:hover,
179
- .gradio-container button.primary:hover {
180
- background: #253499 !important;
181
- box-shadow: 0 6px 20px rgba(26,40,104,0.32) !important;
182
- }
183
-
184
- /* ── Secondary button ── */
185
- button.secondary,
186
- .gradio-container button.secondary {
187
- background: white !important;
188
- color: #1a2868 !important;
189
- border: 1.5px solid #1a2868 !important;
190
- border-radius: 10px !important;
191
- font-weight: 700 !important;
192
- }
193
- button.secondary:hover {
194
- background: #f4f4f6 !important;
195
- }
196
-
197
- /* ── Labels & headings inside tabs ── */
198
- .tabitem h1 { color: #0d1b5e !important; font-size: 1.6rem !important; font-weight: 900 !important; }
199
- .tabitem h2 { color: #0d1b5e !important; font-size: 1.3rem !important; font-weight: 800 !important; }
200
- .tabitem h3 { color: #0d1b5e !important; font-size: 1.1rem !important; font-weight: 800 !important; }
201
- .tabitem h4 { color: #1a2868 !important; font-size: 0.95rem !important; font-weight: 700 !important; }
202
- .tabitem p { color: #4a5280 !important; font-size: 0.88rem !important; }
203
-
204
- /* ── Dataframes ── */
205
- [data-testid="dataframe"] {
206
- background: white !important;
207
- border-radius: 12px !important;
208
- border: 0.5px solid #e0e4f0 !important;
209
- }
210
- table { font-size: 0.82rem !important; }
211
- th { color: #7a88c0 !important; font-size: 0.75rem !important; text-transform: uppercase !important; letter-spacing: 0.6px !important; }
212
-
213
- /* ── Chatbot ── */
214
- .gr-chatbot {
215
- min-height: 360px !important;
216
- background: white !important;
217
- border-radius: 14px !important;
218
- border: 0.5px solid #e0e4f0 !important;
219
- }
220
- .gr-chatbot .message.user { background: #f4f4f6 !important; border-radius: 12px !important; }
221
- .gr-chatbot .message.bot { background: #f8f9ff !important; border-radius: 12px !important; }
222
-
223
- /* ── Examples ── */
224
- .examples-row button {
225
- background: #f4f4f6 !important;
226
- color: #1a2868 !important;
227
- border: 0.5px solid #c0c8e8 !important;
228
- border-radius: 8px !important;
229
- font-size: 0.8rem !important;
230
- font-weight: 600 !important;
231
- }
232
- .examples-row button:hover { background: #e0e4f5 !important; }
233
-
234
- /* ── Transparent footer/header ── */
235
- header, header *, footer, footer * {
236
- background: transparent !important;
237
- box-shadow: none !important;
238
- }
239
- footer a, footer button, header a, header button {
240
- background: transparent !important;
241
- border: none !important;
242
- box-shadow: none !important;
243
- }
244
- #footer, #footer *, [class*="footer"], [class*="footer"] *,
245
- [class*="chip"], [class*="pill"], [class*="chip"] *, [class*="pill"] * {
246
- background: transparent !important;
247
- border: none !important;
248
- box-shadow: none !important;
249
- }
250
- section footer { background: transparent !important; }
251
- section footer button, section footer a {
252
- background: transparent !important;
253
- background-color: transparent !important;
254
- border: none !important;
255
- box-shadow: none !important;
256
- color: #4a5280 !important;
257
- }
258
- section footer button, section footer button * {
259
- background: transparent !important;
260
- background-image: none !important;
261
- box-shadow: none !important;
262
- filter: none !important;
263
- }
264
- section footer button::before, section footer button::after {
265
- background: transparent !important;
266
- background-image: none !important;
267
- box-shadow: none !important;
268
- }
269
- .gradio-container footer button,
270
- .gradio-container footer button *,
271
- .gradio-container .footer button,
272
- .gradio-container .footer button * {
273
- background: transparent !important;
274
- background-image: none !important;
275
- box-shadow: none !important;
276
- }
277
-
278
- /* ── GROUP boxes = white cards with shadow ── */
279
- .gradio-container .gr-group {
280
- background: white !important;
281
- border-radius: 18px !important;
282
- border: 0.5px solid #e4e8f4 !important;
283
- padding: 20px !important;
284
- box-shadow: 0 2px 16px rgba(26,40,104,0.06) !important;
285
- margin-bottom: 12px !important;
286
- }
287
-
288
- /* ── Remove Gradio's default label styling, make our own cleaner ── */
289
- .gradio-container label > span {
290
- font-size: 11px !important;
291
- font-weight: 700 !important;
292
- color: #7a88c0 !important;
293
- text-transform: uppercase !important;
294
- letter-spacing: 0.8px !important;
295
- }
296
-
297
- /* ── Sliders: full width, bigger thumb ── */
298
- input[type="range"] {
299
- width: 100% !important;
300
- height: 4px !important;
301
- accent-color: #1a2868 !important;
302
- border-radius: 2px !important;
303
- }
304
- input[type="range"]::-webkit-slider-thumb {
305
- width: 18px !important;
306
- height: 18px !important;
307
- background: #1a2868 !important;
308
- border: 2.5px solid white !important;
309
- border-radius: 50% !important;
310
- box-shadow: 0 0 0 3px rgba(26,40,104,0.15) !important;
311
- cursor: pointer !important;
312
- }
313
- input[type="range"]::-webkit-slider-runnable-track {
314
- background: linear-gradient(to right, #1a2868, #4a6ee0) !important;
315
- border-radius: 2px !important;
316
- height: 4px !important;
317
- }
318
-
319
- /* ── Inputs: cleaner, more modern ── */
320
- .gradio-container input[type="text"],
321
- .gradio-container input[type="number"],
322
- .gradio-container textarea {
323
- background: #f8f9ff !important;
324
- border: 1px solid #e4e8f4 !important;
325
- border-radius: 10px !important;
326
- padding: 10px 14px !important;
327
- font-size: 13px !important;
328
- color: #0d1b5e !important;
329
- transition: border-color 0.15s, box-shadow 0.15s !important;
330
- }
331
- .gradio-container input:focus,
332
- .gradio-container textarea:focus {
333
- border-color: #1a2868 !important;
334
- box-shadow: 0 0 0 3px rgba(26,40,104,0.1) !important;
335
- outline: none !important;
336
- }
337
-
338
- /* ── Dropdown select ── */
339
- .gradio-container select,
340
- .gradio-container .gr-dropdown select {
341
- background: #f8f9ff !important;
342
- border: 1px solid #e4e8f4 !important;
343
- border-radius: 10px !important;
344
- padding: 10px 14px !important;
345
- font-size: 13px !important;
346
- color: #0d1b5e !important;
347
- font-weight: 600 !important;
348
- }
349
-
350
- /* ── Primary button: gradient purple-blue like mockup ── */
351
- button.primary,
352
- .gradio-container button.primary,
353
- .gradio-container button[variant="primary"],
354
- .gr-button-primary {
355
- background: linear-gradient(135deg, #1a2868 0%, #3a5cd0 100%) !important;
356
- color: white !important;
357
- font-size: 1rem !important;
358
- font-weight: 800 !important;
359
- padding: 14px 24px !important;
360
- border-radius: 14px !important;
361
- border: none !important;
362
- box-shadow: 0 6px 20px rgba(26,40,104,0.28) !important;
363
- letter-spacing: 0.3px !important;
364
- width: 100% !important;
365
- transition: all 0.2s !important;
366
- }
367
- button.primary:hover,
368
- .gradio-container button.primary:hover {
369
- box-shadow: 0 8px 28px rgba(26,40,104,0.38) !important;
370
- transform: translateY(-1px) !important;
371
- }
372
-
373
- /* ── Plot containers: clean white cards ── */
374
- .gradio-container .gr-plot,
375
- .gradio-container [data-testid="plot"] {
376
- background: white !important;
377
- border-radius: 16px !important;
378
- border: 0.5px solid #e4e8f4 !important;
379
- box-shadow: 0 2px 12px rgba(26,40,104,0.05) !important;
380
- overflow: hidden !important;
381
- min-height: 380px !important;
382
- }
383
-
384
- /* ── HTML output areas: no background ── */
385
- .gradio-container .gr-html {
386
- background: transparent !important;
387
- border: none !important;
388
- padding: 0 !important;
389
- }
390
-
391
- /* ── Tab content padding ── */
392
- .tabitem {
393
- padding: 16px 20px 40px !important;
394
- }
395
-
396
- /* ── Number input ── */
397
- .gradio-container input[type="number"] {
398
- background: #eef2ff !important;
399
- border: 1px solid #c8d0f0 !important;
400
- border-radius: 8px !important;
401
- color: #1a2868 !important;
402
- font-weight: 700 !important;
403
- text-align: center !important;
404
- }
405
-
406
- /* ── Section headers inside tabitem ── */
407
- .tabitem h3 {
408
- color: #0d1b5e !important;
409
- font-size: 1rem !important;
410
- font-weight: 800 !important;
411
- margin-bottom: 4px !important;
412
- }
413
- .tabitem > .prose p,
414
- .tabitem p {
415
- color: #7a88c0 !important;
416
- font-size: 0.82rem !important;
417
- margin-top: 2px !important;
418
- }
419
-
420
- /* ── Row gaps ── */
421
- .gradio-container .gr-row {
422
- gap: 16px !important;
423
- }