SPB Git

Repository Public

base.css 9.2 KB 138 lines css

1/**2 * =============================================================================3 * SP BOUCHER | SOURCE FILE4 * =============================================================================5 * Project      : MacLustr Social Engine & Remote Navigator6 * File         : apps/social-web/src/styles/base.css7 * Author       : Simon-Pierre Boucher | https://spboucher.ai8 * Contact      : admin@spboucher.ai9 * Copyright    : (c) 2026 Simon-Pierre Boucher10 * License      : None specified (no license file in this repository)11 * =============================================================================12 * END OF SP BOUCHER SOURCE HEADER13 * =============================================================================14 */1516/* MacLustr Social — a print production ledger: paper, ink, hairlines, one accent. No gradients, no shadows, no blur. */17:root {18  --paper: #f4f1ea; --surface: #fbf9f4; --wash: #ebe6d9;19  --ink: #1a1917; --ink-2: #514d44; --rule: #cbc4b3; --rule-2: #8f897b;20  --accent: #8c2f1b; --accent-ink: #fffaf3;21  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;22  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;23  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;24  --gap: 1rem; --measure: 68ch;25  color-scheme: light;26}27/* Dark is a second palette of its own: warm charcoal paper, bone ink, a lighter terracotta accent. */28@media (prefers-color-scheme: dark) {29  :root:not([data-theme='light']) {30    --paper: #131210; --surface: #1b1a17; --wash: #26241f;31    --ink: #ece7db; --ink-2: #aaa496; --rule: #3d3a31; --rule-2: #6f6a5d;32    --accent: #e39473; --accent-ink: #1c110c;33    color-scheme: dark;34  }35}36:root[data-theme='dark'] {37  --paper: #131210; --surface: #1b1a17; --wash: #26241f;38  --ink: #ece7db; --ink-2: #aaa496; --rule: #3d3a31; --rule-2: #6f6a5d;39  --accent: #e39473; --accent-ink: #1c110c;40  color-scheme: dark;41}4243*, *::before, *::after { box-sizing: border-box; }44html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }45body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); font-variant-numeric: tabular-nums; }46h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }47h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }48h2 { font-size: 1.3rem; }49h3 { font-size: 1.05rem; }50p { margin: 0 0 0.75rem; max-width: var(--measure); }51p:last-child { margin-bottom: 0; }52ul, ol { margin: 0 0 0.75rem; padding-left: 1.2rem; }53a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }54a:hover { color: var(--accent); }55code, pre, .mono { font-family: var(--mono); font-size: 0.875em; }56code { overflow-wrap: anywhere; }57em { color: var(--ink-2); }58img { max-width: 100%; height: auto; display: block; }59hr { border: 0; border-top: 1px solid var(--rule); margin: 1.5rem 0; }60:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }61::selection { background: var(--ink); color: var(--paper); }6263.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }64.small { font-size: 0.875rem; color: var(--ink-2); }65.pre { white-space: pre-wrap; overflow-wrap: anywhere; }66.break { overflow-wrap: anywhere; }67.num { text-align: right; font-variant-numeric: tabular-nums; }68.plain { list-style: none; padding: 0; margin: 0; }69.stack > * + * { margin-top: var(--gap); }70.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }71.lead { color: var(--ink-2); font-size: 1.05rem; }72.loading, .empty { color: var(--ink-2); border-left: 2px solid var(--rule-2); padding: 0.4rem 0 0.4rem 0.8rem; margin: 0.75rem 0; }73.status { min-height: 1.5rem; color: var(--ink-2); margin: 0.5rem 0 0; }74.status:empty { min-height: 0; margin: 0; }75.figure { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 0.25rem 0 0.75rem; }76.crumb { font-size: 0.875rem; margin-bottom: 0.5rem; }77.crumb a::before { content: '← '; }7879/* Buttons: flat, squared, inked. */80button, .btn { font: inherit; font-weight: 500; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 2px; padding: 0.5rem 0.95rem; min-height: 2.75rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; }81button:hover:not(:disabled), .btn:hover { background: var(--wash); color: var(--ink); }82button.primary, .btn.primary { background: var(--ink); color: var(--paper); }83button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--ink-2); color: var(--paper); border-color: var(--ink-2); }84button.danger { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }85button.danger:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); text-decoration: underline; }86button:disabled { cursor: not-allowed; color: var(--rule-2); border-color: var(--rule); border-style: dashed; background: transparent; }87button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }88button.big { font-size: 1.05rem; padding: 0.8rem 1.4rem; }89.small-btn { min-height: 2.25rem; padding: 0.25rem 0.65rem; font-size: 0.875rem; border-color: var(--rule-2); }90.link-btn { border: 0; min-height: 2.75rem; padding: 0 0.5rem; text-decoration: underline; text-underline-offset: 0.18em; }91.link-btn[aria-pressed='true'] { background: transparent; color: var(--ink); font-weight: 700; text-decoration: none; }92@media (pointer: coarse) { .small-btn { min-height: 2.75rem; padding: 0.4rem 0.8rem; } }9394/* Forms */95input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule-2); border-radius: 2px; padding: 0.5rem 0.6rem; min-height: 2.75rem; width: 100%; max-width: 100%; }96textarea { min-height: 4.5rem; resize: vertical; line-height: 1.45; }97input[type='checkbox'], input[type='radio'] { width: 1.15rem; height: 1.15rem; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }98input[type='color'] { width: 2.75rem; padding: 0.15rem; flex: none; }99input[type='file'] { padding: 0.4rem; }100input:disabled, select:disabled, textarea:disabled { background: var(--wash); color: var(--ink-2); border-style: dashed; }101input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--accent); border-width: 2px; }102input.short { width: 8.5rem; }103::placeholder { color: var(--rule-2); opacity: 1; }104fieldset { border: 1px solid var(--rule); border-radius: 2px; padding: 0.75rem 0.9rem; margin: 0 0 var(--gap); min-width: 0; }105legend { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 0.35rem; }106.form { display: grid; gap: var(--gap); margin: 0; }107.form > p { margin: 0; }108.form-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); align-items: start; }109.field { min-width: 0; border: 0; padding: 0; margin: 0; }110.field-wide { grid-column: 1 / -1; }111.field > label { display: grid; gap: 0.3rem; }112.field-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }113.hint { font-size: 0.85rem; color: var(--ink-2); margin: 0.3rem 0 0; }114.check { display: flex; gap: 0.6rem; align-items: flex-start; min-height: 2.75rem; padding: 0.55rem 0; cursor: pointer; }115.check input { margin-top: 0.2rem; }116.inline-form { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: end; }117.inline-form > button { justify-self: start; }118.filters { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: end; margin: 0 0 var(--gap); }119.filters .field { min-width: min(100%, 13rem); }120121/* Tables: ruled like a ledger. */122.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin: 0 0 var(--gap); }123table { border-collapse: collapse; width: 100%; font-size: 0.925rem; }124caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }125th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }126tbody tr:last-child > * { border-bottom: 0; }127thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--ink); white-space: nowrap; vertical-align: bottom; }128tbody th { font-weight: 600; }129th.num, td.num { text-align: right; }130.cell-note { display: block; font-size: 0.75rem; color: var(--ink-2); }131td details summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; min-height: 1.75rem; }132133.json { background: var(--surface); border: 1px solid var(--rule); padding: 0.75rem; overflow: auto; max-height: 28rem; margin: 0.5rem 0; white-space: pre; font-size: 0.8rem; line-height: 1.45; }134.hash { font-size: 0.8rem; color: var(--ink-2); }135.token { display: block; padding: 0.75rem; border: 1px dashed var(--ink); background: var(--surface); font-size: 0.9rem; user-select: all; }136.copy { display: inline-flex; gap: 0.5rem; align-items: center; }137.quote { margin: 0 0 0.75rem; padding: 0.25rem 0 0.25rem 0.9rem; border-left: 3px solid var(--ink); font-family: var(--serif); font-size: 1.05rem; }138
Files main
Menu

Theme