Milestone 5: canvas for access
The hub now serves a React canvas (web/, embedded at build time): grant by dragging a vault onto a person, revoke by pulling a ribbon until it snaps with an 8 s Undo the hub honours before anything reaches devices, invites (including vaults dropped on invitees), device rename and removal, Float/Dock, and panels with a button for every gesture. Sign-in without passwords (SPEC §8): `lunesync open` one-time link or a pairing code typed on the hub; 30-day HttpOnly session cookie plus an X-Lune header on every canvas request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
129
web/src/styles.css
Normal file
129
web/src/styles.css
Normal file
@@ -0,0 +1,129 @@
|
||||
/* The team canvas, after Sen's prototype: ink on lavender paper, display type for names, a calm purple accent.
|
||||
Status colors (green/amber/grey/red) are reserved for M6 and not used here (X6). */
|
||||
:root {
|
||||
--paper: #F5F3FB;
|
||||
--dots: #DCD5EE;
|
||||
--surface: #FFFFFF;
|
||||
--ink: #221E33;
|
||||
--muted: #6A6480;
|
||||
--line: #E2DDF0;
|
||||
--line-strong: #D7D0EC;
|
||||
--accent: #6A4BD0;
|
||||
--accent-hover: #5A3CC0;
|
||||
--accent-soft: #F1EDFB;
|
||||
--accent-tint: #E8E1FB;
|
||||
--focus: #9B84EA;
|
||||
--danger-ink: #A52A2F;
|
||||
--font-display: 'Bricolage Grotesque', 'Avenir Next', system-ui, sans-serif;
|
||||
--font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
html, body { margin: 0; height: 100%; }
|
||||
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 15px; }
|
||||
code, pre { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; }
|
||||
.disp { font-family: var(--font-display); }
|
||||
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
|
||||
.eyebrow { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
|
||||
.error { color: var(--danger-ink); margin: 0; font-size: 14px; }
|
||||
|
||||
.btn { font: inherit; font-size: 14px; min-height: 40px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
|
||||
.btn:hover { background: var(--accent-soft); }
|
||||
.btn:disabled { opacity: 0.55; cursor: default; }
|
||||
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
|
||||
.btn-primary:hover { background: var(--accent-hover); }
|
||||
.btn-danger { color: var(--danger-ink); border-color: #EBC5C7; }
|
||||
.btn-danger:hover { background: #FBEDED; }
|
||||
.btn-small { min-height: 32px; padding: 4px 10px; font-size: 13px; border-radius: 10px; }
|
||||
.btn-ghost { border-color: transparent; background: transparent; }
|
||||
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
|
||||
.field { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); width: 100%; }
|
||||
.field.code { font-family: var(--font-display); font-size: 24px; letter-spacing: 3px; text-transform: uppercase; }
|
||||
|
||||
/* Sign-in and join pages */
|
||||
.page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
|
||||
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 40px rgba(34, 30, 51, 0.08); }
|
||||
.card h1 { margin: 0; font-size: 26px; line-height: 1.15; }
|
||||
.card p { margin: 0; line-height: 1.5; }
|
||||
.card label { font-weight: 700; font-size: 14px; }
|
||||
.cmd { background: #1E1B2E; color: #EDE9F8; border-radius: 12px; padding: 12px 14px; margin: 0; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
|
||||
|
||||
/* Canvas */
|
||||
.root { height: 100vh; height: 100dvh; overflow: hidden; position: relative; background-color: var(--paper); background-image: radial-gradient(var(--dots) 1.2px, transparent 1.4px); background-size: 24px 24px; }
|
||||
.bob { animation: bob 4.6s ease-in-out infinite; }
|
||||
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
|
||||
.fade { transition: opacity 0.2s ease; }
|
||||
.stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 88px 24px 84px; transition: padding 0.3s ease; }
|
||||
.board { position: relative; container-type: inline-size; }
|
||||
.open .stage { padding-right: 428px; }
|
||||
.topbar { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px; pointer-events: none; z-index: 12; }
|
||||
.topbar > * { pointer-events: auto; }
|
||||
.float-card { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 6px 20px rgba(34, 30, 51, 0.08); }
|
||||
.seg { display: flex; padding: 4px; gap: 4px; background: var(--accent-soft); border-radius: 14px; }
|
||||
.seg .btn { border-color: transparent; background: transparent; color: var(--muted); }
|
||||
.seg .btn[aria-pressed='true'] { background: #FFFFFF; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(34, 30, 51, 0.12); }
|
||||
.bottombar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px; pointer-events: none; z-index: 11; transition: right 0.3s ease; }
|
||||
.open .bottombar { right: 428px; }
|
||||
.chipbar { background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--muted); }
|
||||
.chipbar.hot { color: #4B2FB0; font-weight: 700; }
|
||||
.empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
|
||||
.empty > div { pointer-events: auto; text-align: center; max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
|
||||
|
||||
.panel { position: absolute; top: 84px; right: 16px; bottom: 16px; width: 396px; max-width: calc(100% - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 16px 40px rgba(34, 30, 51, 0.14); z-index: 15; animation: slidein 0.25s ease-out; }
|
||||
.panel h2 { margin: 0; font-size: 24px; }
|
||||
.panel h3 { margin: 0 0 6px; font-size: 12px; letter-spacing: 1.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
|
||||
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
|
||||
.panel-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
||||
.backbtn { font: inherit; font-size: 13px; font-weight: 700; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 8px; margin: -8px 0 -6px -8px; border-radius: 8px; align-self: flex-start; }
|
||||
.backbtn:hover { background: var(--accent-soft); }
|
||||
.ov-sec { background: #F8F6FC; border: 1px solid #ECE8F5; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
|
||||
.ov-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 8px; }
|
||||
.ov-count { font-size: 12px; color: var(--muted); background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
|
||||
.row { font: inherit; display: flex; align-items: center; gap: 12px; width: 100%; background: transparent; border: 0; border-radius: 12px; padding: 8px 6px; cursor: pointer; text-align: left; color: var(--ink); }
|
||||
.row:hover { background: #FFFFFF; }
|
||||
.row .sub { font-size: 13px; color: var(--muted); }
|
||||
.chev { color: #A39DB8; font-size: 20px; line-height: 1; flex: none; }
|
||||
.member { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
|
||||
.namebtn { font: inherit; font-weight: 700; flex: 1; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
|
||||
.namebtn:hover { color: var(--accent); text-decoration: underline; }
|
||||
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 3px solid; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
|
||||
.swatch { width: 34px; height: 34px; border-radius: 11px; border: 2px solid; display: flex; align-items: center; justify-content: center; flex: none; }
|
||||
.device { border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
|
||||
.device-head { display: flex; align-items: center; gap: 10px; }
|
||||
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
|
||||
.note { background: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
|
||||
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.45; }
|
||||
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
|
||||
.log { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-direction: column; }
|
||||
.log li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: 14px; line-height: 1.4; }
|
||||
.log li i { width: 8px; height: 8px; border-radius: 50%; background: #BBA8F2; margin-top: 6px; display: block; }
|
||||
|
||||
.coach { position: absolute; left: 16px; bottom: 68px; z-index: 13; width: 320px; max-width: calc(100% - 32px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: 0 12px 32px rgba(34, 30, 51, 0.14); display: flex; flex-direction: column; gap: 10px; }
|
||||
.tip { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
|
||||
.tipn { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-tint); color: #4B2FB0; font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
|
||||
|
||||
.scrim { position: fixed; inset: 0; background: rgba(34, 30, 51, 0.38); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
|
||||
.dialog { background: #FFFFFF; border-radius: 24px; padding: 24px; width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 32px); overflow-y: auto; }
|
||||
.dialog h2 { margin: 0; font-size: 22px; }
|
||||
.dialog label.lbl { font-size: 14px; font-weight: 700; }
|
||||
.actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
|
||||
|
||||
.toast-wrap { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; width: max-content; max-width: calc(100% - 32px); }
|
||||
.toast { background: var(--ink); color: #FFFFFF; padding: 10px 10px 10px 18px; border-radius: 14px; font-size: 14px; line-height: 1.4; box-shadow: 0 8px 24px rgba(34, 30, 51, 0.25); display: flex; align-items: center; gap: 12px; }
|
||||
.undo { font: inherit; font-size: 14px; font-weight: 700; background: none; border: 0; color: #C9B8FF; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
|
||||
.undo:hover { background: rgba(255, 255, 255, 0.1); }
|
||||
|
||||
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
|
||||
@media (max-width: 720px) {
|
||||
.stage { padding: 136px 8px 64px; }
|
||||
.open .stage { padding-right: 8px; padding-bottom: 58vh; }
|
||||
.panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; height: 56vh; animation-name: slideup; }
|
||||
.open .bottombar { display: none; }
|
||||
.coach { bottom: 16px; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.bob { animation: none; }
|
||||
.panel { animation: none; }
|
||||
.stage, .bottombar, .fade { transition: none; }
|
||||
}
|
||||
Reference in New Issue
Block a user