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
+23
-23
@@ -7,11 +7,11 @@
|
||||
.mu-page { padding: 20px 0 48px; }
|
||||
|
||||
/* --- header --- */
|
||||
.mu-breadcrumb { color: #6f7b95; font-size: .88rem; margin: 0 0 12px; }
|
||||
.mu-breadcrumb a { color: #7a4cc0; text-decoration: none; font-weight: 600; }
|
||||
.mu-breadcrumb { color: var(--c-ink-2); font-size: .88rem; margin: 0 0 12px; }
|
||||
.mu-breadcrumb a { color: var(--c-brand-ink); text-decoration: none; font-weight: 600; }
|
||||
.mu-page-title {
|
||||
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
|
||||
margin: 0 0 16px; font-size: 1.6rem; color: #1f2a44; font-weight: 800; line-height: 1.25;
|
||||
margin: 0 0 16px; font-size: 1.6rem; color: var(--c-ink); font-weight: 800; line-height: 1.25;
|
||||
}
|
||||
.mu-route-chip {
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
@@ -28,20 +28,20 @@
|
||||
.mu-route-chip.grp-municipal { background: linear-gradient(135deg, #5b6560, #8b948f); box-shadow: 0 6px 14px rgba(107, 114, 104, .25); }
|
||||
.mu-toolbar {
|
||||
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
|
||||
background: #fff; border: 1px solid #e7e2f6; border-radius: 14px;
|
||||
background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px;
|
||||
padding: 12px; margin-bottom: 22px;
|
||||
box-shadow: 0 8px 20px rgba(63, 43, 94, .06);
|
||||
}
|
||||
.mu-toolbar select {
|
||||
flex: 1; min-width: 180px; min-height: 46px;
|
||||
border: 1px solid #dfe6f1; background: linear-gradient(180deg, #fff, #f8fbff);
|
||||
border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: .95rem; color: #1f2a44;
|
||||
border: 1px solid #dfe6f1; background: linear-gradient(180deg, var(--c-surface), #f8fbff);
|
||||
border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: .95rem; color: var(--c-ink);
|
||||
}
|
||||
|
||||
/* --- รถประจำสาย + ติดต่อ (การ์ดเดียว ขึ้นก่อน) --- */
|
||||
.mu-vehicle-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e7e2f6;
|
||||
background: var(--c-surface);
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
|
||||
@@ -61,11 +61,11 @@
|
||||
display: flex; flex-direction: column; justify-content: center; gap: 8px;
|
||||
}
|
||||
.mu-vehicle-card .meta .label {
|
||||
margin: 0; font-size: .78rem; font-weight: 700; color: #7a4cc0;
|
||||
margin: 0; font-size: .78rem; font-weight: 700; color: var(--c-brand-ink);
|
||||
text-transform: uppercase; letter-spacing: .05em;
|
||||
}
|
||||
.mu-vehicle-card .meta h2 { margin: 0; font-size: 1.25rem; color: #1f2a44; }
|
||||
.mu-vehicle-card .meta p { margin: 0; color: #6f7b95; font-size: .95rem; line-height: 1.6; }
|
||||
.mu-vehicle-card .meta h2 { margin: 0; font-size: 1.25rem; color: var(--c-ink); }
|
||||
.mu-vehicle-card .meta p { margin: 0; color: var(--c-ink-2); font-size: .95rem; line-height: 1.6; }
|
||||
|
||||
/* ติดต่อผู้ประกอบการ — อยู่ใน footer ของการ์ด */
|
||||
.mu-vehicle-contact {
|
||||
@@ -80,7 +80,7 @@
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 12px 14px;
|
||||
border-radius: 12px;
|
||||
background: #fff; border: 1px solid #eee;
|
||||
background: var(--c-surface); border: 1px solid #eee;
|
||||
text-decoration: none; color: inherit;
|
||||
transition: transform .15s ease, box-shadow .15s ease;
|
||||
}
|
||||
@@ -94,15 +94,15 @@
|
||||
.mu-contact-item .ic-wrap.tone-green { background: linear-gradient(135deg, #1f8765, #51c39c); }
|
||||
.mu-contact-item .ic-wrap.tone-sky { background: linear-gradient(135deg, #1877f2, #4a9bf8); }
|
||||
.mu-contact-item .ic-wrap.tone-purple { background: linear-gradient(135deg, #7a4cc0, #a583e0); }
|
||||
.mu-contact-item .mu-link-go { flex: 0 0 auto; display: flex; align-items: center; color: #7a4cc0; opacity: .8; }
|
||||
.mu-contact-item .mu-link-go { flex: 0 0 auto; display: flex; align-items: center; color: var(--c-brand-ink); opacity: .8; }
|
||||
.mu-contact-item:hover .mu-link-go { opacity: 1; transform: translateX(2px); }
|
||||
.mu-contact-item .ic-wrap svg { width: 22px; height: 22px; }
|
||||
.mu-contact-item .txt { flex: 1; min-width: 0; }
|
||||
.mu-contact-item .txt strong { display: block; color: #1f2a44; font-size: .98rem; margin-bottom: 2px; }
|
||||
.mu-contact-item .txt span { display: block; color: #6f7b95; font-size: .86rem; }
|
||||
.mu-contact-item .txt strong { display: block; color: var(--c-ink); font-size: .98rem; margin-bottom: 2px; }
|
||||
.mu-contact-item .txt span { display: block; color: var(--c-ink-2); font-size: .86rem; }
|
||||
.mu-qr-img {
|
||||
width: 72px; height: 72px; flex: none; display: block;
|
||||
object-fit: contain; background: #fff;
|
||||
object-fit: contain; background: var(--c-surface);
|
||||
border-radius: 10px; padding: 4px; border: 1px solid #eee;
|
||||
}
|
||||
/* ปุ่มครอบ QR — กดเพื่อขยาย (ไม่ให้หน้าตาเปลี่ยน) */
|
||||
@@ -116,15 +116,15 @@
|
||||
.mu-qr-modal::backdrop { background: rgba(20, 28, 48, .55); }
|
||||
.mu-qr-modal-card {
|
||||
position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
|
||||
padding: 22px 22px 18px; border-radius: 14px; background: #fff; border: 1px solid #e7e2f6;
|
||||
padding: 22px 22px 18px; border-radius: 14px; background: var(--c-surface); border: 1px solid var(--c-border);
|
||||
max-width: min(92vw, 360px);
|
||||
}
|
||||
.mu-qr-modal-card strong { color: #1f2a44; font-size: 1.02rem; text-align: center; }
|
||||
.mu-qr-big { width: min(72vw, 260px); height: auto; border-radius: 10px; background: #fff; }
|
||||
.mu-qr-modal-card strong { color: var(--c-ink); font-size: 1.02rem; text-align: center; }
|
||||
.mu-qr-big { width: min(72vw, 260px); height: auto; border-radius: 10px; background: var(--c-surface); }
|
||||
.mu-qr-close {
|
||||
position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border: 0; border-radius: 10px; background: #f4f1fb; color: #5b4a80; cursor: pointer;
|
||||
border: 0; border-radius: 10px; background: var(--c-tint-purple); color: #5b4a80; cursor: pointer;
|
||||
}
|
||||
.mu-qr-close:hover { background: #e9e2f8; }
|
||||
.mu-qr-close svg { width: 18px; height: 18px; }
|
||||
@@ -134,12 +134,12 @@
|
||||
.mu-qr-link { display: block; line-height: 0; border-radius: 10px; }
|
||||
.mu-qr-link:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 3px; }
|
||||
.mu-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
|
||||
.mu-copy-link.is-done { border-color: #1f8765; color: #1f8765; }
|
||||
.mu-copy-link.is-done { border-color: #1f8765; color: var(--c-ok); }
|
||||
|
||||
/* --- แผนที่ --- */
|
||||
.mu-map-card {
|
||||
background: #fff;
|
||||
border: 1px solid #e7e2f6;
|
||||
background: var(--c-surface);
|
||||
border: 1px solid var(--c-border);
|
||||
border-radius: 16px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
|
||||
|
||||
Reference in new issue
Block a user