Ankur Goyal commited on
Commit
37a2f41
1 Parent(s): d1e1ea7

CSS tweaks

Browse files
Files changed (1) hide show
  1. app.py +27 -2
app.py CHANGED
@@ -198,7 +198,7 @@ CSS = """
198
  padding-left: 8px !important;
199
  padding-right: 8px !important;
200
  }
201
- .gradio-container.light .gr-button-primary {
202
  background: linear-gradient(180deg, #CDF9BE 0%, #AFF497 100%);
203
  border: 1px solid #B0DCCC;
204
  border-radius: 8px;
@@ -210,6 +210,31 @@ CSS = """
210
  border-radius: 8px;
211
  color: #1B8700
212
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  """
214
 
215
  with gr.Blocks(css=CSS) as demo:
@@ -245,7 +270,7 @@ with gr.Blocks(css=CSS) as demo:
245
  submit = gr.Button("Get")
246
  gr.Markdown("— or —")
247
  upload = gr.File(
248
- label=" - or -", interactive=True, elem_id="short-upload-box"
249
  )
250
  gr.Examples(
251
  examples=examples,
 
198
  padding-left: 8px !important;
199
  padding-right: 8px !important;
200
  }
201
+ .gradio-container .gr-button-primary {
202
  background: linear-gradient(180deg, #CDF9BE 0%, #AFF497 100%);
203
  border: 1px solid #B0DCCC;
204
  border-radius: 8px;
 
210
  border-radius: 8px;
211
  color: #1B8700
212
  }
213
+
214
+ table.gr-samples-table tr td {
215
+ border: none;
216
+ outline: none;
217
+ }
218
+
219
+ table.gr-samples-table tr td:first-of-type {
220
+ width: 0%;
221
+ }
222
+
223
+ div#short-upload-box div.absolute {
224
+ display: none !important;
225
+ }
226
+
227
+ gradio-app > div > div > div > div.w-full > div, .gradio-app > div > div > div > div.w-full > div {
228
+ gap: 0px 2%;
229
+ }
230
+
231
+ gradio-app div div div div.w-full, .gradio-app div div div div.w-full {
232
+ gap: 0px;
233
+ }
234
+
235
+ gradio-app h2, .gradio-app h2 {
236
+ padding-top: 10px;
237
+ }
238
  """
239
 
240
  with gr.Blocks(css=CSS) as demo:
 
270
  submit = gr.Button("Get")
271
  gr.Markdown("— or —")
272
  upload = gr.File(
273
+ label=None, interactive=True, elem_id="short-upload-box"
274
  )
275
  gr.Examples(
276
  examples=examples,