Menixis commited on
Commit
7ee0420
Β·
verified Β·
1 Parent(s): 7e3ebc3

Update streamlit_app.py

Browse files
Files changed (1) hide show
  1. streamlit_app.py +23 -12
streamlit_app.py CHANGED
@@ -468,7 +468,8 @@ st.markdown("""
468
 
469
  /* ─── INPUTS β€” bulletproof dark styling ──────────────────────── */
470
 
471
- /* All input wrappers β€” use SOLID dark color, target every nesting level */
 
472
  [data-testid="stTextInput"] > div > div,
473
  [data-testid="stTextInput"] > div > div > div,
474
  [data-testid="stTextInput"] [data-baseweb="input"],
@@ -479,11 +480,12 @@ st.markdown("""
479
  [data-baseweb="base-input"],
480
  [data-baseweb="input"] > div,
481
  [data-baseweb="base-input"] > div {
482
- background-color: #182B29 !important;
483
- background: #182B29 !important;
484
  border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
485
  border-radius: 12px !important;
486
  color: #ECFDF5 !important;
 
487
  }
488
 
489
  /* The actual <input> element β€” transparent so wrapper bg shows through */
@@ -500,37 +502,46 @@ st.markdown("""
500
  color: #ECFDF5 !important;
501
  -webkit-text-fill-color: #ECFDF5 !important;
502
  font-size: 0.95rem !important;
 
503
  border: none !important;
504
  caret-color: #10B981 !important;
 
505
  }
506
 
507
- /* Placeholder β€” bright enough to read on dark */
 
508
  [data-testid="stTextInput"] input::placeholder,
509
  [data-baseweb="input"] input::placeholder,
510
  .stTextInput input::placeholder,
511
  input::placeholder,
512
  textarea::placeholder {
513
- color: rgba(167, 243, 208, 0.6) !important;
 
 
514
  opacity: 1 !important;
 
515
  }
 
516
  /* Webkit autofill β€” prevent yellow bg */
517
  input:-webkit-autofill,
518
  input:-webkit-autofill:hover,
519
  input:-webkit-autofill:focus {
520
  -webkit-text-fill-color: #ECFDF5 !important;
521
- -webkit-box-shadow: 0 0 0 1000px #182B29 inset !important;
522
- box-shadow: 0 0 0 1000px #182B29 inset !important;
523
- background: #182B29 !important;
524
  }
525
 
526
- /* Focus state β€” emerald glow on wrapper */
527
  [data-testid="stTextInput"] > div > div:focus-within,
528
  [data-baseweb="input"]:focus-within,
529
  [data-baseweb="base-input"]:focus-within {
530
  border-color: #10B981 !important;
531
- box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18) !important;
532
- background-color: #1F3735 !important;
533
- background: #1F3735 !important;
 
 
534
  }
535
 
536
  /* Selectbox β€” same treatment, deep nesting */
 
468
 
469
  /* ─── INPUTS β€” bulletproof dark styling ──────────────────────── */
470
 
471
+ /* All input wrappers β€” use SOLID dark color slightly DARKER than card bg
472
+ so inputs look like "indented" surfaces, not flat boxes */
473
  [data-testid="stTextInput"] > div > div,
474
  [data-testid="stTextInput"] > div > div > div,
475
  [data-testid="stTextInput"] [data-baseweb="input"],
 
480
  [data-baseweb="base-input"],
481
  [data-baseweb="input"] > div,
482
  [data-baseweb="base-input"] > div {
483
+ background-color: #0B1716 !important; /* darker than card bg #182B29 */
484
+ background: #0B1716 !important;
485
  border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
486
  border-radius: 12px !important;
487
  color: #ECFDF5 !important;
488
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35) !important; /* inner shadow = "indented" feel */
489
  }
490
 
491
  /* The actual <input> element β€” transparent so wrapper bg shows through */
 
502
  color: #ECFDF5 !important;
503
  -webkit-text-fill-color: #ECFDF5 !important;
504
  font-size: 0.95rem !important;
505
+ font-weight: 500 !important; /* typed text β€” clearly bolder */
506
  border: none !important;
507
  caret-color: #10B981 !important;
508
+ font-style: normal !important;
509
  }
510
 
511
+ /* Placeholder β€” clearly look like a "hint", not real text:
512
+ dim muted-gray, italic, lighter weight */
513
  [data-testid="stTextInput"] input::placeholder,
514
  [data-baseweb="input"] input::placeholder,
515
  .stTextInput input::placeholder,
516
  input::placeholder,
517
  textarea::placeholder {
518
+ color: rgba(107, 138, 133, 0.65) !important; /* muted forest gray */
519
+ font-style: italic !important;
520
+ font-weight: 400 !important;
521
  opacity: 1 !important;
522
+ -webkit-text-fill-color: rgba(107, 138, 133, 0.65) !important;
523
  }
524
+
525
  /* Webkit autofill β€” prevent yellow bg */
526
  input:-webkit-autofill,
527
  input:-webkit-autofill:hover,
528
  input:-webkit-autofill:focus {
529
  -webkit-text-fill-color: #ECFDF5 !important;
530
+ -webkit-box-shadow: 0 0 0 1000px #0B1716 inset !important;
531
+ box-shadow: 0 0 0 1000px #0B1716 inset !important;
532
+ background: #0B1716 !important;
533
  }
534
 
535
+ /* Focus state β€” emerald glow on wrapper + subtle lift */
536
  [data-testid="stTextInput"] > div > div:focus-within,
537
  [data-baseweb="input"]:focus-within,
538
  [data-baseweb="base-input"]:focus-within {
539
  border-color: #10B981 !important;
540
+ box-shadow:
541
+ 0 0 0 4px rgba(16, 185, 129, 0.18),
542
+ inset 0 1px 3px rgba(0, 0, 0, 0.25) !important;
543
+ background-color: #142724 !important;
544
+ background: #142724 !important;
545
  }
546
 
547
  /* Selectbox β€” same treatment, deep nesting */