theme: dark mode + theme tokens (parity with web-at-transit)
- ui/theme.css: token set copied value-for-value from the Next app (--c-surface/-ink/-border/-brand/-tint/-glass + radius), light and dark blocks - ui/theme.js: 3-mode switch (light / dark / auto=prefers-color-scheme) with a header dropdown, aria-haspopup/menu, Esc/outside close, live matchMedia listener - index.html: pre-paint theme script (no flash), theme.css link before _shared.css - remapped ~290 literal colours in _shared.css/index.html/partials to var(--c-*) so both projects render from the same tokens; dark patch block covers the remaining decorative gradients - DESIGN.md: new section 3.2 (theme tokens + where to add colours) - VERSION 2026.09.27.114
This commit is contained in:
1 parent
bea8f0773e
commit
cdfd77ffff
18 files changed
+742
-329
No files matched your search
+6
-6
@@ -70,7 +70,7 @@ main.mu-container { padding-top: 24px; padding-bottom: 24px; }
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
width: 44px; height: 44px;
|
||||
border: none; background: transparent; cursor: pointer;
|
||||
color: #1f2a44; list-style: none;
|
||||
color: var(--c-ink); list-style: none;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.mu-menu-btn::-webkit-details-marker { display: none; }
|
||||
@@ -78,7 +78,7 @@ main.mu-container { padding-top: 24px; padding-bottom: 24px; }
|
||||
.mu-menu-panel {
|
||||
position: absolute; top: calc(100% + 8px); right: 0;
|
||||
min-width: 220px;
|
||||
background: #fff; border: 1px solid #e7e2f6; border-radius: 14px;
|
||||
background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px;
|
||||
box-shadow: 0 12px 28px rgba(20, 40, 90, .16);
|
||||
padding: 8px;
|
||||
z-index: 60;
|
||||
@@ -88,7 +88,7 @@ main.mu-container { padding-top: 24px; padding-bottom: 24px; }
|
||||
display: flex; align-items: center;
|
||||
min-height: 48px; padding: 10px 14px;
|
||||
border-radius: 10px;
|
||||
color: #1f2a44; text-decoration: none;
|
||||
color: var(--c-ink); text-decoration: none;
|
||||
font-size: 1.05rem; font-weight: 600;
|
||||
}
|
||||
.mu-menu-panel a:hover, .mu-menu-panel a:active { background: #f5efff; }
|
||||
@@ -125,8 +125,8 @@ main.mu-container { padding-top: 14px; padding-bottom: 14px; }
|
||||
#view .mu-zone-seg { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
|
||||
#view .mu-zone-seg:not(:last-child)::after { content: "\00b7"; color: #c4bcd8; margin-left: 8px; } /* คั่นท้ายชิ้น → ตัดบรรทัดแล้วจุดไม่ไปอยู่ต้นบรรทัด */
|
||||
#view .mu-zone-seg .ic { align-self: center; flex: none; }
|
||||
#view .mu-zone-now b { color: #1f2a44; font-variant-numeric: tabular-nums; }
|
||||
#view .mu-zone-at { color: #8a93a8; } /* ชื่อสถานีในวงเล็บ — จางกว่ารอบรถ */
|
||||
#view .mu-zone-now b { color: var(--c-ink); font-variant-numeric: tabular-nums; }
|
||||
#view .mu-zone-at { color: var(--c-ink-3); } /* ชื่อสถานีในวงเล็บ — จางกว่ารอบรถ */
|
||||
#view .mu-zone-updated { color: #8a7aa8; font-size: .95rem; }
|
||||
.mu-grid { gap: 12px; }
|
||||
.mu-route-info { padding: 16px 16px 18px; }
|
||||
@@ -275,7 +275,7 @@ main.mu-container { padding-top: 14px; padding-bottom: 14px; }
|
||||
/* เวลาที่ "คำนวณจากต้นทาง" (ไม่ใช่ตารางจริงของผู้ประกอบการ) — ทำเครื่องหมายให้ผู้ใช้รู้ ไม่ให้เข้าใจผิด */
|
||||
.mu-time-grid.is-est .mu-time-chip {
|
||||
border: 1px dashed #a892d4;
|
||||
background: #faf7ff;
|
||||
background: var(--c-surface-2);
|
||||
color: #6b5a8e;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user