Surn commited on
Commit
1ef2bdb
·
1 Parent(s): 8bd908f

Minor text update for hf

Browse files
Files changed (2) hide show
  1. battlewords/ui.py +5 -5
  2. battlewords/ui_helpers.py +3 -2
battlewords/ui.py CHANGED
@@ -777,25 +777,25 @@ def _render_guess_form(state: GameState):
777
  }
778
  /* Placeholder styling for guess textbox */
779
  .st-key-guess_input .stTextInput input::placeholder {
780
- font-size: 0.75em;
781
  font-style: italic;
782
  opacity: 0.9;
783
  color: #a1a1aa;
784
  }
785
  .st-key-guess_input .stTextInput input::-webkit-input-placeholder {
786
- font-size: 0.75em;
787
  font-style: italic;
788
  opacity: 0.9;
789
  color: #a1a1aa;
790
  }
791
  .st-key-guess_input .stTextInput input:-ms-input-placeholder {
792
- font-size: 0.75em;
793
  font-style: italic;
794
  opacity: 0.9;
795
  color: #a1a1aa;
796
  }
797
  .st-key-guess_input .stTextInput input::-ms-input-placeholder {
798
- font-size: 0.75em;
799
  font-style: italic;
800
  opacity: 0.9;
801
  color: #a1a1aa;
@@ -1002,7 +1002,7 @@ def _render_score_panel(state: GameState):
1002
  .bold-text {{ font-weight: 700; }}
1003
  .blue-background {{ background:#1d64c8dd; opacity:0.9; color:#fff; }}
1004
  .shiny-border {{ position: relative; padding: 10px; background: #333; color: white; border-radius: 1.25rem; overflow: hidden; }}
1005
- .bw-score-panel-container {{ height: 100%; overflow: hidden; text-align:center; font-size: 1.1em;}}
1006
  .bw-score-panel-container table tbody tr h3 {{display: flex;flex-direction: row;justify-content: space-evenly;flex-wrap: wrap;}}
1007
 
1008
  table {{ width: 100%; margin: 0 auto; border-collapse: separate; border-spacing: 0; }}
 
777
  }
778
  /* Placeholder styling for guess textbox */
779
  .st-key-guess_input .stTextInput input::placeholder {
780
+ font-size: 0.9em;
781
  font-style: italic;
782
  opacity: 0.9;
783
  color: #a1a1aa;
784
  }
785
  .st-key-guess_input .stTextInput input::-webkit-input-placeholder {
786
+ font-size: 0.9em;
787
  font-style: italic;
788
  opacity: 0.9;
789
  color: #a1a1aa;
790
  }
791
  .st-key-guess_input .stTextInput input:-ms-input-placeholder {
792
+ font-size: 0.9em;
793
  font-style: italic;
794
  opacity: 0.9;
795
  color: #a1a1aa;
796
  }
797
  .st-key-guess_input .stTextInput input::-ms-input-placeholder {
798
+ font-size: 0.9em;
799
  font-style: italic;
800
  opacity: 0.9;
801
  color: #a1a1aa;
 
1002
  .bold-text {{ font-weight: 700; }}
1003
  .blue-background {{ background:#1d64c8dd; opacity:0.9; color:#fff; }}
1004
  .shiny-border {{ position: relative; padding: 10px; background: #333; color: white; border-radius: 1.25rem; overflow: hidden; }}
1005
+ .bw-score-panel-container {{ height: 100%; overflow: hidden; text-align:center; font-size: 1.0em; font-family: "Source Sans", sans-serif;}}
1006
  .bw-score-panel-container table tbody tr h3 {{display: flex;flex-direction: row;justify-content: space-evenly;flex-wrap: wrap;}}
1007
 
1008
  table {{ width: 100%; margin: 0 auto; border-collapse: separate; border-spacing: 0; }}
battlewords/ui_helpers.py CHANGED
@@ -414,7 +414,7 @@ def inject_styles() -> None:
414
  line-height: 1.15 !important;
415
  }
416
  #subtitle {
417
- font-size: 18px !important; /* Subheader */
418
  margin-top: .1rem !important;
419
  }
420
  /* Base grid cell visuals */
@@ -464,7 +464,7 @@ def inject_styles() -> None:
464
  .st-key-new_game_btn, .st-key-sort_wordlist_btn, .st-key-filter_wordlist_btn, .st-key-settings_save_apply_btn, .st-key-settings_discard_btn { margin: 0 auto; aspect-ratio: unset; z-index:9999;}
465
  .st-key-new_game_btn > div[data-testid="stButton"] button, .st-key-sort_wordlist_btn > div[data-testid="stButton"] button, .st-key-filter_wordlist_btn > div[data-testid="stButton"] button, .st-key-settings_save_apply_btn > div[data-testid="stButton"] button, .st-key-settings_discard_btn > div[data-testid="stButton"] button { aspect-ratio: unset; text-align:center; height: auto; width: 160px; border-radius:8px;}
466
  .stVerticalBlock .st-emotion-cache-tn0cau.e1wguzas3 div.element-container:first-child { display: none; }
467
- .stVerticalBlock.st-emotion-cache-tn0cau.e1wguzas3 div.element-container:nth-child(2), .stVerticalBlock.st-emotion-cache-tn0cau.ek2vi383 div.element-container:nth-child(2) { display: none; }
468
  .stVerticalBlock.st-emotion-cache-tn0cau.e1wguzas3 div.element-container:nth-child(3), .stVerticalBlock.st-emotion-cache-tn0cau.ek2vi383 div.element-container:nth-child(3) { display: none; }
469
  .st-emotion-cache-18kf3ut.e1wguzas41 { display: none; }
470
 
@@ -516,6 +516,7 @@ def inject_styles() -> None:
516
  .shiny-border::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s; }
517
  .shiny-border:hover::before { left: 100%; }
518
 
 
519
  .bw-radio-group { display:flex; align-items:flex-start; gap: 5px; flex-flow: row; min-height: 92px;}
520
  .bw-radio-item { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;}
521
  .bw-radio-circle { width: 45px; height: 45px; border-radius: 50%; border: 4px solid; background: rgba(255,255,255,0.06); display: grid; place-items: center; color:#fff; font-weight:700; }
 
414
  line-height: 1.15 !important;
415
  }
416
  #subtitle {
417
+ font-size: 21px !important; /* Subheader */
418
  margin-top: .1rem !important;
419
  }
420
  /* Base grid cell visuals */
 
464
  .st-key-new_game_btn, .st-key-sort_wordlist_btn, .st-key-filter_wordlist_btn, .st-key-settings_save_apply_btn, .st-key-settings_discard_btn { margin: 0 auto; aspect-ratio: unset; z-index:9999;}
465
  .st-key-new_game_btn > div[data-testid="stButton"] button, .st-key-sort_wordlist_btn > div[data-testid="stButton"] button, .st-key-filter_wordlist_btn > div[data-testid="stButton"] button, .st-key-settings_save_apply_btn > div[data-testid="stButton"] button, .st-key-settings_discard_btn > div[data-testid="stButton"] button { aspect-ratio: unset; text-align:center; height: auto; width: 160px; border-radius:8px;}
466
  .stVerticalBlock .st-emotion-cache-tn0cau.e1wguzas3 div.element-container:first-child { display: none; }
467
+ .stVerticalBlock.st-emotion-cache-tn0cau.e1wguzas3 div.element-container:nth-child(2), .stVerticalBlock.st-emotion-cache-tn0cau.ek2vi383OFF div.element-container:nth-child(2) { display: none; }
468
  .stVerticalBlock.st-emotion-cache-tn0cau.e1wguzas3 div.element-container:nth-child(3), .stVerticalBlock.st-emotion-cache-tn0cau.ek2vi383 div.element-container:nth-child(3) { display: none; }
469
  .st-emotion-cache-18kf3ut.e1wguzas41 { display: none; }
470
 
 
516
  .shiny-border::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s; }
517
  .shiny-border:hover::before { left: 100%; }
518
 
519
+ .st-emotion-cache-1n1mx2j p {font-size: 1rem;}
520
  .bw-radio-group { display:flex; align-items:flex-start; gap: 5px; flex-flow: row; min-height: 92px;}
521
  .bw-radio-item { display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center;}
522
  .bw-radio-circle { width: 45px; height: 45px; border-radius: 50%; border: 4px solid; background: rgba(255,255,255,0.06); display: grid; place-items: center; color:#fff; font-weight:700; }