cheikhaidev-ui Claude Sonnet 4.6 commited on
Commit
fdf6f1e
Β·
1 Parent(s): 7bd426e

style(app): corrige contraste tableau Examples en dark mode

Browse files

Cible .table-wrap (vraie classe Gradio) au lieu de .examples inexistante.
Force fond #13131f et texte #e2e8f0 sur td, fond #1e1e2e sur th.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +40 -2
app.py CHANGED
@@ -279,8 +279,46 @@ CSS = """
279
  height: 6px; border-radius: 4px;
280
  }
281
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
  /* ── Container & spacing ──────────────────────────────────────────── */
283
- .gradio-container { max-width: 1300px !important; padding: 1.5rem 2rem !important; }
284
 
285
  .ls-results-col { gap: 0.85rem !important; }
286
  """
@@ -291,7 +329,7 @@ _HEADER_MD = """<div class="ls-logo">πŸ”­</div>
291
 
292
  <p class="ls-subtitle">Analyse de sentiment et de discours β€” FR & EN</p>"""
293
 
294
- with gr.Blocks(title="LinguaScope", js=_DARK_JS, css=CSS) as demo:
295
 
296
  gr.Markdown(_HEADER_MD, elem_id="ls-header")
297
 
 
279
  height: 6px; border-radius: 4px;
280
  }
281
 
282
+ /* ── Examples table ───────────────────────────────────────────────── */
283
+ .table-wrap {
284
+ background-color: #0f0f1a !important;
285
+ border: 1px solid #2d2d44 !important;
286
+ border-radius: 8px !important;
287
+ overflow: hidden !important;
288
+ }
289
+
290
+ .table-wrap table {
291
+ background-color: #0f0f1a !important;
292
+ }
293
+
294
+ .table-wrap th {
295
+ background-color: #1e1e2e !important;
296
+ color: #a5b4fc !important;
297
+ border-bottom: 1px solid #2d2d44 !important;
298
+ padding: 0.5rem 0.75rem !important;
299
+ font-weight: 600 !important;
300
+ }
301
+
302
+ .table-wrap td {
303
+ background-color: #13131f !important;
304
+ color: #e2e8f0 !important;
305
+ border-color: #1e1e2e !important;
306
+ padding: 0.45rem 0.75rem !important;
307
+ }
308
+
309
+ .table-wrap td span,
310
+ .table-wrap td .table {
311
+ color: #e2e8f0 !important;
312
+ background: transparent !important;
313
+ }
314
+
315
+ .table-wrap tbody tr:hover td {
316
+ background-color: #1e1e2e !important;
317
+ cursor: pointer !important;
318
+ }
319
+
320
  /* ── Container & spacing ──────────────────────────────────────────── */
321
+ .gradio-container { max-width: 1100px !important; margin: 0 auto !important; padding: 1.5rem 2rem !important; }
322
 
323
  .ls-results-col { gap: 0.85rem !important; }
324
  """
 
329
 
330
  <p class="ls-subtitle">Analyse de sentiment et de discours β€” FR & EN</p>"""
331
 
332
+ with gr.Blocks(title="LinguaScope", js=_DARK_JS, css=CSS, fill_width=False) as demo:
333
 
334
  gr.Markdown(_HEADER_MD, elem_id="ls-header")
335