navbar: theme icons + CTA order to match Next exactly
- theme.js: icon SVGs now carry width/height 18 (sun / moon / monitor) so the
icon renders inside the 40px button and switches with the mode
- .mu-topbar-tools { order: 2 } — the CTA now sits right after the credits link
and the theme/lang tools move to the far right, same visual order as
web-at-transit (CTA 1144-1273 vs tools 1291-1405 at 1600px)
- icon sizing scoped (#theme-icon svg) so the language chevron stays 12px;
lang button back to 59px, tools 107px == Next
- VERSION 2026.09.27.123
This commit is contained in:
1 parent
eabcff197c
commit
1adc2a6cd0
5 files changed
+32
-29
No files matched your search
+4
-1
@@ -416,6 +416,7 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
|
||||
align-items: center;
|
||||
gap: 8px; /* WCAG 2.5.8 — เว้นระหว่างเป้ากด ≥ 8px */
|
||||
flex-shrink: 0;
|
||||
order: 2; /* ปุ่มเครื่องมืออยู่หลัง CTA (CTA ติด "เครดิต" เหมือน next) */
|
||||
}
|
||||
|
||||
.mu-pop { position: relative; display: inline-flex; }
|
||||
@@ -450,7 +451,9 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
|
||||
border-color: var(--c-brand-ink);
|
||||
background: var(--c-surface-2);
|
||||
}
|
||||
.mu-pop-btn .ic { width: 18px; height: 18px; }
|
||||
.mu-pop-btn .ic,
|
||||
#theme-icon svg { width: 18px; height: 18px; flex: none; }
|
||||
.mu-pop-btn-lang svg { flex: none; }
|
||||
|
||||
/* เมนูที่กางออก */
|
||||
.mu-pop-panel {
|
||||
|
||||
+23
-23
@@ -19,16 +19,16 @@
|
||||
</script>
|
||||
<title>หน้าแรก | Atroute (mockup)</title>
|
||||
<!-- ฟอนต์หลัก K2D: ไฟล์ในโปรเจกต์ (ui/vendor/fonts/) — ทำงานออฟไลน์ได้ -->
|
||||
<link href="./vendor/fonts/k2d.css?v=2026.09.27.120" rel="stylesheet">
|
||||
<link href="./vendor/fonts/k2d.css?v=2026.09.27.123" rel="stylesheet">
|
||||
<!-- ตัวสำรอง (โหลดจาก CDN เมื่อออนไลน์เท่านั้น · ออฟไลน์ถอยไปใช้ system-ui) -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link href="../../frontend-web-transit/web-transit/css/main-theme.css" rel="stylesheet">
|
||||
<link href="./theme.css?v=2026.09.27.120" rel="stylesheet">
|
||||
<link href="./_shared.css?v=2026.09.27.120" rel="stylesheet">
|
||||
<link href="./vendor/leaflet/leaflet.css?v=2026.09.27.120" rel="stylesheet">
|
||||
<link href="./map.css?v=2026.09.27.120" rel="stylesheet">
|
||||
<meta name="app-version" content="2026.09.27.120">
|
||||
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.120">
|
||||
<link href="./theme.css?v=2026.09.27.123" rel="stylesheet">
|
||||
<link href="./_shared.css?v=2026.09.27.123" rel="stylesheet">
|
||||
<link href="./vendor/leaflet/leaflet.css?v=2026.09.27.123" rel="stylesheet">
|
||||
<link href="./map.css?v=2026.09.27.123" rel="stylesheet">
|
||||
<meta name="app-version" content="2026.09.27.123">
|
||||
<link rel="icon" type="image/png" href="../.image/icons/minibus-512x512.png?v=2026.09.27.123">
|
||||
<style>
|
||||
.mu-card.empty { width: 100%; padding: 16px; text-align: center; color: var(--c-ink-2); background: #fff7fb; border: 1px dashed #f4c7df; }
|
||||
a.mu-card { text-decoration: none; color: inherit; display: block; }
|
||||
@@ -320,20 +320,20 @@
|
||||
</script>
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default">
|
||||
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.120">
|
||||
<script src="./imageurl.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./pwa.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./i18n.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./theme.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./analytics.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./popular.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./vendor/leaflet/leaflet.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./map.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./partials/schedules.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./partials/otherStop.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./motion.js?v=2026.09.27.120" defer></script>
|
||||
<script src="./router.js?v=2026.09.27.120" defer></script>
|
||||
<link rel="stylesheet" href="./responsive.css?v=2026.09.27.120">
|
||||
<link rel="apple-touch-icon" href="../.image/icons/minibus-192x192.png?v=2026.09.27.123">
|
||||
<script src="./imageurl.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./pwa.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./i18n.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./theme.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./analytics.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./popular.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./vendor/leaflet/leaflet.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./map.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./partials/schedules.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./partials/otherStop.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./motion.js?v=2026.09.27.123" defer></script>
|
||||
<script src="./router.js?v=2026.09.27.123" defer></script>
|
||||
<link rel="stylesheet" href="./responsive.css?v=2026.09.27.123">
|
||||
</head>
|
||||
<body class="main-theme-page">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" style="display:none" aria-hidden="true">
|
||||
@@ -427,7 +427,7 @@
|
||||
<header class="mu-topbar">
|
||||
<div class="mu-container mu-topbar-inner">
|
||||
<a class="mu-brand" href="#/" aria-label="Atroute — หน้าแรก" data-i18n-attr="aria-label:aria.brandHome">
|
||||
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.120" alt="Atroute logo" width="44" height="44" decoding="async">
|
||||
<img class="mu-logo-img" src="../.image/icons/minibus-512x512.png?v=2026.09.27.123" alt="Atroute logo" width="44" height="44" decoding="async">
|
||||
<span>
|
||||
<span class="mu-brand-title">Atroute</span>
|
||||
<span class="mu-brand-subtitle" data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
|
||||
@@ -503,7 +503,7 @@
|
||||
<div class="mu-footer-grid">
|
||||
<div class="mu-footer-brand">
|
||||
<div class="mu-footer-brand-row">
|
||||
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.120" alt="Atroute">
|
||||
<img src="../.image/icons/minibus-512x512.png?v=2026.09.27.123" alt="Atroute">
|
||||
<div>
|
||||
<strong>Atroute</strong>
|
||||
<span data-i18n="brand.subtitle">สถานีขนส่งผู้โดยสารจังหวัดอ่างทอง</span>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
|
||||
============================================================ */
|
||||
|
||||
const VERSION = "2026.09.27.120"; // ← bump ทุกครั้งที่แก้ SW เอง
|
||||
const VERSION = "2026.09.27.123"; // ← bump ทุกครั้งที่แก้ SW เอง
|
||||
const CACHE = `at-transit-${VERSION}`;
|
||||
|
||||
const PRECACHE = [
|
||||
|
||||
+3
-3
@@ -36,9 +36,9 @@
|
||||
|
||||
/* ไอคอน 3 แบบ (inline — sprite ของ mock ไม่มีชุดนี้) */
|
||||
var ICON = {
|
||||
light: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M6.3 17.7l-1.4 1.4M19.1 4.9l-1.4 1.4"/></svg>',
|
||||
dark: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',
|
||||
auto: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="14" rx="2"/><path d="M8 21h8M12 18v3"/></svg>'
|
||||
light: '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M6.3 17.7l-1.4 1.4M19.1 4.9l-1.4 1.4"/></svg>',
|
||||
dark: '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>',
|
||||
auto: '<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="4" width="20" height="14" rx="2"/><path d="M8 21h8M12 18v3"/></svg>'
|
||||
};
|
||||
|
||||
var currentMode = readMode();
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version": "2026.09.27.120"}
|
||||
{"version": "2026.09.27.123"}
|
||||
Reference in new issue
Block a user