Spaces:
Paused

GSMEthesis commited on
Commit
6c09fb1
·
verified ·
1 Parent(s): 6f4e7db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -39
app.py CHANGED
@@ -752,48 +752,32 @@ def enhanced_likert_scale(question_data):
752
  # استایل‌دهی
753
  st.markdown(f"""
754
  <style>
755
- .likert-container {{
756
- direction: rtl;
757
- margin-bottom: 25px;
758
  }}
759
- .likert-question {{
760
- font-family: 'B Nazanin';
761
- font-size: 18px;
762
- font-weight: bold;
763
- text-align: center;
764
- margin-bottom: 15px;
765
- color: #333;
 
 
 
 
 
766
  }}
767
- .likert-labels {{
768
- display: flex;
769
- justify-content: space-between;
770
- margin-bottom: 8px;
771
- font-family: 'B Nazanin';
772
- font-size: 14px;
773
- color: #555;
774
  }}
775
- .likert-btn-container {{
776
- display: flex;
777
- justify-content: center;
778
- gap: 8px;
779
- margin-bottom: 15px;
780
- }}
781
- .likert-btn {{
782
- width: 40px;
783
- height: 40px;
784
- border-radius: 50%;
785
- border: 2px solid #6a0dad;
786
- background: { "#6a0dad" if st.session_state[key] is not None else "white" };
787
- color: { "white" if st.session_state[key] is not None else "#6a0dad" };
788
- font-weight: bold;
789
- display: flex;
790
- align-items: center;
791
- justify-content: center;
792
- cursor: pointer;
793
- transition: all 0.3s;
794
- }}
795
- .likert-btn:hover {{
796
- transform: scale(1.1);
797
  }}
798
  </style>
799
  <div class="likert-container">
 
752
  # استایل‌دهی
753
  st.markdown(f"""
754
  <style>
755
+ div[data-testid="column"] > div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] {{
756
+ gap: 0.5rem !important;
 
757
  }}
758
+ button[data-testid="baseButton-secondary"] {{
759
+ width: 40px !important;
760
+ height: 40px !important;
761
+ border-radius: 50% !important;
762
+ border: 2px solid #6a0dad !important;
763
+ background: white !important;
764
+ color: #6a0dad !important;
765
+ font-family: 'B Nazanin' !important;
766
+ font-weight: bold !important;
767
+ padding: 0 !important;
768
+ min-width: auto !important;
769
+ margin: 0 auto !important;
770
  }}
771
+ button[data-testid="baseButton-secondary"]:hover {{
772
+ transform: scale(1.1) !important;
773
+ background: #f0e6ff !important;
 
 
 
 
774
  }}
775
+ div[data-testid="stMarkdown"] > p {{
776
+ text-align: center !important;
777
+ font-family: 'B Nazanin' !important;
778
+ font-size: 18px !important;
779
+ font-weight: bold !important;
780
+ margin-bottom: 15px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
781
  }}
782
  </style>
783
  <div class="likert-container">