peppa/apps/web/app/globals.css
Асель c24b9b83be PEP-15: where the project's repo is in Gitea — link, visibility, namespace
- New project form: namespace (personal/org) and visibility (private/public) with hints
- provisionProject creates the repo with the chosen visibility (existing repo keeps its own)
- After creation: notice with "Открыть в Gitea"; project page "Репозиторий" block:
  path, namespace kind, visibility, who can see it (read live from Gitea, cached 60 s)
- Members without repo access are marked; owner can grant access to all members
- MCP create_project takes visibility and returns repo URL + who sees it; list_projects shows URLs
- CLI --public, /help, mock-gitea (visibility, /orgs, collaborators), e2e repo-visibility

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 14:12:07 +05:00

190 lines
8.9 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, .me > a { color: var(--muted); }
.top nav a.active, .me > a.active { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.top nav a:hover, .me > a:hover { color: var(--text); text-decoration: none; }
h2 .more { font-size: 0.85rem; font-weight: 400; margin-left: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.filters a { padding: 4px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); }
.filters a:hover { text-decoration: none; border-color: var(--muted); }
.filters a.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.session header.row { flex-wrap: wrap; row-gap: 2px; }
.session header .mono { white-space: nowrap; }
.session .title { flex: 1 1 12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.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); }
.notice { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
.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;
}
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.board.busy { opacity: 0.6; pointer-events: none; }
.col { background: color-mix(in srgb, var(--border) 35%, var(--bg)); border-radius: var(--radius); padding: 8px; min-height: 120px; }
.col.over { outline: 2px dashed var(--accent); }
.col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 4px 8px; color: var(--muted); }
.hint { font-size: 0.75rem; margin: -4px 4px 8px; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin: 6px 0; cursor: grab; display: flex; flex-direction: column; gap: 6px; }
.tcard a { color: var(--text); }
.tcard .goal { font-size: 0.75rem; flex-basis: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.small { font-size: 0.78rem; padding: 3px 8px; }
details.add { margin: 4px 0; }
.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%; overflow-x: auto; }
.me span { display: none; }
.session form.grow { flex-basis: 100%; }
ul.tasks li { flex-direction: column; align-items: flex-start; }
.board { grid-template-columns: 1fr; }
}
.consent { text-align: left; align-items: stretch; }
.consent h1 { justify-content: flex-start; }
.scopes { margin: 0; padding-left: 20px; }
.mcp-url { display: block; padding: 10px 12px; background: var(--code-bg); border-radius: 8px; overflow-x: auto; }
.ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); border-radius: var(--radius); padding: 10px 14px; }
.help ul { padding-left: 20px; }
.help li { margin: 4px 0; }
.say { margin: 6px 0; font-style: italic; }
table.tools { width: 100%; border-collapse: collapse; }
table.tools td { border-top: 1px solid var(--border); padding: 6px 8px; vertical-align: top; }
table.tools td.mono { white-space: nowrap; }
@media (max-width: 640px) { table.tools td.mono { white-space: normal; overflow-wrap: anywhere; } }
ul.members { list-style: none; padding: 0; margin: 0 0 10px; }
ul.members li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.foot { max-width: 960px; margin: 0 auto; padding: 16px 24px 32px; font-size: 0.8rem; text-align: center; }
dl.repo { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
dl.repo dt { color: var(--muted); }
dl.repo dd { margin: 0; }