Phileassss commited on
Commit
7c5ab80
·
verified ·
1 Parent(s): d91ef74

Delete style.css

Browse files
Files changed (1) hide show
  1. style.css +0 -360
style.css DELETED
@@ -1,360 +0,0 @@
1
- /* --- Target the Gradio app wrapper for backgrounds --- */
2
- gradio-app,
3
- .gradio-app,
4
- .main,
5
- #app,
6
- [data-testid="app"] {
7
- background-color: #eaeefc !important;
8
- background-image:
9
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_top.png'),
10
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_mid.png'),
11
- url('https://huggingface.co/spaces/ESCP/F2_Salary_Prediction_Model/resolve/main/background_bottom.png') !important;
12
- background-position:
13
- top center,
14
- 0 440px,
15
- bottom center !important;
16
- background-repeat:
17
- no-repeat,
18
- repeat-y,
19
- no-repeat !important;
20
- background-size:
21
- 100% auto,
22
- 100% auto,
23
- 100% auto !important;
24
- min-height: 100vh !important;
25
- }
26
-
27
- /* --- Fallback on html/body --- */
28
- html, body {
29
- background-color: #eaeefc !important;
30
- margin: 0 !important;
31
- padding: 0 !important;
32
- min-height: 100vh !important;
33
- }
34
-
35
- /* --- Main container --- */
36
- .gradio-container {
37
- max-width: 100% !important;
38
- width: 100% !important;
39
- margin: 0 !important;
40
- padding: 0 24px 150px 24px !important;
41
- background: transparent !important;
42
- }
43
-
44
- /* --- Title in deep blue --- */
45
- #escp_title h1 {
46
- color: #0d1b5e !important;
47
- font-size: 3.2rem !important;
48
- font-weight: 900 !important;
49
- text-align: center !important;
50
- margin: 0 0 10px 0 !important;
51
- letter-spacing: -0.5px !important;
52
- text-shadow: 0 2px 12px rgba(74,110,224,0.15) !important;
53
- }
54
-
55
- /* --- Subtitle in blue --- */
56
- #escp_title p, #escp_title em {
57
- color: #3a4888 !important;
58
- text-align: center !important;
59
- font-size: 1.05rem !important;
60
- font-weight: 500 !important;
61
- }
62
-
63
- /* --- Tab bar background --- */
64
- .tabs > .tab-nav,
65
- .tab-nav,
66
- div[role="tablist"],
67
- .svelte-tabs > .tab-nav {
68
- background: rgba(26,40,104,0.75) !important;
69
- border-radius: 10px 10px 0 0 !important;
70
- padding: 4px !important;
71
- backdrop-filter: blur(8px) !important;
72
- }
73
-
74
- /* --- ALL tab buttons: bigger, bolder --- */
75
- .tabs > .tab-nav button,
76
- .tab-nav button,
77
- div[role="tablist"] button,
78
- button[role="tab"],
79
- .svelte-tabs button,
80
- .tab-nav > button,
81
- .tabs button {
82
- color: #ffffff !important;
83
- font-weight: 700 !important;
84
- font-size: 1rem !important;
85
- border: none !important;
86
- background: transparent !important;
87
- padding: 14px 28px !important;
88
- border-radius: 8px 8px 0 0 !important;
89
- opacity: 1 !important;
90
- letter-spacing: 0.3px !important;
91
- }
92
-
93
- /* --- Selected tab: ESCP gold --- */
94
- .tabs > .tab-nav button.selected,
95
- .tab-nav button.selected,
96
- button[role="tab"][aria-selected="true"],
97
- button[role="tab"].selected,
98
- div[role="tablist"] button[aria-selected="true"],
99
- .svelte-tabs button.selected {
100
- color: rgb(242,198,55) !important;
101
- background: rgba(255,255,255,0.15) !important;
102
- }
103
-
104
- /* --- Unselected tabs: ensure visibility --- */
105
- .tabs > .tab-nav button:not(.selected),
106
- .tab-nav button:not(.selected),
107
- button[role="tab"][aria-selected="false"],
108
- button[role="tab"]:not(.selected),
109
- div[role="tablist"] button:not([aria-selected="true"]) {
110
- color: #ffffff !important;
111
- opacity: 1 !important;
112
- }
113
-
114
- /* --- White card panels --- */
115
- .gradio-container .gr-block,
116
- .gradio-container .gr-box,
117
- .gradio-container .gr-panel,
118
- .gradio-container .gr-group {
119
- background: #ffffff !important;
120
- border-radius: 10px !important;
121
- }
122
-
123
- /* --- Tab content area --- */
124
- .tabitem {
125
- background: rgba(255,255,255,0.96) !important;
126
- border-radius: 0 0 10px 10px !important;
127
- padding: 16px !important;
128
- }
129
-
130
- /* --- Inputs --- */
131
- .gradio-container input,
132
- .gradio-container textarea,
133
- .gradio-container select {
134
- background: #ffffff !important;
135
- border: 1px solid #d1d5db !important;
136
- border-radius: 8px !important;
137
- }
138
-
139
- /* --- Buttons: ESCP purple primary --- */
140
- .gradio-container button:not([role="tab"]) {
141
- font-weight: 600 !important;
142
- padding: 10px 16px !important;
143
- border-radius: 10px !important;
144
- }
145
-
146
- button.primary {
147
- background-color: rgb(40,9,109) !important;
148
- color: #ffffff !important;
149
- border: none !important;
150
- }
151
-
152
- button.primary:hover {
153
- background-color: rgb(60,20,140) !important;
154
- }
155
-
156
- button.secondary {
157
- background-color: #ffffff !important;
158
- color: rgb(40,9,109) !important;
159
- border: 2px solid rgb(40,9,109) !important;
160
- }
161
-
162
- button.secondary:hover {
163
- background-color: rgb(240,238,250) !important;
164
- }
165
-
166
- /* --- Dataframes --- */
167
- [data-testid="dataframe"] {
168
- background-color: #ffffff !important;
169
- border-radius: 10px !important;
170
- }
171
-
172
- table {
173
- font-size: 0.85rem !important;
174
- }
175
-
176
- /* --- Chatbot --- */
177
- .gr-chatbot {
178
- min-height: 380px !important;
179
- background-color: #ffffff !important;
180
- border-radius: 12px !important;
181
- }
182
-
183
- .gr-chatbot .message.user {
184
- background-color: rgb(232,225,250) !important;
185
- border-radius: 12px !important;
186
- }
187
-
188
- .gr-chatbot .message.bot {
189
- background-color: #f3f4f6 !important;
190
- border-radius: 12px !important;
191
- }
192
-
193
- /* --- Gallery --- */
194
- .gallery {
195
- background: #ffffff !important;
196
- border-radius: 10px !important;
197
- }
198
-
199
- /* --- Log textbox --- */
200
- textarea {
201
- font-family: monospace !important;
202
- font-size: 0.8rem !important;
203
- }
204
-
205
- /* --- Markdown headings inside tabs --- */
206
- .tabitem h3 {
207
- color: rgb(40,9,109) !important;
208
- font-weight: 700 !important;
209
- }
210
-
211
- .tabitem h4 {
212
- color: #374151 !important;
213
- }
214
-
215
- /* --- Examples row --- */
216
- .examples-row button {
217
- background: rgb(240,238,250) !important;
218
- color: rgb(40,9,109) !important;
219
- border: 1px solid rgb(40,9,109) !important;
220
- border-radius: 8px !important;
221
- font-size: 0.85rem !important;
222
- }
223
-
224
- .examples-row button:hover {
225
- background: rgb(232,225,250) !important;
226
- }
227
-
228
- /* --- Header / footer: transparent over banner --- */
229
- header, header *,
230
- footer, footer * {
231
- background: transparent !important;
232
- box-shadow: none !important;
233
- }
234
-
235
- footer a, footer button,
236
- header a, header button {
237
- background: transparent !important;
238
- border: none !important;
239
- box-shadow: none !important;
240
- }
241
-
242
- #footer, #footer *,
243
- [class*="footer"], [class*="footer"] *,
244
- [class*="chip"], [class*="pill"], [class*="chip"] *, [class*="pill"] * {
245
- background: transparent !important;
246
- border: none !important;
247
- box-shadow: none !important;
248
- }
249
-
250
- section footer {
251
- background: transparent !important;
252
- }
253
-
254
- section footer button,
255
- section footer a {
256
- background: transparent !important;
257
- background-color: transparent !important;
258
- border: none !important;
259
- box-shadow: none !important;
260
- color: white !important;
261
- }
262
-
263
- section footer button,
264
- section footer button * {
265
- background: transparent !important;
266
- background-color: transparent !important;
267
- background-image: none !important;
268
- box-shadow: none !important;
269
- filter: none !important;
270
- }
271
-
272
- section footer button::before,
273
- section footer button::after {
274
- background: transparent !important;
275
- background-color: transparent !important;
276
- background-image: none !important;
277
- box-shadow: none !important;
278
- filter: none !important;
279
- }
280
-
281
- section footer a,
282
- section footer a * {
283
- background: transparent !important;
284
- background-color: transparent !important;
285
- box-shadow: none !important;
286
- }
287
-
288
- .gradio-container footer button,
289
- .gradio-container footer button *,
290
- .gradio-container .footer button,
291
- .gradio-container .footer button * {
292
- background: transparent !important;
293
- background-color: transparent !important;
294
- background-image: none !important;
295
- box-shadow: none !important;
296
- }
297
-
298
- .gradio-container footer button::before,
299
- .gradio-container footer button::after,
300
- .gradio-container .footer button::before,
301
- .gradio-container .footer button::after {
302
- background: transparent !important;
303
- background-color: transparent !important;
304
- background-image: none !important;
305
- box-shadow: none !important;
306
- }
307
-
308
- /* --- Blue slider thumbs & tracks --- */
309
- input[type="range"] {
310
- accent-color: #2a4fd4 !important;
311
- }
312
- input[type="range"]::-webkit-slider-thumb {
313
- background: #2a4fd4 !important;
314
- border: 2px solid #ffffff !important;
315
- box-shadow: 0 0 0 3px rgba(42,79,212,0.2) !important;
316
- }
317
- input[type="range"]::-moz-range-thumb {
318
- background: #2a4fd4 !important;
319
- border: 2px solid #ffffff !important;
320
- }
321
- input[type="range"]::-webkit-slider-runnable-track {
322
- background: linear-gradient(to right, #2a4fd4, #6a8ef8) !important;
323
- }
324
-
325
- /* --- Bigger section headings inside tabs --- */
326
- .tabitem h3 {
327
- color: #0d1b5e !important;
328
- font-weight: 800 !important;
329
- font-size: 1.25rem !important;
330
- }
331
- .tabitem h4 {
332
- color: #1a2868 !important;
333
- font-weight: 700 !important;
334
- font-size: 1.05rem !important;
335
- }
336
-
337
- /* --- Bold markdown content headings --- */
338
- .tabitem p strong,
339
- .tabitem label {
340
- font-weight: 700 !important;
341
- color: #1a2868 !important;
342
- }
343
-
344
- /* --- Primary button bigger --- */
345
- button.primary,
346
- .gradio-container button.primary {
347
- background-color: #1a2868 !important;
348
- color: #ffffff !important;
349
- font-size: 1.05rem !important;
350
- padding: 14px 24px !important;
351
- border-radius: 12px !important;
352
- font-weight: 700 !important;
353
- letter-spacing: 0.3px !important;
354
- box-shadow: 0 4px 14px rgba(26,40,104,0.25) !important;
355
- }
356
- button.primary:hover,
357
- .gradio-container button.primary:hover {
358
- background-color: #2a3d8e !important;
359
- box-shadow: 0 6px 20px rgba(26,40,104,0.35) !important;
360
- }