peppa/apps/web/app/globals.css
Асель 2b0f2fd984 PEP-1: web platform with Gitea login, projects, goals, tasks, sessions
- web: Gitea OAuth2 login, signed session cookie, everything behind login;
  inbox with answers, project board (goals → tasks), task page with
  OpenSpec artifacts, questions and session controls; new project form;
  auto-refresh, light/dark, mobile
- users + projects.owner_id; tokens AES-256-GCM encrypted; owner-only access
- provisionProject (runner): new or existing Gitea repo, peppa-bot
  collaborator, template + openspec init, push, rollback; used by web and
  peppa project create (replaces scripts/bootstrap-project.sh)
- peppa web login-link, peppa project owner; Gitea OAuth app script
- bins/template resolved via PEPPA_ROOT (works inside the Next build)
- testkit: mock-gitea + 10 tests (42 e2e total, all green)
- OpenSpec: pep-1-web-platform archived into specs web-auth,
  project-provisioning, web-workspace

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 20:55:02 +05:00

142 lines
5.6 KiB
CSS

:root {
--bg: #f7f6f3;
--surface: #ffffff;
--text: #1f1d1a;
--muted: #6f6a62;
--border: #e4e0d8;
--accent: #d6457a;
--accent-text: #ffffff;
--danger: #b4332b;
--ok: #2f7d4f;
--warn: #a8661b;
--info: #3460a8;
--code-bg: #f0ede7;
--radius: 10px;
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #151412;
--surface: #1e1d1a;
--text: #ece8e1;
--muted: #a39d93;
--border: #34312c;
--accent: #ec6b9a;
--accent-text: #1a0d12;
--danger: #e0675e;
--ok: #6cc28f;
--warn: #e0a05a;
--info: #7fa6ea;
--code-bg: #26241f;
color-scheme: dark;
}
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
background: var(--bg);
color: var(--text);
font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
h2 { font-size: 1.1rem; margin: 28px 0 10px; }
.mono, code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 12px 0; }
.top {
display: flex; align-items: center; gap: 20px; padding: 10px 24px;
background: var(--surface); border-bottom: 1px solid var(--border);
position: sticky; top: 0; z-index: 1;
}
.brand { font-weight: 700; color: var(--text); }
.top nav { display: flex; gap: 16px; flex: 1; }
.top nav a { color: var(--muted); }
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.me img { border-radius: 50%; }
main { max-width: 960px; margin: 0 auto; padding: 24px; }
.narrow { max-width: 560px; }
.crumbs { margin: 0 0 4px; color: var(--muted); }
.desc { white-space: pre-wrap; }
.card {
background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
padding: 14px 16px; margin: 10px 0;
}
.q { border-left: 4px solid var(--info); }
.q-approval { border-left-color: var(--accent); }
.q-permission { border-left-color: var(--warn); }
.q-attention { border-left-color: var(--ok); }
.q.answered { opacity: 0.7; border-left-color: var(--border); }
.kind { font-weight: 600; }
.qtext { white-space: pre-wrap; margin: 8px 0; max-height: 18em; overflow: auto; }
.attach { display: block; color: var(--muted); margin: 6px 0; overflow-x: auto; }
.count { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 0.8rem; padding: 1px 9px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.row > input[type=text] { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; margin: 10px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
label.inline { flex-direction: row; align-items: center; font-weight: 400; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; }
.answer { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
input[type=text], textarea, select {
font: inherit; color: var(--text); background: var(--bg);
border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; width: 100%;
}
input.short { width: 8em; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .button {
font: inherit; cursor: pointer; border-radius: 8px; padding: 7px 14px;
border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap;
display: inline-block;
}
button:hover, .button:hover { border-color: var(--muted); text-decoration: none; }
.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.danger { color: var(--danger); }
button.link { border: 0; background: none; padding: 0; color: var(--muted); }
.badge {
font-size: 0.75rem; font-weight: 600; border-radius: 999px; padding: 2px 9px;
background: var(--code-bg); color: var(--muted); white-space: nowrap;
}
.s-in_progress, .s-running { color: var(--info); }
.s-awaiting_approval, .s-waiting_input, .s-proposing { color: var(--accent); }
.s-review, .s-done { color: var(--ok); }
.s-blocked, .s-failed, .s-stalled, .s-rate_limited { color: var(--danger); }
.flash { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border: 1px solid var(--danger); border-radius: var(--radius); padding: 10px 14px; }
ul.tasks, ul.projects, ul.events { list-style: none; padding: 0; margin: 0; }
ul.tasks li, ul.projects li {
display: flex; gap: 10px; align-items: center; justify-content: space-between;
padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin: 6px 0;
}
ul.tasks li a, ul.projects li a { color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
ul.events li { padding: 3px 0; border-bottom: 1px dashed var(--border); overflow-wrap: anywhere; }
details { margin: 8px 0; }
summary { cursor: pointer; color: var(--accent); }
pre.md {
white-space: pre-wrap; background: var(--code-bg); border-radius: 8px; padding: 12px;
max-height: 32em; overflow: auto;
}
.login { max-width: 420px; margin: 18vh auto; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.login h1 { font-size: 2rem; justify-content: center; }
@media (max-width: 640px) {
main { padding: 16px; }
.top { padding: 10px 16px; gap: 12px; flex-wrap: wrap; }
.top nav { order: 3; flex-basis: 100%; }
.me span { display: none; }
ul.tasks li { flex-direction: column; align-items: flex-start; }
}