Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -752,36 +752,48 @@ def enhanced_likert_scale(question_data):
|
|
| 752 |
# استایلدهی پیشرفته
|
| 753 |
st.markdown(f"""
|
| 754 |
<style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 755 |
div[data-testid="column"] {{
|
| 756 |
-
|
|
|
|
|
|
|
| 757 |
}}
|
| 758 |
button[data-testid="baseButton-{key}"] {{
|
|
|
|
| 759 |
width: 32px !important;
|
| 760 |
height: 32px !important;
|
| 761 |
border-radius: 50% !important;
|
| 762 |
-
|
| 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}"]
|
|
|
|
|
|
|
|
|
|
| 780 |
content: "○";
|
| 781 |
color: #6a0dad;
|
| 782 |
font-size: 18px;
|
| 783 |
}}
|
| 784 |
-
button[data-testid="baseButton-{key}"][kind="primary"]:
|
| 785 |
content: "•";
|
| 786 |
color: white;
|
| 787 |
}}
|
|
|
|
| 752 |
# استایلدهی پیشرفته
|
| 753 |
st.markdown(f"""
|
| 754 |
<style>
|
| 755 |
+
/* بازنشانی کامل استایلهای دکمه */
|
| 756 |
+
div[data-testid="stHorizontalBlock"] {{
|
| 757 |
+
all: unset !important;
|
| 758 |
+
display: flex !important;
|
| 759 |
+
justify-content: center !important;
|
| 760 |
+
gap: 8px !important;
|
| 761 |
+
flex-wrap: wrap !important;
|
| 762 |
+
margin: 10px 0 !important;
|
| 763 |
+
}}
|
| 764 |
div[data-testid="column"] {{
|
| 765 |
+
all: unset !important;
|
| 766 |
+
flex: 1 !important;
|
| 767 |
+
min-width: 0 !important;
|
| 768 |
}}
|
| 769 |
button[data-testid="baseButton-{key}"] {{
|
| 770 |
+
all: unset !important;
|
| 771 |
width: 32px !important;
|
| 772 |
height: 32px !important;
|
| 773 |
border-radius: 50% !important;
|
| 774 |
+
border: 2px solid #6a0dad !important;
|
|
|
|
|
|
|
| 775 |
display: flex !important;
|
| 776 |
align-items: center !important;
|
| 777 |
justify-content: center !important;
|
| 778 |
+
margin: 0 !important;
|
| 779 |
+
padding: 0 !important;
|
| 780 |
+
cursor: pointer !important;
|
| 781 |
}}
|
| 782 |
button[data-testid="baseButton-{key}"][kind="secondary"] {{
|
|
|
|
| 783 |
background: white !important;
|
|
|
|
| 784 |
}}
|
| 785 |
button[data-testid="baseButton-{key}"][kind="primary"] {{
|
|
|
|
| 786 |
background: #6a0dad !important;
|
|
|
|
| 787 |
}}
|
| 788 |
+
button[data-testid="baseButton-{key}"] > div > p {{
|
| 789 |
+
display: none !important;
|
| 790 |
+
}}
|
| 791 |
+
button[data-testid="baseButton-{key}"]:after {{
|
| 792 |
content: "○";
|
| 793 |
color: #6a0dad;
|
| 794 |
font-size: 18px;
|
| 795 |
}}
|
| 796 |
+
button[data-testid="baseButton-{key}"][kind="primary"]:after {{
|
| 797 |
content: "•";
|
| 798 |
color: white;
|
| 799 |
}}
|