Files
plan2code/src/web-console/public/styles/docs.css
T

62 lines
2.9 KiB
CSS

/* docs.css: Documents and the doc tools. */
/* --------------------------------------------------------------- docs */
.doc-head {
max-width: min(var(--card-width), 100%);
display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
/* Stays put while the document scrolls under it. The ::before paints over
the pane's own padding, so nothing shows through above the row. */
position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.doc-head::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 24px; background: var(--bg); }
.doc-version { font: 700 12px/1 var(--mono); color: var(--ink-3); }
.block { max-width: min(var(--card-width), 100%); border-left: 3px solid transparent; padding: 2px 0 2px 14px; margin: 0 auto 4px; position: relative; }
.block.assumed {
border-left-color: var(--stage);
border-left-style: dashed;
background: var(--stage-soft);
border-radius: 0 8px 8px 0;
}
.block.draft { border-left-color: var(--rule-2); opacity: 0.72; }
.block.settled { border-left-color: var(--ok-soft); }
.block .md { max-width: none; }
.block-tag {
font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
color: var(--stage); display: block; margin-bottom: 4px;
}
.doc-empty { color: var(--ink-3); font-style: italic; }
/* ----------------------------------------------------------- doc tools */
.doc-tools { display: flex; gap: 8px; margin-left: auto; flex: none; align-items: center; }
.btn.back-home { border-color: var(--accent); color: var(--accent); }
.btn.back-home:hover { background: var(--accent-soft); }
.doc-saved { font-size: 12px; color: var(--ink-3); }
.doc-saved code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.doc-head { align-items: center; }
/* ------------------------------------------------------ prototypes tab */
/* The spec's saved prototypes: one row per .md (read here) or .html (opens
in the browser), as wide as a doc. */
.proto-list { list-style: none; margin: 0 auto; padding: 0; max-width: min(var(--card-width), 100%); display: grid; gap: 8px; }
.proto-open {
width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px;
background: var(--panel); color: var(--ink); font: inherit; cursor: pointer;
}
.proto-open:hover, .proto-open:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.proto-kind {
flex: none; min-width: 44px; text-align: center; padding: 3px 6px; border-radius: 6px;
font: 700 10.5px/1.2 var(--mono); letter-spacing: 0.05em; border: 1px solid var(--rule-2); color: var(--ink-2);
}
.proto-kind-html { border-color: var(--accent); color: var(--accent); }
.proto-name { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.proto-how { flex: none; font-size: 12px; color: var(--ink-3); }