CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 1m48s
CI & Build / integration (push) Successful in 2m7s
CI & Build / Build & push image (push) Successful in 36s
A cited #N, milestone N or rule N in a rendered body now reads as the record's title followed by its number, muted, so a reader knows what is cited without hovering. The stored text stays #N and the title is read at render: every existing record benefits and an edited title shows wherever it is cited. Titles past 60 characters are shortened at a word, with the full kind, title and status in the tooltip. A reference whose paragraph already names the record (a batch writes #9 "Step two") keeps the bare number, as does one the reader cannot open. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
278 lines
5.6 KiB
CSS
278 lines
5.6 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;
|
|
}
|
|
|
|
/* A record reference — `#4286`, `milestone 639`, `rule 34`. Reads as a link in
|
|
running text rather than a chip: a work log cites a dozen of them, and a row
|
|
of pills would drown the sentence they sit in. */
|
|
.record-ref {
|
|
color: var(--fs-wikilink);
|
|
text-decoration: underline;
|
|
text-decoration-color: color-mix(in srgb, var(--fs-wikilink) 40%, transparent);
|
|
text-underline-offset: 0.15em;
|
|
font-variant-numeric: tabular-nums;
|
|
border-radius: var(--fs-radius-sm);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.record-ref:hover {
|
|
text-decoration-color: currentColor;
|
|
}
|
|
|
|
/* Drawn with its title: the title reads as the link, the number after it is
|
|
the citation, quieter and never split across lines. */
|
|
.record-ref__id {
|
|
color: var(--fs-text-secondary);
|
|
font-size: 0.85em;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.record-ref:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--fs-focus-ring);
|
|
}
|
|
|
|
/* One the reader cannot open: missing, trashed or not shared. Still legible —
|
|
the number is part of the sentence — but plainly not a way through. */
|
|
.record-ref--missing {
|
|
color: var(--fs-text-tertiary-fg);
|
|
text-decoration-style: dashed;
|
|
text-decoration-color: var(--fs-text-tertiary);
|
|
cursor: default;
|
|
}
|
|
|
|
/* 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);
|
|
}
|