devon7y commited on
Commit
f2cea6c
·
verified ·
1 Parent(s): b04771d

UI: pin sidebar styles against prose overrides

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -443,6 +443,18 @@ footer, .built-with, .show-api, .api-docs { display: none !important; }
443
  #cl-chat .user-row { max-width: 80% !important; }
444
  #cl-chat .user-row .flex-wrap, #cl-chat .user-row .flex-wrap > .message, #cl-chat .user-row .message .message { max-width: none !important; width: auto !important; }
445
  @media (max-width: 900px) { #cl-chat .user-row { max-width: 90% !important; } }
 
 
 
 
 
 
 
 
 
 
 
 
446
  """
447
 
448
  THEME = gr.themes.Base(primary_hue="orange", neutral_hue="stone", font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui"]).set(
 
443
  #cl-chat .user-row { max-width: 80% !important; }
444
  #cl-chat .user-row .flex-wrap, #cl-chat .user-row .flex-wrap > .message, #cl-chat .user-row .message .message { max-width: none !important; width: auto !important; }
445
  @media (max-width: 900px) { #cl-chat .user-row { max-width: 90% !important; } }
446
+
447
+ /* Gradio's .prose styles win inside gr.HTML on the hosted Space; pin the sidebar/topbar details */
448
+ #cl-side ul.cl-recents { list-style: none !important; padding: 0 !important; margin: 0 !important; }
449
+ #cl-side ul.cl-recents li { margin: 0 !important; padding: 7px 10px !important; list-style: none !important; }
450
+ #cl-side ul.cl-recents li::before, #cl-side ul.cl-recents li::marker { content: none !important; }
451
+ #cl-side .cl-avatar { color: #f5f4ee !important; background: #3d3b36 !important; }
452
+ #cl-side .cl-user { border-top: 1px solid var(--cl-line) !important; }
453
+ #cl-side .cl-nav-item, #cl-side .cl-recents li, #cl-side .cl-user-name, #cl-side .cl-recents-h { color: var(--cl-ink-2) !important; }
454
+ #cl-side .cl-recents-h, #cl-side .cl-user-plan { color: var(--cl-muted) !important; }
455
+ #cl-topbar .cl-plan b { color: var(--cl-accent-2) !important; }
456
+ #cl-topbar .cl-plan, #cl-topbar .cl-plan-note { color: var(--cl-muted) !important; }
457
+ .cl-picker summary { gap: 7px !important; }
458
  """
459
 
460
  THEME = gr.themes.Base(primary_hue="orange", neutral_hue="stone", font=[gr.themes.GoogleFont("Inter"), "ui-sans-serif", "system-ui"]).set(