BhargavMN Claude Opus 4.8 commited on
Commit
67a0cc9
·
1 Parent(s): 6156fe7

style(ui): remove the dark box around the hint clue input

Browse files

Render the hint input as a clean underline (transparent fill, no border
box) so it stops clashing with the card surface.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +2 -1
  2. app/ui/theme.py +25 -0
app.py CHANGED
@@ -1785,7 +1785,8 @@ with gr.Blocks(title="CityQuest · AI") as demo:
1785
 
1786
  with gr.Row(elem_classes=["hints-input-row"]):
1787
  d_ask_q = gr.Textbox(show_label=False, scale=1,
1788
- placeholder="Ask for a clue, or tell me where you're stuck…")
 
1789
  d_ask_btn = gr.Button(f"Get a hint −{HINT_PENALTY} pts", scale=0,
1790
  min_width=220,
1791
  elem_id="td-ask", elem_classes=["btn-hint"])
 
1785
 
1786
  with gr.Row(elem_classes=["hints-input-row"]):
1787
  d_ask_q = gr.Textbox(show_label=False, scale=1,
1788
+ placeholder="Ask for a clue, or tell me where you're stuck…",
1789
+ elem_classes=["hint-input"])
1790
  d_ask_btn = gr.Button(f"Get a hint −{HINT_PENALTY} pts", scale=0,
1791
  min_width=220,
1792
  elem_id="td-ask", elem_classes=["btn-hint"])
app/ui/theme.py CHANGED
@@ -786,6 +786,31 @@ ul.options[role="listbox"] li {
786
  align-items: center !important;
787
  gap: 8px !important;
788
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
789
  .hints-input-row input {
790
  height: 44px !important;
791
  }
 
786
  align-items: center !important;
787
  gap: 8px !important;
788
  }
789
+ /* Strip the dark filled box from the hint input — clean underline instead. */
790
+ .hint-input input,
791
+ .hint-input textarea {
792
+ background: transparent !important;
793
+ background-color: transparent !important;
794
+ border: none !important;
795
+ border-bottom: 1.5px solid rgba(255, 255, 255, 0.2) !important;
796
+ border-radius: 0 !important;
797
+ box-shadow: none !important;
798
+ padding-left: 4px !important;
799
+ color: rgba(255, 255, 255, 0.85) !important;
800
+ }
801
+ .hint-input input:focus,
802
+ .hint-input textarea:focus {
803
+ border-bottom: 1.5px solid #f5a623 !important;
804
+ outline: none !important;
805
+ box-shadow: none !important;
806
+ }
807
+ .hint-input .block,
808
+ .hint-input > div {
809
+ background: transparent !important;
810
+ border: none !important;
811
+ box-shadow: none !important;
812
+ padding: 0 !important;
813
+ }
814
  .hints-input-row input {
815
  height: 44px !important;
816
  }