Add install banner
This commit is contained in:
@@ -189,3 +189,67 @@ tr:last-child td { border-bottom: none; }
|
||||
|
||||
/* ── Error text ────────────────────────────────────────────────────────────── */
|
||||
.error-msg { color: var(--red); font-size: .85rem; margin-top: .5rem; }
|
||||
|
||||
/* ── PWA install banner ────────────────────────────────────────────────────── */
|
||||
.install-banner {
|
||||
position: fixed;
|
||||
bottom: 1rem;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: calc(100% - 2rem);
|
||||
max-width: 480px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: .9rem 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: .75rem;
|
||||
z-index: 9000;
|
||||
animation: banner-in .3s ease;
|
||||
}
|
||||
.install-banner.hidden { display: none !important; }
|
||||
.install-banner-body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: .75rem;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.install-banner-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
object-fit: contain;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.install-banner-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: .1rem;
|
||||
min-width: 0;
|
||||
}
|
||||
.install-banner-text strong {
|
||||
font-size: .9rem;
|
||||
font-weight: 700;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.install-banner-text span {
|
||||
font-size: .78rem;
|
||||
color: var(--text-muted);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.install-banner-actions {
|
||||
display: flex;
|
||||
gap: .5rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@keyframes banner-in {
|
||||
from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
|
||||
to { opacity: 1; transform: translateX(-50%) translateY(0); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user