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:
1 parent
66d7e235c3
commit
bf42076b52
14 files changed
+352
-246
No files matched your search
@@ -1,21 +1,4 @@
|
||||
/* Ported from home.html <style> block */
|
||||
/* ปุ่มแชร์ลิงก์สั้น — มุมล่างขวา ต่อจากการ์ดหมวดเส้นทาง */
|
||||
.mu-share-row { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 22px 0 44px; }
|
||||
.mu-share-btn {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 10px 16px; border: 1px solid #7a4cc0; border-radius: 8px;
|
||||
background: var(--c-brand); color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
|
||||
}
|
||||
.mu-share-btn:hover { background: #6a3cae; }
|
||||
.mu-share-btn:focus-visible { outline: 2px solid #2b2f42; outline-offset: 2px; }
|
||||
.mu-share-btn .ic { width: 18px; height: 18px; }
|
||||
.mu-share-status { margin: 0; font-size: .82rem; line-height: 1.7; color: var(--c-ink-2); text-align: right; }
|
||||
.mu-share-status:empty { display: none; }
|
||||
.mu-share-url { display: inline-block; padding: 2px 6px; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-tint-purple); font-size: .8rem; }
|
||||
.mu-share-line { display: inline-block; margin-left: 6px; font-weight: 700; color: var(--c-ok); text-decoration: none; }
|
||||
.mu-share-line:hover { text-decoration: underline; }
|
||||
@media (max-width: 560px) {
|
||||
.mu-share-row { align-items: stretch; }
|
||||
.mu-share-btn { justify-content: center; }
|
||||
.mu-share-status { text-align: left; }
|
||||
}
|
||||
Reference in new issue
Block a user