Spaces:
Sleeping
Sleeping
Maryam Ilka commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -242,22 +242,9 @@ st.markdown("""
|
|
| 242 |
border-radius: 8px !important;
|
| 243 |
padding: 10px 20px !important;
|
| 244 |
font-weight: bold !important;
|
| 245 |
-
transition: all 0.3s ease !important;
|
| 246 |
}
|
| 247 |
|
| 248 |
-
|
| 249 |
-
.stButton>button.green-btn:hover,
|
| 250 |
-
div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > button.green-btn:hover {
|
| 251 |
-
background-color: #218838 !important; /* رنگ سبز تیرهتر برای حالت hover */
|
| 252 |
-
transform: translateY(-1px);
|
| 253 |
-
box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
|
| 254 |
-
}
|
| 255 |
-
|
| 256 |
-
/* حالت فعال (فشرده شده) */
|
| 257 |
-
.stButton>button.green-btn:active,
|
| 258 |
-
div[data-testid="stVerticalBlock"] > div[data-testid="stHorizontalBlock"] > div > div > button.green-btn:active {
|
| 259 |
-
transform: translateY(0);
|
| 260 |
-
}
|
| 261 |
|
| 262 |
|
| 263 |
/* ========== استایل تضمینی برای گزینههای رادیویی ========== */
|
|
@@ -625,9 +612,7 @@ def attention_check1():
|
|
| 625 |
key="att1_radio"
|
| 626 |
)
|
| 627 |
|
| 628 |
-
if st.button("ادامه", key="continue_green", type="primary",
|
| 629 |
-
use_container_width=True,
|
| 630 |
-
kwargs={"class": "green-btn"}):
|
| 631 |
if answer:
|
| 632 |
st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
|
| 633 |
st.session_state.current_page = "random_likert_questions"
|
|
|
|
| 242 |
border-radius: 8px !important;
|
| 243 |
padding: 10px 20px !important;
|
| 244 |
font-weight: bold !important;
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 248 |
|
| 249 |
|
| 250 |
/* ========== استایل تضمینی برای گزینههای رادیویی ========== */
|
|
|
|
| 612 |
key="att1_radio"
|
| 613 |
)
|
| 614 |
|
| 615 |
+
if st.button("ادامه", key="continue_green", type="primary", kwargs={"class": "green-btn"}):
|
|
|
|
|
|
|
| 616 |
if answer:
|
| 617 |
st.session_state.attention_check1 = answer # ذخیره پاسخ در session_state
|
| 618 |
st.session_state.current_page = "random_likert_questions"
|