feat: pwa and responsive
This commit is contained in:
1 parent
71dacc0da2
commit
6b612e2758
7 files changed
+269
-18
No files matched your search
@@ -491,3 +491,28 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
|
||||
outline: 2px solid #7a4cc0;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* ---------- ปุ่มติดตั้งแอป (PWA — inject จาก pwa.js) ---------- */
|
||||
.mu-install-btn {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 100;
|
||||
display: none; /* โผล่เมื่อ beforeinstallprompt เท่านั้น */
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 48px;
|
||||
padding: 12px 20px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
font-family: inherit;
|
||||
font-size: .95rem;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, #a855f7, #7c3aed);
|
||||
box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
|
||||
transition: transform .15s ease;
|
||||
}
|
||||
.mu-install-btn:active { transform: translateY(1px); }
|
||||
.mu-install-btn svg { width: 20px; height: 20px; }
|
||||
Reference in new issue
Block a user