CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 7s
CI & Build / integration (push) Successful in 17s
CI & Build / TypeScript typecheck (push) Successful in 34s
CI & Build / Python tests (push) Successful in 48s
CI & Build / Build & push image (push) Successful in 37s
#2533. theme.css claimed "removing this block is a rename sweep across the
components, tracked separately" — written in 67a529a, never filed, which made
the comment itself an instance of the survey's presence-without-reference
pattern. This is that sweep.
73 alias declarations deleted; 69 files rewritten; every --color-*-style name
now references its --fs-* token directly. Mechanical by construction: the map
IS the alias block, applied longest-name-first with a boundary guard so
--color-text never matched inside --color-text-muted. Zero survivors outside
theme.css, verified by grep rather than assumed.
One deliberate survivor: --color-shadow stays DECLARED, because it was never
an alias — it is a literal value the design system has no token for. Marked
in place as a recorded gap: promote it to an --fs-* token when a second app
needs it, don't copy the line.
Nothing is lost mode-wise: the aliases' resolve-at-use-time trick (which
absorbed 48 dark-mode overrides) lives one layer down in the --fs-* tokens'
own derivations, which is why the sweep is a pure rename. Both CSS checkers
green.
Why now rather than never: check_snippets_against_design_system reports every
--color-* reference as "unknown — renders as NOTHING", and nine recipe
snippets recorded from components.css carried the deprecated names, making
them prior art pointing the wrong way. With the sweep in, the checker's
report over re-recorded snippets should be EMPTY — the acceptance test that
proves the checker was right all along (#2517's correction).
Refs #2533
239 lines
4.4 KiB
CSS
239 lines
4.4 KiB
CSS
.prose {
|
|
/* Long-form reading line-height per the design system —
|
|
reading surfaces (notes, tasks, journal, assistant bubbles) want 1.7
|
|
so prose breathes like a book, not a UI snippet. */
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.prose h1 {
|
|
margin: 1.25rem 0 0.5rem;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.prose h2 {
|
|
margin: 1rem 0 0.4rem;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.prose h3 {
|
|
margin: 0.75rem 0 0.3rem;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.prose h4,
|
|
.prose h5,
|
|
.prose h6 {
|
|
margin: 0.5rem 0 0.25rem;
|
|
}
|
|
|
|
.prose p {
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
|
|
.prose ul,
|
|
.prose ol {
|
|
margin: 0 0 0.6rem;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
.prose li {
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.prose pre {
|
|
background: var(--fs-surface-code);
|
|
border: 1px solid var(--fs-border-color);
|
|
border-radius: 6px;
|
|
padding: 0.75rem;
|
|
overflow-x: auto;
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
|
|
.prose pre code {
|
|
background: none;
|
|
padding: 0;
|
|
border-radius: 0;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.prose code {
|
|
background: var(--fs-surface-code-inline);
|
|
border-radius: 3px;
|
|
padding: 0.15rem 0.35rem;
|
|
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
|
|
"Liberation Mono", monospace;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.prose table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 0 0 0.6rem;
|
|
}
|
|
|
|
.prose th,
|
|
.prose td {
|
|
border: 1px solid var(--fs-border-color);
|
|
padding: 0.4rem 0.6rem;
|
|
text-align: left;
|
|
}
|
|
|
|
.prose thead th {
|
|
background: var(--fs-surface-raised);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.prose tbody tr:nth-child(even) {
|
|
background: var(--fs-table-stripe);
|
|
}
|
|
|
|
.prose blockquote {
|
|
border-left: 3px solid var(--fs-border-color);
|
|
margin: 0 0 0.6rem;
|
|
padding: 0.25rem 0 0.25rem 0.75rem;
|
|
color: var(--fs-text-secondary);
|
|
}
|
|
|
|
.prose blockquote p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.prose hr {
|
|
border: none;
|
|
border-top: 1px solid var(--fs-border-color);
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
.prose img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.prose a {
|
|
color: var(--fs-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.prose a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.prose .inline-tag {
|
|
color: var(--fs-accent);
|
|
background: var(--fs-accent-soft);
|
|
padding: 0.1rem 0.35rem;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.prose .inline-tag:hover {
|
|
filter: brightness(0.9);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.prose .wikilink {
|
|
color: var(--fs-wikilink);
|
|
background: var(--fs-accent-soft);
|
|
padding: 0.1rem 0.35rem;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-size: 0.9em;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.prose .wikilink:hover {
|
|
filter: brightness(0.9);
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Task list */
|
|
.prose ul[data-type="taskList"] {
|
|
list-style: none;
|
|
padding-left: 0.25rem;
|
|
}
|
|
|
|
.prose ul[data-type="taskList"] li {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.2rem;
|
|
}
|
|
|
|
.prose ul[data-type="taskList"] li > label {
|
|
flex-shrink: 0;
|
|
user-select: none;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.prose ul[data-type="taskList"] li > label input[type="checkbox"] {
|
|
cursor: pointer;
|
|
accent-color: var(--fs-accent);
|
|
width: 0.95em;
|
|
height: 0.95em;
|
|
margin: 0;
|
|
}
|
|
|
|
.prose ul[data-type="taskList"] li > div {
|
|
flex: 1;
|
|
}
|
|
|
|
.prose ul[data-type="taskList"] li[data-checked="true"] > div {
|
|
text-decoration: line-through;
|
|
color: var(--fs-text-tertiary);
|
|
}
|
|
|
|
/* Interactive checkboxes — marked output in the list-note viewer */
|
|
.prose--checklist ul {
|
|
list-style: none;
|
|
padding-left: 0.25rem;
|
|
}
|
|
.prose--checklist li {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.prose--checklist li input[type="checkbox"] {
|
|
flex-shrink: 0;
|
|
accent-color: var(--fs-accent);
|
|
cursor: pointer;
|
|
width: 0.95em;
|
|
height: 0.95em;
|
|
margin: 0;
|
|
}
|
|
.prose--checklist li:has(input[type="checkbox"]:checked) > p,
|
|
.prose--checklist li:has(input[type="checkbox"]:checked) {
|
|
text-decoration: line-through;
|
|
color: var(--fs-text-tertiary);
|
|
}
|
|
.prose--checklist li:has(input[type="checkbox"]:checked) input[type="checkbox"] {
|
|
text-decoration: none; /* don't strike through the checkbox itself */
|
|
}
|
|
|
|
/* Tiptap editor */
|
|
.tiptap-editor .ProseMirror {
|
|
outline: none;
|
|
min-height: 200px;
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.tiptap-editor .ProseMirror p.is-editor-empty:first-child::before {
|
|
color: var(--fs-text-tertiary);
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tiptap-wrapper {
|
|
border: 1px solid var(--fs-border-color);
|
|
border-radius: var(--fs-radius-sm);
|
|
background: var(--fs-surface-raised);
|
|
color: var(--fs-text-primary);
|
|
}
|
|
|
|
.tiptap-wrapper:focus-within {
|
|
box-shadow: var(--fs-focus-ring);
|
|
}
|