Anna-Lisa commited on
Commit
73da752
·
verified ·
1 Parent(s): 5064d6a

font again

Browse files
Files changed (1) hide show
  1. app.py +12 -10
app.py CHANGED
@@ -38,28 +38,29 @@ st.markdown(
38
  st.markdown(
39
  """
40
  <style>
41
- /* Fix overflow in Streamlit expanders */
42
- .streamlit-expanderContent {
43
  max-width: 700px;
44
  word-wrap: break-word;
45
  overflow-wrap: break-word;
46
  white-space: pre-wrap;
 
47
  }
48
 
49
- /* Increase font size of labels for inputs and selects */
50
- label[data-baseweb="label"] {
51
  font-size: 20px !important;
52
- font-weight: 600;
53
- color: #000000;
54
  }
55
 
56
- /* Optional: Font size inside selectbox inputs */
57
- div[role="combobox"] > div > div > div {
58
  font-size: 18px !important;
59
  }
60
 
61
- /* Optional: Font size of text input placeholder */
62
- input[type="text"]::placeholder {
63
  font-size: 18px !important;
64
  }
65
  </style>
@@ -68,6 +69,7 @@ st.markdown(
68
  )
69
 
70
 
 
71
  # Add vertical spacing between banner and help text
72
  st.markdown("<div style='margin-top: 40px;'></div>", unsafe_allow_html=True)
73
 
 
38
  st.markdown(
39
  """
40
  <style>
41
+ /* Fix content overflow in expanders and all custom containers */
42
+ .streamlit-expanderContent, .source-block {
43
  max-width: 700px;
44
  word-wrap: break-word;
45
  overflow-wrap: break-word;
46
  white-space: pre-wrap;
47
+ font-size: 16px;
48
  }
49
 
50
+ /* Force label size on text input and selectboxes */
51
+ label[data-testid="stWidgetLabel"] {
52
  font-size: 20px !important;
53
+ font-weight: 600 !important;
54
+ color: #000000 !important;
55
  }
56
 
57
+ /* Optional: Adjust placeholder font size */
58
+ input[type="text"]::placeholder {
59
  font-size: 18px !important;
60
  }
61
 
62
+ /* Optional: Adjust the selected option inside the dropdown */
63
+ div[role="combobox"] * {
64
  font-size: 18px !important;
65
  }
66
  </style>
 
69
  )
70
 
71
 
72
+
73
  # Add vertical spacing between banner and help text
74
  st.markdown("<div style='margin-top: 40px;'></div>", unsafe_allow_html=True)
75