intent/static/css/intent.css
Alec Perkins b9378b8397 Add projects and features with revision history (Phase 2)
Projects under organizations with fixed URL name and feature ID
prefix, three visibility levels, open contribution, per-project
roles, settings and typed-confirmation delete. Hidden projects 404.
Leaving an org drops its project roles. Project access rules live in
intent/access.py alongside org access.

Features numbered per project (INT-12) in a tree. Every change is a
revision with a required note; history, old revisions, and
side-by-side field and line diffs between any two. Cycles and
superseded-without-replacement are rejected. Markdown renders safely
with source-line attributes for Phase 3 line comments and headings
shifted below the page h1. Server-side preview works without JS.

Structural accessibility check runs on every page in tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 07:58:16 -04:00

122 lines
1.6 KiB
CSS

/*
* Intent's whole stylesheet: a thin layer over browser defaults.
* If this file fails to load, layout should suffer but look-and-feel should not.
* Colors come from the browser via color-scheme; no custom palette.
*/
:root {
color-scheme: light dark;
}
:root[data-theme="light"] {
color-scheme: light;
}
:root[data-theme="dark"] {
color-scheme: dark;
}
body {
max-width: 72rem;
margin: 0 auto;
padding: 0 1rem;
line-height: 1.5;
}
header,
footer {
padding-block: 1rem;
}
nav ul {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem 1.5rem;
margin: 0;
padding: 0;
list-style: none;
}
nav form {
margin: 0;
}
.breadcrumb {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin: 0 0 0.5rem;
padding: 0;
list-style: none;
}
.breadcrumb li + li::before {
content: "/";
content: "/" / "";
margin-inline-end: 0.5rem;
}
textarea {
box-sizing: border-box;
width: 100%;
max-width: 80ch;
}
table {
border-collapse: collapse;
}
.diff tbody + tbody {
border-top: 1px solid;
}
.diff td:last-child {
white-space: pre-wrap;
font-family: monospace;
}
th,
td {
padding: 0.25rem 0.75rem 0.25rem 0;
text-align: start;
vertical-align: top;
}
p,
li,
dd {
max-width: 70ch;
}
img {
max-width: 100%;
height: auto;
}
:focus-visible {
outline: 2px solid currentColor;
outline-offset: 2px;
}
.skip-link {
position: absolute;
left: -100vw;
}
.skip-link:focus {
position: static;
}
.muted {
color: color-mix(in srgb, CanvasText 70%, Canvas);
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}