Alex Amari Claude Opus 4.6 commited on
Commit
84c0d45
·
1 Parent(s): 5e0ad68

Increase all content font sizes ~33% for accessibility

Browse files

Base 18→24px, headings, labels, inputs, buttons, badges, banner,
and prompt pills all scaled proportionally. Header and footer
unchanged.

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

Files changed (1) hide show
  1. app.py +28 -28
app.py CHANGED
@@ -648,7 +648,7 @@ custom_css = """
648
  padding: 0 32px !important;
649
  background: #FFFFFF !important;
650
  color: #212529 !important;
651
- font-size: 18px !important;
652
  line-height: 1.7 !important;
653
  min-width: 320px !important;
654
  box-sizing: border-box !important;
@@ -769,10 +769,10 @@ custom_css = """
769
  /* Active step gets a subtle card treatment */
770
  .step-group {
771
  background: #FFFFFF !important;
772
- padding: 24px !important;
773
  border-radius: 4px !important;
774
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
775
- margin-bottom: 12px !important;
776
  border: none !important;
777
  }
778
 
@@ -817,7 +817,7 @@ h1 {
817
  h2 {
818
  color: #003478 !important;
819
  font-weight: 400 !important;
820
- font-size: 1.5rem !important;
821
  border: none !important;
822
  padding: 0 !important;
823
  margin: 0 0 0.75rem 0 !important;
@@ -825,10 +825,10 @@ h2 {
825
  h3 {
826
  color: #333333 !important;
827
  font-weight: 500 !important;
828
- font-size: 20px !important;
829
  margin: 0 0 0.5rem 0 !important;
830
  }
831
- p, span, li { color: #212529; font-size: 18px; }
832
 
833
  /* ---------- LINKS ---------- */
834
  a { color: #0046AD !important; text-decoration: none; }
@@ -838,8 +838,8 @@ a:hover { text-decoration: underline; color: #003478 !important; }
838
  label {
839
  color: #212529 !important;
840
  font-weight: 500 !important;
841
- font-size: 16px !important;
842
- margin-bottom: 6px !important;
843
  }
844
 
845
  /* ---------- FORM INPUTS ---------- */
@@ -847,8 +847,8 @@ input[type="text"], input[type="number"], textarea, select,
847
  .gr-box, .gr-input, .gr-dropdown {
848
  border: 1px solid #CED4DA !important;
849
  border-radius: 4px !important;
850
- padding: 12px 14px !important;
851
- font-size: 18px !important;
852
  color: #212529 !important;
853
  background: #FFFFFF !important;
854
  }
@@ -865,8 +865,8 @@ input:focus, textarea:focus, select:focus {
865
  border: none !important;
866
  border-radius: 4px !important;
867
  font-weight: 500 !important;
868
- font-size: 17px !important;
869
- padding: 14px 28px !important;
870
  transition: background 0.15s ease !important;
871
  min-height: 0 !important;
872
  }
@@ -881,8 +881,8 @@ input:focus, textarea:focus, select:focus {
881
  border: 1px solid #0046AD !important;
882
  border-radius: 4px !important;
883
  font-weight: 500 !important;
884
- font-size: 17px !important;
885
- padding: 14px 28px !important;
886
  transition: all 0.15s ease !important;
887
  min-height: 0 !important;
888
  }
@@ -892,8 +892,8 @@ input:focus, textarea:focus, select:focus {
892
 
893
  /* ---------- SMALL / BACK BUTTONS ---------- */
894
  button.sm {
895
- font-size: 15px !important;
896
- padding: 8px 16px !important;
897
  color: #495057 !important;
898
  background: transparent !important;
899
  border: 1px solid #CED4DA !important;
@@ -908,9 +908,9 @@ button.sm:hover { background: #F5F5F5 !important; color: #212529 !important; }
908
  color: #333333 !important;
909
  border: 1px solid #CED4DA !important;
910
  border-radius: 20px !important;
911
- font-size: 15px !important;
912
  font-weight: 400 !important;
913
- padding: 10px 18px !important;
914
  transition: background 0.15s ease !important;
915
  min-height: 0 !important;
916
  }
@@ -924,7 +924,7 @@ blockquote {
924
  border-left: 4px solid #FFC107 !important;
925
  padding: 14px 18px !important;
926
  border-radius: 4px !important;
927
- font-size: 16px !important;
928
  color: #495057 !important;
929
  margin: 0 0 16px 0 !important;
930
  }
@@ -934,19 +934,19 @@ blockquote {
934
  display: inline-block;
935
  background: #D4EDDA;
936
  color: #155724;
937
- padding: 6px 16px;
938
  border-radius: 12px;
939
  font-weight: 600;
940
- font-size: 16px;
941
  }
942
  .badge-not-eligible {
943
  display: inline-block;
944
  background: #FFF3CD;
945
  color: #856404;
946
- padding: 6px 16px;
947
  border-radius: 12px;
948
  font-weight: 600;
949
- font-size: 16px;
950
  }
951
 
952
  /* Streaming reflow prevention */
@@ -993,10 +993,10 @@ hr {
993
  .resources-banner {
994
  background: #F0F4FA;
995
  border-left: 5px solid #0046AD;
996
- padding: 28px 32px;
997
- margin: 0 0 20px 0;
998
  border-radius: 4px;
999
- font-size: 22px;
1000
  line-height: 1.75;
1001
  color: #212529;
1002
  }
@@ -1012,8 +1012,8 @@ hr {
1012
  .oha-header h1 { font-size: 24px !important; }
1013
  .oha-separator { margin-left: -12px; margin-right: -12px; }
1014
  .oha-footer { padding: 12px; margin-left: -12px; margin-right: -12px; }
1015
- .step-group { padding: 16px !important; }
1016
- .prompt-pill button { font-size: 14px !important; padding: 8px 14px !important; }
1017
  }
1018
  """
1019
 
 
648
  padding: 0 32px !important;
649
  background: #FFFFFF !important;
650
  color: #212529 !important;
651
+ font-size: 24px !important;
652
  line-height: 1.7 !important;
653
  min-width: 320px !important;
654
  box-sizing: border-box !important;
 
769
  /* Active step gets a subtle card treatment */
770
  .step-group {
771
  background: #FFFFFF !important;
772
+ padding: 32px !important;
773
  border-radius: 4px !important;
774
  box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
775
+ margin-bottom: 16px !important;
776
  border: none !important;
777
  }
778
 
 
817
  h2 {
818
  color: #003478 !important;
819
  font-weight: 400 !important;
820
+ font-size: 2rem !important;
821
  border: none !important;
822
  padding: 0 !important;
823
  margin: 0 0 0.75rem 0 !important;
 
825
  h3 {
826
  color: #333333 !important;
827
  font-weight: 500 !important;
828
+ font-size: 27px !important;
829
  margin: 0 0 0.5rem 0 !important;
830
  }
831
+ p, span, li { color: #212529; font-size: 24px; }
832
 
833
  /* ---------- LINKS ---------- */
834
  a { color: #0046AD !important; text-decoration: none; }
 
838
  label {
839
  color: #212529 !important;
840
  font-weight: 500 !important;
841
+ font-size: 21px !important;
842
+ margin-bottom: 8px !important;
843
  }
844
 
845
  /* ---------- FORM INPUTS ---------- */
 
847
  .gr-box, .gr-input, .gr-dropdown {
848
  border: 1px solid #CED4DA !important;
849
  border-radius: 4px !important;
850
+ padding: 14px 16px !important;
851
+ font-size: 24px !important;
852
  color: #212529 !important;
853
  background: #FFFFFF !important;
854
  }
 
865
  border: none !important;
866
  border-radius: 4px !important;
867
  font-weight: 500 !important;
868
+ font-size: 23px !important;
869
+ padding: 16px 32px !important;
870
  transition: background 0.15s ease !important;
871
  min-height: 0 !important;
872
  }
 
881
  border: 1px solid #0046AD !important;
882
  border-radius: 4px !important;
883
  font-weight: 500 !important;
884
+ font-size: 23px !important;
885
+ padding: 16px 32px !important;
886
  transition: all 0.15s ease !important;
887
  min-height: 0 !important;
888
  }
 
892
 
893
  /* ---------- SMALL / BACK BUTTONS ---------- */
894
  button.sm {
895
+ font-size: 20px !important;
896
+ padding: 10px 20px !important;
897
  color: #495057 !important;
898
  background: transparent !important;
899
  border: 1px solid #CED4DA !important;
 
908
  color: #333333 !important;
909
  border: 1px solid #CED4DA !important;
910
  border-radius: 20px !important;
911
+ font-size: 20px !important;
912
  font-weight: 400 !important;
913
+ padding: 12px 22px !important;
914
  transition: background 0.15s ease !important;
915
  min-height: 0 !important;
916
  }
 
924
  border-left: 4px solid #FFC107 !important;
925
  padding: 14px 18px !important;
926
  border-radius: 4px !important;
927
+ font-size: 21px !important;
928
  color: #495057 !important;
929
  margin: 0 0 16px 0 !important;
930
  }
 
934
  display: inline-block;
935
  background: #D4EDDA;
936
  color: #155724;
937
+ padding: 8px 18px;
938
  border-radius: 12px;
939
  font-weight: 600;
940
+ font-size: 21px;
941
  }
942
  .badge-not-eligible {
943
  display: inline-block;
944
  background: #FFF3CD;
945
  color: #856404;
946
+ padding: 8px 18px;
947
  border-radius: 12px;
948
  font-weight: 600;
949
+ font-size: 21px;
950
  }
951
 
952
  /* Streaming reflow prevention */
 
993
  .resources-banner {
994
  background: #F0F4FA;
995
  border-left: 5px solid #0046AD;
996
+ padding: 32px 36px;
997
+ margin: 0 0 24px 0;
998
  border-radius: 4px;
999
+ font-size: 29px;
1000
  line-height: 1.75;
1001
  color: #212529;
1002
  }
 
1012
  .oha-header h1 { font-size: 24px !important; }
1013
  .oha-separator { margin-left: -12px; margin-right: -12px; }
1014
  .oha-footer { padding: 12px; margin-left: -12px; margin-right: -12px; }
1015
+ .step-group { padding: 20px !important; }
1016
+ .prompt-pill button { font-size: 18px !important; padding: 10px 16px !important; }
1017
  }
1018
  """
1019