loopable / web /src /publish /publishPanel.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
f546440 verified
Raw History Blame Contribute Delete
3.27 kB
/* ---------------------------------------------------------------------------
publish / publishPanel.css — the publish control inside the share dialog
(wave 33, item 8b, R5, W33-T27).
⚠ CO-LOCATED per contract C4 (`index.css` is B's file this wave), and SEPARATE
from `publish.css` on purpose: that sheet styles the PUBLIC page, which has no
shell around it and owns its whole surface. This one lives INSIDE a dialog the
shell already styles, so it inherits that dialog's ink, surface and radius
rather than declaring its own — a second palette one modal deep is how two
greys end up next to each other.
⛔ TYPE IS THE PRODUCT'S (`--lp-fs-*`), never a literal. DESIGN.md R5, gated
app-wide by `verify_ui::font_literals`; `publish.css` learned this the
expensive way in the same hour.
--------------------------------------------------------------------------- */
.pubp {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--lp-line, #e3e6ee);
display: flex;
flex-direction: column;
gap: 8px;
}
.pubp-head {
margin: 0;
font-size: var(--lp-fs-sm);
font-weight: 600;
color: var(--lp-ink);
}
.pubp-sub,
.pubp-state,
.pubp-label {
margin: 0;
font-size: var(--lp-fs-2xs);
color: var(--lp-muted);
}
.pubp-sub { max-width: 62ch; }
.pubp-linkrow { display: flex; gap: 8px; align-items: center; }
.pubp-link {
font: inherit;
font-size: var(--lp-fs-2xs);
flex: 1 1 auto;
min-width: 0;
padding: 7px 9px;
border: 1px solid var(--lp-line, #e3e6ee);
border-radius: var(--lp-r-sm, 6px);
background: var(--lp-surface-2, #f6f7fb);
color: var(--lp-ink);
}
.pubp-access { display: flex; flex-wrap: wrap; gap: 14px; }
.pubp-radio {
display: flex;
align-items: center;
gap: 6px;
font-size: var(--lp-fs-2xs);
color: var(--lp-ink);
cursor: pointer;
}
.pubp-pass { display: flex; flex-direction: column; gap: 4px; }
.pubp-input {
font: inherit;
font-size: var(--lp-fs-2xs);
padding: 7px 9px;
border: 1px solid var(--lp-line, #e3e6ee);
border-radius: var(--lp-r-sm, 6px);
background: var(--lp-surface, #fff);
color: var(--lp-ink);
}
.pubp-err { margin: 0; font-size: var(--lp-fs-2xs); color: var(--lp-red-deep, #a3453c); }
.pubp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.pubp-btn {
font: inherit;
font-size: var(--lp-fs-2xs);
font-weight: 500;
padding: 7px 12px;
border: 1px solid var(--lp-line, #e3e6ee);
border-radius: var(--lp-r-sm, 6px);
background: var(--lp-surface, #fff);
color: var(--lp-ink);
cursor: pointer;
}
.pubp-btn:hover:not(:disabled) { background: var(--lp-surface-2, #f6f7fb); }
.pubp-btn:disabled { opacity: 0.5; cursor: default; }
/* The CTA colour is reserved for the CTA (DESIGN.md:58) and Publish is one. */
.pubp-btn.is-primary {
background: var(--lp-primary, #1f4e78);
border-color: var(--lp-primary, #1f4e78);
color: #fff;
}
.pubp-btn.is-primary:hover:not(:disabled) { filter: brightness(1.06); }
/* ⚠ Unpublish is DESTRUCTIVE-ish but not destructive: it revokes a link, it
deletes no data. So it is tinted, never filled — a red button here would rank
it beside "delete this database", which it is not. */
.pubp-btn.is-danger { color: var(--lp-red-deep, #a3453c); }