Menixis Claude Opus 4.7 (1M context) commited on
Commit
2547eee
Β·
1 Parent(s): 7061b19

Restyle step badges: squircle shape, uniform purple

Browse files

Circle (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>

Files changed (1) hide show
  1. 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: -24px; left: -52px;
432
- width: 54px; height: 54px;
433
- border-radius: 50%;
434
  display: flex; align-items: center; justify-content: center;
435
- font-size: 1.6rem; font-weight: 800; color: #FFFFFF;
436
- border: 3px solid #211B3D; /* deep-indigo ring β†’ makes it pop off the card */
437
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.40);
438
  z-index: 5;
439
- background: linear-gradient(135deg, #7C5CFF 0%, #FF4D8D 100%);
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