Spec-first port of the Flask app (still on main): - schema.arch: signed arch-llm spec (single source of truth) - paste_bin/: generated FastAPI backend, verified 51/51 frozen owner tests, 92.5% coverage (build r3, 2026-11-18) - ui/: SPA + emitted OpenAPI contract (openapi.json + generated client.js); the app calls only window.PasteBinAPI - 7 old bugs fixed (file raw 500, silent expiry, AVI-as-webp, stripped content, limiter leak, trusted mimetype, stale tmp) - 62/62 live probe green; /health + JSON index added; JSON API Full report on the wiki: 'FastAPI port (arch-llm pipeline)'.
912 lines
15 KiB
CSS
912 lines
15 KiB
CSS
/* ============================================================
|
|
paste-bin UI — design system
|
|
Palette inherited from the original app (static/style.css):
|
|
bg #1a1a2e · panel #16213e · line #0f3460 · accent #e94560
|
|
============================================================ */
|
|
|
|
:root {
|
|
--bg: #1a1a2e;
|
|
--bg-deep: #131324;
|
|
--panel: #16213e;
|
|
--panel-2: #101a33;
|
|
--panel-3: #0d1730;
|
|
--line: #0f3460;
|
|
--line-soft: rgba(15, 52, 96, 0.55);
|
|
--ink: #e4e6ee;
|
|
--ink-dim: #a0a8bd;
|
|
--ink-faint: #5f6880;
|
|
--accent: #e94560;
|
|
--accent-hi: #f05e78;
|
|
--accent-soft: rgba(233, 69, 96, 0.13);
|
|
--ok: #3ddc84;
|
|
--warn: #f5a623;
|
|
--mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
|
|
"Liberation Mono", monospace;
|
|
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
Ubuntu, sans-serif;
|
|
--radius: 12px;
|
|
--radius-sm: 8px;
|
|
--shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
color-scheme: dark;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--sans);
|
|
font-size: 15px;
|
|
line-height: 1.55;
|
|
color: var(--ink);
|
|
background:
|
|
radial-gradient(1100px 480px at 75% -10%, rgba(233, 69, 96, 0.07), transparent 60%),
|
|
radial-gradient(900px 420px at -10% 110%, rgba(15, 52, 96, 0.5), transparent 60%),
|
|
var(--bg);
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent-hi);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* ---------- top bar ---------- */
|
|
|
|
.topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
background: rgba(19, 19, 36, 0.82);
|
|
backdrop-filter: blur(10px);
|
|
border-bottom: 1px solid var(--line-soft);
|
|
}
|
|
|
|
.topbar-inner {
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
padding: 12px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 10px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.brand-mark {
|
|
font-size: 19px;
|
|
align-self: center;
|
|
}
|
|
|
|
.brand-name {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.brand-name .accent {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.brand-tag {
|
|
color: var(--ink-faint);
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.topbar-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
padding: 4px 11px;
|
|
border-radius: 999px;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-2);
|
|
color: var(--ink-dim);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.pill .dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--ink-faint);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pill-ok {
|
|
color: var(--ok);
|
|
border-color: rgba(61, 220, 132, 0.35);
|
|
}
|
|
.pill-ok .dot {
|
|
background: var(--ok);
|
|
box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
|
|
}
|
|
|
|
.pill-err {
|
|
color: var(--accent-hi);
|
|
border-color: rgba(233, 69, 96, 0.4);
|
|
}
|
|
.pill-err .dot {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.pill-pending .dot {
|
|
animation: pulse 1.2s ease-in-out infinite;
|
|
}
|
|
|
|
.pill-badge {
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, color 0.15s;
|
|
}
|
|
.pill-badge:hover {
|
|
color: var(--ink);
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.25; }
|
|
}
|
|
|
|
/* ---------- layout ---------- */
|
|
|
|
.shell {
|
|
max-width: 1120px;
|
|
margin: 0 auto;
|
|
padding: 26px 20px 60px;
|
|
display: grid;
|
|
grid-template-columns: 1.08fr 1fr;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line-soft);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 22px;
|
|
}
|
|
|
|
.card-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.card-head h2 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.09em;
|
|
color: var(--ink-dim);
|
|
}
|
|
|
|
.card-head h2 .dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 3px;
|
|
background: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* ---------- segmented control ---------- */
|
|
|
|
.seg {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 4px;
|
|
background: var(--panel-3);
|
|
border: 1px solid var(--line-soft);
|
|
border-radius: 10px;
|
|
padding: 4px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.seg-btn {
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: var(--ink-dim);
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 7px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
transition: color 0.15s, background 0.15s, border-color 0.15s;
|
|
}
|
|
|
|
.seg-btn:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
.seg-btn.on {
|
|
color: var(--accent-hi);
|
|
background: var(--accent-soft);
|
|
border-color: rgba(233, 69, 96, 0.45);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---------- form fields ---------- */
|
|
|
|
.field-row {
|
|
display: flex;
|
|
gap: 14px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.field {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.field-narrow {
|
|
flex: 0 0 148px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--ink-dim);
|
|
}
|
|
|
|
label .opt {
|
|
color: var(--ink-faint);
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
}
|
|
|
|
input[type="text"],
|
|
textarea,
|
|
select {
|
|
width: 100%;
|
|
font: inherit;
|
|
color: var(--ink);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-sm);
|
|
padding: 9px 12px;
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
}
|
|
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
|
|
.mono {
|
|
font-family: var(--mono);
|
|
font-size: 13.5px;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a0a8bd' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
background-repeat: no-repeat;
|
|
background-position: right 12px center;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
min-height: 220px;
|
|
font-family: var(--mono);
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.charcount {
|
|
margin-top: 6px;
|
|
text-align: right;
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.pane[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* ---------- dropzone ---------- */
|
|
|
|
#dropzone {
|
|
border: 2px dashed var(--line);
|
|
border-radius: var(--radius);
|
|
background: var(--panel-2);
|
|
padding: 22px;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
position: relative;
|
|
}
|
|
|
|
#dropzone:hover,
|
|
#dropzone:focus-visible {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
#dropzone.dragover {
|
|
border-color: var(--accent-hi);
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.dz-idle {
|
|
text-align: center;
|
|
padding: 14px 0;
|
|
}
|
|
|
|
.dz-icon {
|
|
font-size: 26px;
|
|
margin-bottom: 6px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.dz-text {
|
|
color: var(--ink-dim);
|
|
font-size: 14.5px;
|
|
}
|
|
|
|
.dz-text .accent {
|
|
color: var(--accent-hi);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.dz-sub {
|
|
margin-top: 5px;
|
|
font-size: 12px;
|
|
color: var(--ink-faint);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
.dz-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
}
|
|
|
|
.dz-preview img {
|
|
width: 72px;
|
|
height: 72px;
|
|
object-fit: cover;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-3);
|
|
}
|
|
|
|
.dz-file-ico {
|
|
font-size: 34px;
|
|
width: 72px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dz-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 320px;
|
|
}
|
|
|
|
.dz-remove {
|
|
margin-left: auto;
|
|
flex-shrink: 0;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-3);
|
|
color: var(--ink-dim);
|
|
font-size: 15px;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
transition: color 0.15s, border-color 0.15s;
|
|
}
|
|
.dz-remove:hover {
|
|
color: var(--accent-hi);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* ---------- buttons ---------- */
|
|
|
|
.btn {
|
|
font: inherit;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
border-radius: var(--radius-sm);
|
|
padding: 10px 18px;
|
|
cursor: pointer;
|
|
border: 1px solid transparent;
|
|
transition: background 0.15s, border-color 0.15s, color 0.15s,
|
|
transform 0.06s, box-shadow 0.15s;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn:active {
|
|
transform: translateY(1px);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.55;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
box-shadow: 0 4px 14px rgba(233, 69, 96, 0.3);
|
|
}
|
|
.btn-primary:hover:not(:disabled) {
|
|
background: var(--accent-hi);
|
|
box-shadow: 0 6px 18px rgba(233, 69, 96, 0.4);
|
|
}
|
|
|
|
.btn-ghost {
|
|
background: transparent;
|
|
color: var(--accent-hi);
|
|
border-color: rgba(233, 69, 96, 0.5);
|
|
}
|
|
.btn-ghost:hover:not(:disabled) {
|
|
background: var(--accent-soft);
|
|
border-color: var(--accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-sm {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
padding: 6px 12px;
|
|
}
|
|
|
|
.linklike {
|
|
font: inherit;
|
|
font-size: 12px;
|
|
color: var(--ink-faint);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
.linklike:hover {
|
|
color: var(--accent-hi);
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-top: 18px;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 12.5px;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
/* ---------- open row ---------- */
|
|
|
|
.open-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.open-row input {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.field-err {
|
|
margin-top: 8px;
|
|
font-size: 13px;
|
|
color: var(--accent-hi);
|
|
}
|
|
.field-err[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* ---------- view stage ---------- */
|
|
|
|
.stage {
|
|
margin-top: 16px;
|
|
min-height: 210px;
|
|
border: 1px solid var(--line-soft);
|
|
border-radius: var(--radius);
|
|
background: var(--panel-2);
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.stage-empty {
|
|
text-align: center;
|
|
color: var(--ink-faint);
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.stage-empty-ico {
|
|
font-size: 34px;
|
|
margin-bottom: 10px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.stage-empty-sub {
|
|
margin-top: 5px;
|
|
font-size: 12px;
|
|
font-family: var(--mono);
|
|
color: var(--ink-faint);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.stage-loading {
|
|
color: var(--ink-dim);
|
|
font-size: 14px;
|
|
font-family: var(--mono);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.stage-loading .spinner {
|
|
width: 14px;
|
|
height: 14px;
|
|
border: 2px solid var(--line);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.view-text {
|
|
width: 100%;
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
padding: 16px 18px;
|
|
font-family: var(--mono);
|
|
font-size: 13.5px;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.stage-img {
|
|
padding: 18px;
|
|
display: flex;
|
|
justify-content: center;
|
|
background: repeating-conic-gradient(
|
|
var(--panel-3) 0% 25%,
|
|
var(--panel-2) 0% 50%
|
|
)
|
|
0 0 / 18px 18px;
|
|
}
|
|
|
|
.stage-img img {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--line);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.view-file {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
.view-file-ico {
|
|
font-size: 44px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.view-file-name {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.view-file-sub {
|
|
margin-top: 5px;
|
|
font-size: 12.5px;
|
|
font-family: var(--mono);
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.view-error {
|
|
text-align: center;
|
|
padding: 36px 20px;
|
|
}
|
|
|
|
.view-error-ico {
|
|
font-size: 30px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.view-error-title {
|
|
color: var(--accent-hi);
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.view-error-sub {
|
|
margin-top: 6px;
|
|
font-size: 13px;
|
|
color: var(--ink-faint);
|
|
font-family: var(--mono);
|
|
}
|
|
|
|
/* ---------- meta + actions ---------- */
|
|
|
|
.view-meta {
|
|
margin-top: 12px;
|
|
font-size: 12.5px;
|
|
font-family: var(--mono);
|
|
color: var(--ink-faint);
|
|
line-height: 1.7;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.view-meta[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.view-meta b {
|
|
color: var(--ink-dim);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.view-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin-top: 12px;
|
|
}
|
|
.view-actions[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
/* ---------- recent chips ---------- */
|
|
|
|
.recent {
|
|
margin-top: 22px;
|
|
border-top: 1px solid var(--line-soft);
|
|
padding-top: 14px;
|
|
}
|
|
|
|
.recent-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chips-empty {
|
|
font-size: 13px;
|
|
color: var(--ink-faint);
|
|
}
|
|
|
|
.chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
padding: 5px 6px 5px 12px;
|
|
cursor: pointer;
|
|
transition: border-color 0.15s, background 0.15s;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.chip:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-soft);
|
|
}
|
|
|
|
.chip-ico {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.chip-id {
|
|
font-family: var(--mono);
|
|
font-size: 12.5px;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.chip-title {
|
|
font-size: 12.5px;
|
|
color: var(--ink-faint);
|
|
max-width: 160px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chip-x {
|
|
border: none;
|
|
background: none;
|
|
color: var(--ink-faint);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
padding: 2px 5px;
|
|
border-radius: 50%;
|
|
line-height: 1;
|
|
}
|
|
.chip-x:hover {
|
|
color: var(--accent-hi);
|
|
background: rgba(233, 69, 96, 0.18);
|
|
}
|
|
|
|
/* ---------- toasts ---------- */
|
|
|
|
.toasts {
|
|
position: fixed;
|
|
right: 18px;
|
|
bottom: 18px;
|
|
z-index: 50;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-width: min(380px, calc(100vw - 36px));
|
|
}
|
|
|
|
.toast {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-left: 3px solid var(--ink-faint);
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--shadow);
|
|
padding: 12px 34px 12px 14px;
|
|
position: relative;
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
transition: opacity 0.25s, transform 0.25s;
|
|
}
|
|
|
|
.toast.in {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.toast-title {
|
|
font-size: 13.5px;
|
|
font-weight: 600;
|
|
font-family: var(--mono);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.toast-detail {
|
|
margin-top: 3px;
|
|
font-size: 12.5px;
|
|
color: var(--ink-dim);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.toast-ok {
|
|
border-left-color: var(--ok);
|
|
}
|
|
.toast-ok .toast-title {
|
|
color: var(--ok);
|
|
}
|
|
|
|
.toast-warn {
|
|
border-left-color: var(--warn);
|
|
}
|
|
.toast-warn .toast-title {
|
|
color: var(--warn);
|
|
}
|
|
|
|
.toast-err {
|
|
border-left-color: var(--accent);
|
|
}
|
|
.toast-err .toast-title {
|
|
color: var(--accent-hi);
|
|
}
|
|
|
|
.toast-x {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
border: none;
|
|
background: none;
|
|
color: var(--ink-faint);
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
padding: 2px 6px;
|
|
border-radius: 50%;
|
|
line-height: 1;
|
|
}
|
|
.toast-x:hover {
|
|
color: var(--ink);
|
|
}
|
|
|
|
/* ---------- responsive ---------- */
|
|
|
|
@media (max-width: 940px) {
|
|
.shell {
|
|
grid-template-columns: 1fr;
|
|
padding-top: 18px;
|
|
}
|
|
.brand-tag {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.field-row {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
.field-narrow {
|
|
flex: 1;
|
|
}
|
|
.topbar-inner {
|
|
flex-wrap: wrap;
|
|
}
|
|
}
|