738 lines
16 KiB
CSS
738 lines
16 KiB
CSS
/* =========================================================
|
||
* 操作审计 Console UI Demo · 样式
|
||
* 视觉基调取自 Halo Console(@halo-dev/components):
|
||
* primary #4ccba0 / secondary #0e1731 / danger #d71d1d
|
||
* ========================================================= */
|
||
|
||
:root {
|
||
--primary: #4ccba0;
|
||
--primary-dark: #2ea27f;
|
||
--primary-tint: rgba(76, 203, 160, 0.12);
|
||
--secondary: #0e1731;
|
||
--danger: #d71d1d;
|
||
--danger-tint: rgba(215, 29, 29, 0.08);
|
||
--warn: #b45309;
|
||
--warn-tint: rgba(217, 119, 6, 0.1);
|
||
--info: #2563eb;
|
||
--info-tint: rgba(37, 99, 235, 0.1);
|
||
--gray-50: #f9fafb;
|
||
--gray-100: #f3f4f6;
|
||
--gray-200: #e5e7eb;
|
||
--gray-300: #d1d5db;
|
||
--gray-400: #9ca3af;
|
||
--gray-500: #6b7280;
|
||
--gray-700: #374151;
|
||
--gray-900: #111827;
|
||
--radius: 8px;
|
||
--shadow: 0 1px 3px rgba(14, 23, 49, 0.06), 0 1px 2px rgba(14, 23, 49, 0.04);
|
||
--shadow-lg: 0 10px 30px rgba(14, 23, 49, 0.18);
|
||
}
|
||
|
||
* { box-sizing: border-box; }
|
||
|
||
html, body { height: 100%; }
|
||
|
||
body {
|
||
margin: 0;
|
||
display: flex;
|
||
min-width: 1080px;
|
||
font-size: 14px;
|
||
color: var(--gray-900);
|
||
background: var(--gray-100);
|
||
font-family: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||
}
|
||
|
||
/* ============ 左侧导航 ============ */
|
||
.sidebar {
|
||
width: 232px;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
background: #fff;
|
||
border-right: 1px solid var(--gray-200);
|
||
position: sticky;
|
||
top: 0;
|
||
height: 100vh;
|
||
}
|
||
|
||
.logo-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 14px 16px;
|
||
height: 56px;
|
||
border-bottom: 1px solid var(--gray-100);
|
||
}
|
||
|
||
.logo-mark { width: 26px; height: 26px; }
|
||
|
||
.logo-text {
|
||
font-size: 18px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.5px;
|
||
}
|
||
|
||
.demo-badge {
|
||
font-size: 10px;
|
||
font-weight: 600;
|
||
color: var(--primary-dark);
|
||
background: var(--primary-tint);
|
||
border-radius: 999px;
|
||
padding: 2px 8px;
|
||
margin-left: auto;
|
||
}
|
||
|
||
.nav-scroll { flex: 1; overflow-y: auto; padding: 8px; }
|
||
|
||
.nav-group {
|
||
font-size: 11px;
|
||
color: var(--gray-400);
|
||
padding: 14px 12px 4px;
|
||
font-weight: 600;
|
||
letter-spacing: 1px;
|
||
}
|
||
|
||
.nav-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
height: 38px;
|
||
padding: 0 12px;
|
||
margin: 1px 0;
|
||
border-radius: 6px;
|
||
color: var(--gray-700);
|
||
text-decoration: none;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
transition: background 0.15s, color 0.15s;
|
||
}
|
||
|
||
.nav-item svg {
|
||
width: 17px;
|
||
height: 17px;
|
||
fill: none;
|
||
stroke: currentColor;
|
||
stroke-width: 1.7;
|
||
stroke-linecap: round;
|
||
stroke-linejoin: round;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.nav-item:hover { background: var(--gray-100); }
|
||
|
||
.nav-item.active {
|
||
background: var(--primary-tint);
|
||
color: var(--primary-dark);
|
||
font-weight: 600;
|
||
}
|
||
|
||
.sidebar-footer {
|
||
border-top: 1px solid var(--gray-100);
|
||
padding: 10px 12px;
|
||
}
|
||
|
||
.user-chip { display: flex; align-items: center; gap: 10px; }
|
||
|
||
.user-meta { display: flex; flex-direction: column; line-height: 1.3; }
|
||
.user-meta b { font-size: 13px; }
|
||
.user-meta small { font-size: 11px; color: var(--gray-500); }
|
||
|
||
/* ============ 主内容区 ============ */
|
||
.main {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding: 24px 28px 40px;
|
||
}
|
||
|
||
.page-header {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 16px;
|
||
}
|
||
|
||
.page-header h1 {
|
||
margin: 0;
|
||
font-size: 20px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.page-sub {
|
||
margin: 4px 0 0;
|
||
color: var(--gray-500);
|
||
font-size: 13px;
|
||
}
|
||
|
||
.readonly-hint { color: var(--primary-dark); }
|
||
|
||
.tabs {
|
||
display: flex;
|
||
gap: 4px;
|
||
margin: 18px 0 14px;
|
||
border-bottom: 1px solid var(--gray-200);
|
||
}
|
||
|
||
.tab {
|
||
appearance: none;
|
||
border: none;
|
||
background: none;
|
||
padding: 8px 14px;
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
color: var(--gray-500);
|
||
cursor: pointer;
|
||
border-bottom: 2px solid transparent;
|
||
margin-bottom: -1px;
|
||
}
|
||
|
||
.tab:hover { color: var(--gray-900); }
|
||
|
||
.tab.active {
|
||
color: var(--primary-dark);
|
||
border-bottom-color: var(--primary);
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* ============ 卡片 / 通用 ============ */
|
||
.card {
|
||
background: #fff;
|
||
border: 1px solid var(--gray-200);
|
||
border-radius: var(--radius);
|
||
box-shadow: var(--shadow);
|
||
}
|
||
|
||
.card-title {
|
||
font-size: 15px;
|
||
font-weight: 600;
|
||
padding: 14px 18px 0;
|
||
}
|
||
|
||
.btn {
|
||
appearance: none;
|
||
border: none;
|
||
border-radius: 6px;
|
||
padding: 8px 16px;
|
||
font-size: 13px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
transition: filter 0.15s, background 0.15s;
|
||
}
|
||
|
||
.btn svg {
|
||
width: 13px;
|
||
height: 13px;
|
||
fill: currentColor;
|
||
}
|
||
|
||
.btn-primary { background: var(--primary); color: #fff; }
|
||
.btn-primary:hover { filter: brightness(0.94); }
|
||
|
||
.btn-outline {
|
||
background: #fff;
|
||
color: var(--gray-700);
|
||
border: 1px solid var(--gray-300);
|
||
}
|
||
.btn-outline:hover { border-color: var(--primary); color: var(--primary-dark); }
|
||
|
||
.btn-link {
|
||
appearance: none;
|
||
border: none;
|
||
background: none;
|
||
color: var(--primary-dark);
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
padding: 8px 4px;
|
||
align-self: flex-end;
|
||
}
|
||
|
||
.btn-link:hover { text-decoration: underline; }
|
||
|
||
.icon-btn {
|
||
appearance: none;
|
||
border: none;
|
||
background: none;
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 6px;
|
||
font-size: 16px;
|
||
color: var(--gray-500);
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
}
|
||
|
||
.icon-btn:hover { background: var(--gray-100); color: var(--gray-900); }
|
||
|
||
.input {
|
||
border: 1px solid var(--gray-300);
|
||
border-radius: 6px;
|
||
padding: 7px 10px;
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
outline: none;
|
||
transition: border-color 0.15s, box-shadow 0.15s;
|
||
background: #fff;
|
||
}
|
||
|
||
.input:focus,
|
||
select:focus {
|
||
border-color: var(--primary);
|
||
box-shadow: 0 0 0 2px var(--primary-tint);
|
||
}
|
||
|
||
select, .input { min-width: 0; }
|
||
|
||
select {
|
||
appearance: none;
|
||
border: 1px solid var(--gray-300);
|
||
border-radius: 6px;
|
||
padding: 7px 28px 7px 10px;
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
|
||
outline: none;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.hint { font-size: 12px; color: var(--gray-400); }
|
||
.muted { color: var(--gray-400); font-size: 12px; }
|
||
|
||
/* ============ 横幅 ============ */
|
||
.banner {
|
||
border-radius: var(--radius);
|
||
padding: 10px 14px;
|
||
font-size: 13px;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.banner-warn { background: var(--warn-tint); color: var(--warn); border: 1px solid rgba(217, 119, 6, 0.25); }
|
||
|
||
/* ============ 筛选栏 ============ */
|
||
.filter-bar {
|
||
display: flex;
|
||
align-items: flex-end;
|
||
gap: 12px;
|
||
padding: 12px 16px;
|
||
margin-bottom: 14px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.filter-item { display: flex; flex-direction: column; gap: 4px; }
|
||
.filter-item.grow { flex: 1; min-width: 180px; }
|
||
.filter-item label { font-size: 11px; color: var(--gray-500); font-weight: 600; }
|
||
.filter-item select, .filter-item .input { min-width: 120px; width: 100%; }
|
||
|
||
/* ============ 表格 ============ */
|
||
.table-card { overflow: hidden; }
|
||
|
||
.audit-table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
}
|
||
|
||
.audit-table th {
|
||
text-align: left;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--gray-500);
|
||
padding: 10px 16px;
|
||
background: var(--gray-50);
|
||
border-bottom: 1px solid var(--gray-200);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.audit-table td {
|
||
padding: 10px 16px;
|
||
border-bottom: 1px solid var(--gray-100);
|
||
font-size: 13px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
.audit-table tbody tr {
|
||
cursor: pointer;
|
||
transition: background 0.12s;
|
||
}
|
||
|
||
.audit-table tbody tr:hover { background: var(--gray-50); }
|
||
|
||
.audit-table tbody tr.selected td { background: var(--primary-tint); }
|
||
|
||
@keyframes rowFlash {
|
||
0% { background: var(--primary-tint); }
|
||
100% { background: transparent; }
|
||
}
|
||
|
||
tr.row-new td { animation: rowFlash 2.6s ease-out; }
|
||
|
||
.td-time { color: var(--gray-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||
.td-ip { color: var(--gray-500); font-variant-numeric: tabular-nums; }
|
||
|
||
.cell-user { display: flex; align-items: center; gap: 8px; }
|
||
|
||
/* 动作徽标 */
|
||
.method {
|
||
display: inline-block;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
font-family: ui-monospace, Consolas, monospace;
|
||
padding: 2px 8px;
|
||
border-radius: 5px;
|
||
letter-spacing: 0.4px;
|
||
}
|
||
.m-post { background: var(--info-tint); color: var(--info); }
|
||
.m-put { background: var(--warn-tint); color: var(--warn); }
|
||
.m-delete { background: var(--danger-tint); color: var(--danger); }
|
||
.m-patch { background: rgba(124, 58, 237, 0.1); color: #6d28d9; }
|
||
.m-get { background: var(--gray-100); color: var(--gray-500); }
|
||
|
||
/* 资源列 */
|
||
.rt {
|
||
display: inline-block;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--gray-700);
|
||
background: var(--gray-100);
|
||
border-radius: 4px;
|
||
padding: 2px 7px;
|
||
margin-right: 8px;
|
||
}
|
||
.rn { color: var(--gray-500); font-size: 12.5px; word-break: break-all; }
|
||
|
||
/* 结果徽标 */
|
||
.result {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 12.5px;
|
||
font-weight: 500;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.result i {
|
||
width: 7px;
|
||
height: 7px;
|
||
border-radius: 50%;
|
||
flex-shrink: 0;
|
||
}
|
||
.result.ok { color: #16a34a; }
|
||
.result.ok i { background: #16a34a; }
|
||
.result.fail { color: var(--danger); }
|
||
.result.fail i { background: var(--danger); }
|
||
|
||
/* 空状态 */
|
||
.empty-state {
|
||
text-align: center;
|
||
padding: 48px 0 40px;
|
||
color: var(--gray-500);
|
||
}
|
||
.empty-state .es-icon { font-size: 30px; margin-bottom: 8px; }
|
||
.empty-state p { margin: 4px 0; }
|
||
.empty-state .btn-link { padding: 4px 8px; }
|
||
|
||
/* 分页 */
|
||
.pagination {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10px 16px;
|
||
border-top: 1px solid var(--gray-200);
|
||
background: #fff;
|
||
}
|
||
|
||
.pg-info { font-size: 12.5px; color: var(--gray-500); }
|
||
|
||
.pg-right { display: flex; align-items: center; gap: 8px; }
|
||
.pg-right select { padding: 5px 24px 5px 8px; font-size: 12.5px; }
|
||
.icon-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
|
||
|
||
/* ============ 设置页 ============ */
|
||
#panel-settings .settings-card { max-width: 780px; }
|
||
.settings-card { margin-bottom: 16px; padding-bottom: 6px; }
|
||
|
||
.setting-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 24px;
|
||
padding: 16px 18px;
|
||
border-bottom: 1px solid var(--gray-100);
|
||
}
|
||
|
||
.setting-text { max-width: 640px; }
|
||
.s-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
|
||
.s-desc { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }
|
||
|
||
.input.num { width: 90px; text-align: center; }
|
||
|
||
.settings-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
padding: 14px 18px 16px;
|
||
}
|
||
|
||
.clean-stats {
|
||
padding: 14px 18px;
|
||
font-size: 13px;
|
||
color: var(--gray-700);
|
||
line-height: 1.7;
|
||
}
|
||
.clean-stats .num-warn { color: var(--danger); font-weight: 600; }
|
||
|
||
.settings-card .btn { margin: 0 18px 16px; }
|
||
|
||
/* 开关 */
|
||
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
|
||
.switch input { opacity: 0; width: 0; height: 0; }
|
||
|
||
.slider {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: var(--gray-300);
|
||
border-radius: 999px;
|
||
transition: background 0.2s;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.slider::before {
|
||
content: '';
|
||
position: absolute;
|
||
width: 16px;
|
||
height: 16px;
|
||
left: 3px;
|
||
top: 3px;
|
||
border-radius: 50%;
|
||
background: #fff;
|
||
transition: transform 0.2s;
|
||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||
}
|
||
|
||
.switch input:checked + .slider { background: var(--primary); }
|
||
.switch input:checked + .slider::before { transform: translateX(18px); }
|
||
|
||
/* ============ 头像 ============ */
|
||
.avatar {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 50%;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: #fff;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.avatar.sm { width: 22px; height: 22px; font-size: 10px; }
|
||
|
||
.c-a { background: #4ccba0; }
|
||
.c-b { background: #6366f1; }
|
||
.c-c { background: #f59e0b; }
|
||
.c-d { background: #ec4899; }
|
||
.c-e { background: #0ea5e9; }
|
||
|
||
/* ============ 详情抽屉 ============ */
|
||
.overlay {
|
||
position: fixed;
|
||
inset: 0;
|
||
background: rgba(14, 23, 49, 0.4);
|
||
z-index: 40;
|
||
}
|
||
|
||
.drawer {
|
||
position: fixed;
|
||
top: 0;
|
||
right: 0;
|
||
width: 440px;
|
||
max-width: 92vw;
|
||
height: 100vh;
|
||
background: #fff;
|
||
z-index: 50;
|
||
box-shadow: var(--shadow-lg);
|
||
overflow-y: auto;
|
||
padding: 20px 22px 28px;
|
||
}
|
||
|
||
@keyframes slideIn {
|
||
from { transform: translateX(60px); opacity: 0; }
|
||
to { transform: translateX(0); opacity: 1; }
|
||
}
|
||
|
||
.drawer[hidden] { display: none; }
|
||
.drawer { animation: slideIn 0.25s ease-out; }
|
||
|
||
.drawer-head {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
margin-bottom: 14px;
|
||
}
|
||
|
||
.drawer-title { font-size: 16px; font-weight: 700; }
|
||
.drawer-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; font-family: ui-monospace, Consolas, monospace; }
|
||
|
||
.readonly-banner {
|
||
background: var(--primary-tint);
|
||
color: var(--primary-dark);
|
||
font-size: 12.5px;
|
||
border-radius: 6px;
|
||
padding: 9px 12px;
|
||
margin-bottom: 16px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.detail-list { margin: 0; }
|
||
|
||
.detail-list .d-row {
|
||
padding: 9px 0;
|
||
border-bottom: 1px dashed var(--gray-200);
|
||
}
|
||
|
||
.detail-list dt {
|
||
font-size: 11.5px;
|
||
color: var(--gray-500);
|
||
font-weight: 600;
|
||
margin-bottom: 5px;
|
||
}
|
||
|
||
.detail-list dd {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
word-break: break-all;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.path-code {
|
||
display: block;
|
||
font-family: ui-monospace, Consolas, 'Courier New', monospace;
|
||
font-size: 12px;
|
||
background: var(--gray-100);
|
||
border-radius: 5px;
|
||
padding: 7px 9px;
|
||
word-break: break-all;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.ua { font-size: 12px; color: var(--gray-500); line-height: 1.6; }
|
||
|
||
.raw-json { margin-top: 16px; }
|
||
.raw-json summary {
|
||
font-size: 12.5px;
|
||
color: var(--gray-500);
|
||
cursor: pointer;
|
||
user-select: none;
|
||
}
|
||
.raw-json summary:hover { color: var(--gray-900); }
|
||
|
||
.raw-json pre {
|
||
background: var(--secondary);
|
||
color: #d1fae5;
|
||
font-size: 11.5px;
|
||
border-radius: 6px;
|
||
padding: 12px;
|
||
overflow-x: auto;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
/* ============ 模拟操作弹窗 ============ */
|
||
.modal {
|
||
position: fixed;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
width: 520px;
|
||
max-width: 92vw;
|
||
background: #fff;
|
||
border-radius: 10px;
|
||
z-index: 50;
|
||
box-shadow: var(--shadow-lg);
|
||
padding: 18px 22px 20px;
|
||
}
|
||
|
||
.modal[hidden] { display: none; }
|
||
|
||
@keyframes popIn {
|
||
from { transform: translate(-50%, -50%) scale(0.96); opacity: 0; }
|
||
to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
|
||
}
|
||
|
||
.modal { animation: popIn 0.2s ease-out; }
|
||
|
||
.modal-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
font-size: 16px;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.modal-sub {
|
||
font-size: 12.5px;
|
||
color: var(--gray-500);
|
||
line-height: 1.6;
|
||
margin: 8px 0 14px;
|
||
}
|
||
|
||
.modal-sub code {
|
||
background: var(--gray-100);
|
||
border-radius: 4px;
|
||
padding: 1px 5px;
|
||
font-size: 11.5px;
|
||
}
|
||
|
||
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; flex: 1; }
|
||
.field label { font-size: 12px; color: var(--gray-500); font-weight: 600; }
|
||
.field select, .field .input { width: 100%; }
|
||
|
||
.field-row { display: flex; gap: 12px; }
|
||
|
||
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
|
||
|
||
.chip {
|
||
appearance: none;
|
||
border: 1px solid var(--gray-300);
|
||
background: #fff;
|
||
border-radius: 999px;
|
||
padding: 5px 12px;
|
||
font-size: 12px;
|
||
color: var(--gray-700);
|
||
cursor: pointer;
|
||
transition: all 0.15s;
|
||
}
|
||
|
||
.chip:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); }
|
||
|
||
.modal-actions {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
gap: 10px;
|
||
margin-top: 6px;
|
||
}
|
||
|
||
/* ============ Toast ============ */
|
||
.toast {
|
||
position: fixed;
|
||
top: 22px;
|
||
left: 50%;
|
||
transform: translate(-50%, -8px);
|
||
background: var(--secondary);
|
||
color: #fff;
|
||
font-size: 13px;
|
||
padding: 10px 18px;
|
||
border-radius: 8px;
|
||
box-shadow: var(--shadow-lg);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.25s, transform 0.25s;
|
||
z-index: 100;
|
||
max-width: 60vw;
|
||
}
|
||
|
||
.toast.show { opacity: 1; transform: translate(-50%, 0); }
|
||
.toast.ok { background: var(--primary-dark); }
|
||
.toast.warn { background: #92400e; }
|