feat: polish alpine shell feedback

This commit is contained in:
a.tolmachev
2026-03-31 12:32:05 +03:00
parent 84f4437ce0
commit 4d91ccf48f
16 changed files with 366 additions and 30 deletions
+80
View File
@@ -125,6 +125,77 @@
.btn-icon.danger:hover { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
/* ══════════════════════════════════════════════════
TOASTS
══════════════════════════════════════════════════ */
.toast-stack {
position: fixed;
top: 84px;
right: 20px;
z-index: 1200;
width: min(360px, calc(100vw - 32px));
display: flex;
flex-direction: column;
gap: 10px;
pointer-events: none;
}
.toast-card {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
border-radius: 14px;
border: 1px solid var(--border);
background: rgba(15, 23, 34, 0.96);
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
pointer-events: auto;
transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast-card.closing {
opacity: 0;
transform: translateY(-6px);
}
.toast-info { border-color: rgba(56, 189, 248, 0.28); }
.toast-success { border-color: rgba(63, 185, 80, 0.32); }
.toast-error { border-color: rgba(248, 81, 73, 0.34); }
.toast-copy {
min-width: 0;
flex: 1;
}
.toast-title {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.02em;
color: var(--text-primary);
margin-bottom: 3px;
}
.toast-message {
font-size: 12.5px;
line-height: 1.5;
color: var(--text-secondary);
}
.toast-close {
width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: pointer;
flex-shrink: 0;
}
.toast-close:hover { color: var(--text-primary); }
/* ══════════════════════════════════════════════════
SECTION CARD
══════════════════════════════════════════════════ */
@@ -1456,3 +1527,12 @@
flex-shrink: 0;
opacity: 0.7;
}
@media (max-width: 900px) {
.toast-stack {
top: 72px;
right: 16px;
left: 16px;
width: auto;
}
}