Spaces:
Sleeping
Sleeping
Restyle step badges: squircle shape, uniform purple
Browse filesCircle (54px, 50% radius, 3px ring) to squircle (44px, 14px radius,
2px ring, softer shadow). All three badges use the step-1 violet
gradient (#7C5CFF -> #A78BFA).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- streamlit_app.py +7 -7
streamlit_app.py
CHANGED
|
@@ -428,15 +428,15 @@ st.markdown("""
|
|
| 428 |
/* βββ STEP NUMBER BADGES (popup, straddling the card's top-left corner) ββ */
|
| 429 |
.step-badge {
|
| 430 |
position: absolute;
|
| 431 |
-
top: -
|
| 432 |
-
width:
|
| 433 |
-
border-radius:
|
| 434 |
display: flex; align-items: center; justify-content: center;
|
| 435 |
-
font-size: 1.
|
| 436 |
-
border:
|
| 437 |
-
box-shadow: 0
|
| 438 |
z-index: 5;
|
| 439 |
-
background: linear-gradient(135deg, #7C5CFF 0%, #
|
| 440 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 441 |
}
|
| 442 |
|
|
|
|
| 428 |
/* βββ STEP NUMBER BADGES (popup, straddling the card's top-left corner) ββ */
|
| 429 |
.step-badge {
|
| 430 |
position: absolute;
|
| 431 |
+
top: -18px; left: -44px;
|
| 432 |
+
width: 44px; height: 44px;
|
| 433 |
+
border-radius: 14px; /* squircle β softer, more modern than a full circle */
|
| 434 |
display: flex; align-items: center; justify-content: center;
|
| 435 |
+
font-size: 1.4rem; font-weight: 800; color: #FFFFFF;
|
| 436 |
+
border: 2px solid #211B3D; /* thinner ring β less 'sticker' look */
|
| 437 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
|
| 438 |
z-index: 5;
|
| 439 |
+
background: linear-gradient(135deg, #7C5CFF 0%, #A78BFA 100%);
|
| 440 |
animation: stepPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
| 441 |
}
|
| 442 |
|