Align share button and all component scales with DESIGN.md

Share button was themed only in pages/home.css, so /stops, /routes and
/check rendered an unstyled button. Moved to _shared.css and rebuilt as a
ghost variant of .mu-btn:
- radius 12px -> var(--radius) 8px, min-height 44px (48px on touch)
- focus ring #2b2f42 (near-black) -> var(--c-focus)
- LINE link green -> brand purple (DESIGN.md is single-accent)
- hover/active/transition states added

Global scale cleanup (DESIGN.md allows 4px/8px radii only):
- 16 distinct border-radius values -> var(--radius-sm) / var(--radius) / var(--radius-pill)
- 39 distinct font-sizes -> 13-step scale
- outline-offset 1px/2px/3px -> 2px everywhere
- radius and type scale documented in DESIGN.md as enforced tokens

Verified across 4 pages x 2 themes: identical 44x158 button, radius 8px,
contrast 5.80 light / 7.37 dark, no horizontal overflow.
This commit is contained in:
Bkk1234 committed 2026-10-23 23:32:37 +07:00
1 parent 66d7e235c3
commit bf42076b52
14 files changed
+352 -246

No files matched your search

+8 -8
View File
@@ -27,7 +27,7 @@
}
.mu-stop-card {
background: var(--c-surface);
border-radius: 16px;
border-radius: var(--radius);
overflow: hidden;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
transition: transform .15s ease, box-shadow .15s ease;
@@ -57,9 +57,9 @@
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 999px;
border-radius: var(--radius-pill);
background: var(--c-glass-24);
font-size: .74rem;
font-size: 0.72rem;
font-weight: 700;
white-space: nowrap;
}
@@ -70,11 +70,11 @@
.mu-stop-card[open] > summary .mu-stop-chevron { transform: rotate(180deg); }
.mu-stop-body { padding: 16px; }
.mu-stop-sub { font-weight: 700; color: var(--c-ink); margin: 0 0 10px; font-size: .9rem; }
.mu-stop-sub { font-weight: 700; color: var(--c-ink); margin: 0 0 10px; font-size: 0.95rem; }
.mu-direction-tag {
background: var(--c-brand);
color: #fff;
border-radius: 999px;
border-radius: var(--radius-pill);
padding: 3px 10px;
font-size: .72rem;
margin-left: 8px;
@@ -83,7 +83,7 @@
.mu-time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-time-chip {
padding: 6px 12px;
border-radius: 10px;
border-radius: var(--radius);
background: var(--c-tint-purple);
color: var(--c-ink);
font-weight: 700;
@@ -100,12 +100,12 @@
.mu-schedule-note {
color: var(--c-danger);
font-size: .82rem;
font-size: 0.85rem;
margin: 12px 0 0;
padding: 8px 12px;
background: var(--c-tint-pink);
border-left: 3px solid #bb3a78;
border-radius: 8px;
border-radius: var(--radius);
display: flex;
align-items: center;
gap: 6px;