Spaces:
Paused

GSMEthesis commited on
Commit
7369604
·
verified ·
1 Parent(s): fa29613

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -20
app.py CHANGED
@@ -752,30 +752,37 @@ def enhanced_likert_scale(question_data):
752
  # استایل‌دهی پیشرفته
753
  st.markdown(f"""
754
  <style>
755
- .likert-btn-container {{
756
- display: flex;
757
- justify-content: center;
758
- gap: 8px;
759
- margin: 10px 0;
760
- flex-wrap: wrap;
761
  }}
762
- .likert-btn {{
763
- width: 32px;
764
- height: 32px;
765
- border-radius: 50%;
766
- border: 2px solid #6a0dad;
767
- display: flex;
768
- align-items: center;
769
- justify-content: center;
770
- cursor: pointer;
771
- margin: 0 2px;
772
  }}
773
- .likert-btn-unselected {{
774
- background: white;
 
 
 
 
 
 
 
 
 
 
775
  color: #6a0dad;
 
776
  }}
777
- .likert-btn-selected {{
778
- background: #6a0dad;
779
  color: white;
780
  }}
781
  </style>
 
752
  # استایل‌دهی پیشرفته
753
  st.markdown(f"""
754
  <style>
755
+ div[data-testid="column"] {{
756
+ padding: 0 5px !important;
 
 
 
 
757
  }}
758
+ button[data-testid="baseButton-{key}"] {{
759
+ width: 32px !important;
760
+ height: 32px !important;
761
+ border-radius: 50% !important;
762
+ padding: 0 !important;
763
+ min-width: 0 !important;
764
+ margin: 0 auto !important;
765
+ display: flex !important;
766
+ align-items: center !important;
767
+ justify-content: center !important;
768
  }}
769
+ button[data-testid="baseButton-{key}"][kind="secondary"] {{
770
+ border: 2px solid #6a0dad !important;
771
+ background: white !important;
772
+ color: transparent !important;
773
+ }}
774
+ button[data-testid="baseButton-{key}"][kind="primary"] {{
775
+ border: 2px solid #6a0dad !important;
776
+ background: #6a0dad !important;
777
+ color: transparent !important;
778
+ }}
779
+ button[data-testid="baseButton-{key}"]:before {{
780
+ content: "○";
781
  color: #6a0dad;
782
+ font-size: 18px;
783
  }}
784
+ button[data-testid="baseButton-{key}"][kind="primary"]:before {{
785
+ content: "•";
786
  color: white;
787
  }}
788
  </style>