Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -752,48 +752,32 @@ def enhanced_likert_scale(question_data):
|
|
| 752 |
# استایلدهی
|
| 753 |
st.markdown(f"""
|
| 754 |
<style>
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
margin-bottom: 25px;
|
| 758 |
}}
|
| 759 |
-
|
| 760 |
-
|
| 761 |
-
|
| 762 |
-
|
| 763 |
-
|
| 764 |
-
|
| 765 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 766 |
}}
|
| 767 |
-
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
margin-bottom: 8px;
|
| 771 |
-
font-family: 'B Nazanin';
|
| 772 |
-
font-size: 14px;
|
| 773 |
-
color: #555;
|
| 774 |
}}
|
| 775 |
-
|
| 776 |
-
|
| 777 |
-
|
| 778 |
-
|
| 779 |
-
|
| 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">
|