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.
120 lines
4.3 KiB
CSS
120 lines
4.3 KiB
CSS
/* Ported from checkSchedule.html <style> block */
|
|
/* ============================================================
|
|
checkSchedule (#/check) — redesign ให้ใช้ภาษาดีไซน์เดียวกับหน้าแรก
|
|
------------------------------------------------------------
|
|
hero / selector / summary / zone ใช้ class จาก index.html shell
|
|
(ประกาศใน <head> แล้ว) → ไม่ต้องนิยามใหม่
|
|
เฉพาะส่วนเฉพาะหน้า (lead + schedule cards) ค่อยเติมตรงนี้
|
|
============================================================ */
|
|
|
|
.mu-hero-lead {
|
|
margin: 14px auto 0;
|
|
max-width: 640px;
|
|
color: var(--c-brand-ink);
|
|
font-size: .95rem;
|
|
}
|
|
|
|
.mu-summary-grid { gap: 14px; }
|
|
|
|
/* --- ตารางเวลา: การ์ดสไตล์ index (gradient header + เนื้อขาว) --- */
|
|
.mu-schedule-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
.mu-stop-card {
|
|
background: var(--c-surface);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
|
|
transition: transform .15s ease, box-shadow .15s ease;
|
|
}
|
|
.mu-stop-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 24px rgba(20, 40, 90, .1);
|
|
}
|
|
.mu-stop-card summary { list-style: none; cursor: pointer; }
|
|
.mu-stop-card summary::-webkit-details-marker { display: none; }
|
|
|
|
/* header การ์ด = gradient block ตามโทนสีเดียวกับ index zone tints */
|
|
.mu-stop-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 14px 16px;
|
|
color: #fff;
|
|
}
|
|
.mu-stop-head.tone-purple { background: linear-gradient(135deg, var(--c-brand) 0%, #b07ce0 100%); }
|
|
.mu-stop-head.tone-sky { background: linear-gradient(135deg, #3071b8 0%, #6ea7e8 100%); }
|
|
.mu-stop-head.tone-mint { background: linear-gradient(135deg, #1f8765 0%, #51c39c 100%); }
|
|
.mu-stop-head.tone-pink { background: linear-gradient(135deg, #bb3a78 0%, #f08bb9 100%); }
|
|
|
|
.mu-stop-kind {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 5px 12px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--c-glass-24);
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
.mu-stop-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
|
|
.mu-stop-title strong { font-size: 1rem; font-weight: 800; }
|
|
.mu-stop-title small { font-size: .78rem; opacity: .85; }
|
|
.mu-stop-chevron { font-size: 1.2rem; opacity: .9; transition: transform .2s ease; }
|
|
.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: 0.95rem; }
|
|
.mu-direction-tag {
|
|
background: var(--c-brand);
|
|
color: #fff;
|
|
border-radius: var(--radius-pill);
|
|
padding: 3px 10px;
|
|
font-size: .72rem;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.mu-time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
.mu-time-chip {
|
|
padding: 6px 12px;
|
|
border-radius: var(--radius);
|
|
background: var(--c-tint-purple);
|
|
color: var(--c-ink);
|
|
font-weight: 700;
|
|
font-size: .85rem;
|
|
border: 1px solid #e6eaf3;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.mu-time-chip.next {
|
|
background: linear-gradient(135deg, #a855f7, #7c3aed);
|
|
color: #fff;
|
|
border-color: transparent;
|
|
box-shadow: 0 4px 10px rgba(124, 58, 237, .25);
|
|
}
|
|
|
|
.mu-schedule-note {
|
|
color: var(--c-danger);
|
|
font-size: 0.85rem;
|
|
margin: 12px 0 0;
|
|
padding: 8px 12px;
|
|
background: var(--c-tint-pink);
|
|
border-left: 3px solid #bb3a78;
|
|
border-radius: var(--radius);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
.mu-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
|
|
|
|
.mu-schedule { padding: 4px 0 48px; }
|
|
|
|
@media (max-width: 768px) {
|
|
.mu-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
|
|
}
|