Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -774,7 +774,7 @@ body, .stApp {
|
|
| 774 |
|
| 775 |
# ========== توابع اصلی ==========
|
| 776 |
def enhanced_likert_scale(question_data):
|
| 777 |
-
"""لیکرت اسکیل با st.radio و استایل ساده"""
|
| 778 |
question = question_data["question"]
|
| 779 |
key = question_data["key"]
|
| 780 |
scale = question_data["scale"]
|
|
@@ -843,12 +843,11 @@ def enhanced_likert_scale(question_data):
|
|
| 843 |
max-width: 475px;
|
| 844 |
margin: 0 auto;
|
| 845 |
padding: 0;
|
| 846 |
-
background:
|
| 847 |
-
height:
|
| 848 |
-
align-items: center;
|
| 849 |
}
|
| 850 |
[data-testid="stRadio"] input[type="radio"] {
|
| 851 |
-
display: none;
|
| 852 |
}
|
| 853 |
[data-testid="stRadio"] label {
|
| 854 |
width: 18px !important;
|
|
@@ -858,8 +857,9 @@ def enhanced_likert_scale(question_data):
|
|
| 858 |
border: 2px solid #6a0dad !important;
|
| 859 |
margin: 0 !important;
|
| 860 |
position: relative;
|
| 861 |
-
top:
|
| 862 |
cursor: pointer;
|
|
|
|
| 863 |
}
|
| 864 |
[data-testid="stRadio"] input[type="radio"]:checked + label {
|
| 865 |
background: #6a0dad !important;
|
|
|
|
| 774 |
|
| 775 |
# ========== توابع اصلی ==========
|
| 776 |
def enhanced_likert_scale(question_data):
|
| 777 |
+
"""لیکرت اسکیل با st.radio و استایل ساده بدون کادر بنفش"""
|
| 778 |
question = question_data["question"]
|
| 779 |
key = question_data["key"]
|
| 780 |
scale = question_data["scale"]
|
|
|
|
| 843 |
max-width: 475px;
|
| 844 |
margin: 0 auto;
|
| 845 |
padding: 0;
|
| 846 |
+
background: none; /* حذف کادر بنفش */
|
| 847 |
+
height: 0; /* حذف ارتفاع خط */
|
|
|
|
| 848 |
}
|
| 849 |
[data-testid="stRadio"] input[type="radio"] {
|
| 850 |
+
display: none !important; /* مخفی کردن دایره سفید */
|
| 851 |
}
|
| 852 |
[data-testid="stRadio"] label {
|
| 853 |
width: 18px !important;
|
|
|
|
| 857 |
border: 2px solid #6a0dad !important;
|
| 858 |
margin: 0 !important;
|
| 859 |
position: relative;
|
| 860 |
+
top: 0; /* تنظیم موقعیت برای وسط بودن */
|
| 861 |
cursor: pointer;
|
| 862 |
+
transition: background-color 0.1s;
|
| 863 |
}
|
| 864 |
[data-testid="stRadio"] input[type="radio"]:checked + label {
|
| 865 |
background: #6a0dad !important;
|