klydekushy commited on
Commit
d0cfc78
·
verified ·
1 Parent(s): d5a050b

Update src/modules/kyc_form.py

Browse files
Files changed (1) hide show
  1. src/modules/kyc_form.py +6 -16
src/modules/kyc_form.py CHANGED
@@ -6,28 +6,18 @@ from datetime import date, timedelta
6
  def inject_pulsing_css():
7
  st.markdown("""
8
  <style>
9
- @keyframes pulse-red {
10
- 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7); }
11
- 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 82, 82, 0); }
12
- 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
 
13
  }
14
- .mandatory-dot {
15
- display: inline-block;
16
- width: 8px;
17
- height: 8px;
18
- background-color: #ff5252;
19
- border-radius: 50%;
20
- margin-left: 8px;
21
- animation: pulse-red 2s infinite;
22
- vertical-align: middle;
23
- }
24
- .field-label { font-weight: 600; color: #F5F8FA; margin-bottom: 5px; display: block; }
25
  </style>
26
  """, unsafe_allow_html=True)
27
 
28
  def lbl(text, mandatory=False):
29
  if mandatory:
30
- st.markdown(f'<span class="field-label">{text} <span class="mandatory-dot" title="Obligatoire"></span></span>', unsafe_allow_html=True)
31
  else:
32
  st.markdown(f'<span class="field-label">{text}</span>', unsafe_allow_html=True)
33
 
 
6
  def inject_pulsing_css():
7
  st.markdown("""
8
  <style>
9
+ .field-label {
10
+ font-weight: 600;
11
+ color: #F5F8FA;
12
+ margin-bottom: 5px;
13
+ display: block;
14
  }
 
 
 
 
 
 
 
 
 
 
 
15
  </style>
16
  """, unsafe_allow_html=True)
17
 
18
  def lbl(text, mandatory=False):
19
  if mandatory:
20
+ st.markdown(f'<span class="field-label">{text} *</span>', unsafe_allow_html=True)
21
  else:
22
  st.markdown(f'<span class="field-label">{text}</span>', unsafe_allow_html=True)
23