From a16c235f711bbc11ff2d22b2942354e807230298 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Thu, 21 May 2026 12:30:39 -0400 Subject: [PATCH] =?UTF-8?q?web-ui:=20wave-1=20foundation=20=E2=80=94=20ser?= =?UTF-8?q?vices/web-ui/src/css/components/toast.css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/web-ui/src/css/components/toast.css | 54 ++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 services/web-ui/src/css/components/toast.css diff --git a/services/web-ui/src/css/components/toast.css b/services/web-ui/src/css/components/toast.css new file mode 100644 index 0000000..3b6e332 --- /dev/null +++ b/services/web-ui/src/css/components/toast.css @@ -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); +}