web-ui: wave-1 foundation — services/web-ui/src/css/components/toast.css
This commit is contained in:
parent
e56704b69f
commit
a16c235f71
1 changed files with 54 additions and 0 deletions
54
services/web-ui/src/css/components/toast.css
Normal file
54
services/web-ui/src/css/components/toast.css
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
/* toast.css ─ bottom-right, top-strip variant.
|
||||
* 4px top strip = allowed (not a side-stripe). */
|
||||
|
||||
.wd-toast-container {
|
||||
position: fixed;
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
z-index: var(--z-toast);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
max-width: 320px;
|
||||
}
|
||||
|
||||
.wd-toast {
|
||||
position: relative;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
padding: 12px 14px 12px 14px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
box-shadow: 0 12px 32px -16px oklch(0% 0 0 / 0.7);
|
||||
}
|
||||
.wd-toast::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 4px;
|
||||
border-radius: 4px 4px 0 0;
|
||||
}
|
||||
|
||||
.wd-toast--success { border-color: var(--signal-good); }
|
||||
.wd-toast--success::before { background: var(--signal-good); }
|
||||
|
||||
.wd-toast--error { border-color: var(--signal-bad); }
|
||||
.wd-toast--error::before { background: var(--signal-bad); }
|
||||
|
||||
.wd-toast--warning { border-color: var(--signal-warn); }
|
||||
.wd-toast--warning::before { background: var(--signal-warn); }
|
||||
|
||||
.wd-toast--info { border-color: var(--accent); }
|
||||
.wd-toast--info::before { background: var(--accent); }
|
||||
|
||||
.wd-toast-title {
|
||||
font: 600 13px/1.3 var(--font);
|
||||
color: var(--text-primary);
|
||||
margin-top: 4px;
|
||||
}
|
||||
.wd-toast-body {
|
||||
font: 400 12px/1.5 var(--font);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
Loading…
Reference in a new issue