Curves draw the rules they land in; tabs for folded and scrolled panes; peek on both axes

- A curve runs on along the rule under its pane's title (any kind of pane: section, page, article,
  article section) and draws it, the pane's own rule left out, so the two are one stroke, set on
  device pixels (the curves' layer measured from its whole pixel; a hairline is one device pixel).
- The landing: the title's rule when it shows, else the tab's foot, whether the pane is folded down
  its column or scrolled past its title. A pane scrolled past its title shows its tab at its top
  (an observer on the rule, nothing per scroll or key).
- A curve out of a folded pane whose source is out of sight leaves from the end of its tab's foot,
  solid, the foot drawn with it; the stacked pane's own top edge under it is left out.
- Colours: the panes' and curves' colour came out as the neutral ink on every curve (a selector
  outweighed the colour's); the neutral is nearer the text's ink. Colour depends on the tree only.
- A covered pane peeks out across and down at once, and stays out while the wheel scrolls it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 20:38:59 -05:00
1 parent 66d25eea7f
commit 8f6afaecdd
6 files changed
+643 -94

No files matched your search

+35 -14
View File
@@ -417,6 +417,10 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
.tabline .tabtitle { overflow: hidden; text-overflow: ellipsis; }
.tabline:hover { color: var(--fg); }
.col.crowded > .pane[data-covered] > .tabline { opacity: 1; pointer-events: auto; }
/* A pane scrolled past its own title shows its tab at its top as well, over its text (Panes.tsx watchHead). */
.pane[data-scrolled] > .tabline { opacity: 1; pointer-events: auto; }
.pane[data-scrolled] > .pane-ctl { top: 2px; }
.pane[data-scrolled] > .grip { display: none; }
@media (prefers-reduced-motion: reduce) {
.tabline { transition: none; }
}
@@ -427,6 +431,8 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
/* Peeking: a covered pane or column, the mouse resting on it, raised over its neighbours whole. */
.col[data-peek], .pane[data-peek] { z-index: 6; box-shadow: 0 3px 18px 0 var(--shade); }
.col[data-peek] .spine, .col.crowded > .pane[data-peek] > .tabline { opacity: 0; pointer-events: none; }
/* The wheel over what peeks scrolls its text, not the column under it. */
.col[data-peek] .pane-scroll, .pane[data-peek] > .pane-scroll { overscroll-behavior: contain; }
/* Dragging a pane in its column: its grip, quiet until pointed at; the line where it will go. */
.grip { position: absolute; z-index: 3; top: 0; left: var(--spine); right: 4.6rem; height: 1.15rem; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
@@ -458,7 +464,7 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
/* The curves: from what each pane was opened from to its title, behind nothing but in the gaps between lines. */
/* A layer of its own, so that drawing a curve again does not paint the panes under it again. */
.curves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden; will-change: transform; }
.curves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden; }
.curves path { fill: none; stroke: var(--curve); stroke-width: 1; }
.curves path.on { stroke: var(--curve-on); }
.curves path.lost { stroke-dasharray: 1 3; }
@@ -479,7 +485,8 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
--hue-4: oklch(60% 0.1 210);
--hue-5: oklch(60% 0.1 120);
--hue-6: oklch(60% 0.1 255);
--curve-ink: rgb(0 0 0 / 0.42);
/* The first trail's, near the text's ink. */
--hue-none: oklch(50% 0 0);
}
@media (prefers-color-scheme: dark) {
:root {
@@ -490,9 +497,10 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
--hue-4: oklch(74% 0.085 210);
--hue-5: oklch(74% 0.085 120);
--hue-6: oklch(74% 0.085 255);
--curve-ink: rgb(255 255 255 / 0.42);
--hue-none: oklch(80% 0 0);
}
}
:where(.pane, .curves path) { --hue: var(--hue-none); }
[data-hue="0"] { --hue: var(--hue-0); }
[data-hue="1"] { --hue: var(--hue-1); }
[data-hue="2"] { --hue: var(--hue-2); }
@@ -501,15 +509,28 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
[data-hue="5"] { --hue: var(--hue-5); }
[data-hue="6"] { --hue: var(--hue-6); }
/* Fainter off the focused branch. Both are fixed per pane, so moving the branch changes no custom property (which every element in the pane would inherit). */
[data-hue] { --hue-faint: color-mix(in oklab, var(--hue) 70%, transparent); }
.panes:not([data-colors="off"]) .curves path[data-hue] { stroke: var(--hue-faint); }
.panes:not([data-colors="off"]) .curves path.on[data-hue] { stroke: var(--hue); }
.panes:not([data-colors="off"]) .curves path.on:not([data-hue]) { stroke: var(--curve-ink); }
/* line */
[data-colors="line"] .pane[data-hue] > .pane-scroll > .pane-body > :is(.pane-head:not(.focused), .top:not(.focused) h1, .wiki:not(.embedded) > .wiki-head:not(.focused)),
[data-colors="line"] .pane[data-hue] > .tabline { border-bottom-color: var(--hue-faint); }
[data-colors="line"] .pane.on-branch[data-hue] > .pane-scroll > .pane-body > :is(.pane-head:not(.focused), .top:not(.focused) h1, .wiki:not(.embedded) > .wiki-head:not(.focused)),
[data-colors="line"] .pane.on-branch[data-hue] > .tabline { border-bottom-color: var(--hue); }
.pane, .curves path { --hue-faint: color-mix(in oklab, var(--hue) 70%, transparent); }
.panes:not([data-colors="off"]) .curves path { stroke: var(--hue-faint); stroke-width: var(--hair, 1px); }
.panes:not([data-colors="off"]) .curves path.on { stroke: var(--hue); }
/*
* line: the curve runs on into the rule under the pane's title, or its tab's foot, and draws that
* rule itself (Panes.tsx curves; the pane's own is left out, data-ruled), so the two are one stroke.
* Where no curve lands (curves off, a covered source), the pane's own rule takes its colour.
*/
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .pane-head:not(.focused),
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .top:not(.focused) h1,
:where([data-colors="line"] .pane[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head:not(.focused),
:where([data-colors="line"] .pane[data-hue]) > .tabline { border-bottom-color: var(--hue-faint); }
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .pane-head:not(.focused),
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .top:not(.focused) h1,
:where([data-colors="line"] .pane.on-branch[data-hue]) > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head:not(.focused),
:where([data-colors="line"] .pane.on-branch[data-hue]) > .tabline { border-bottom-color: var(--hue); }
.pane[data-ruled~="head"] > .pane-scroll > .pane-body > .pane-head,
.pane[data-ruled~="head"] > .pane-scroll > .pane-body > .top h1,
.pane[data-ruled~="head"] > .pane-scroll > .pane-body > .wiki:not(.embedded) > .wiki-head,
.pane[data-ruled~="tab"] > .tabline { border-bottom-color: transparent; }
/* Under a tab's foot drawn by a curve, the stacked pane's own top edge would double it. */
.col.crowded > .pane[data-ruled~="tab"] + .pane[data-over]::before { background: transparent; }
[data-colors="line"] .pane[data-hue] > .spine::before { content: ""; position: absolute; top: 1.72rem; left: 50%; width: 0.9rem; margin-left: -0.45rem; height: 1px; background: var(--hue-faint); }
[data-colors="line"] .pane.on-branch[data-hue] > .spine::before { background: var(--hue); }
.col.crowded > .pane[data-covered] > .spine::before { display: none; }
@@ -795,6 +816,8 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
background: var(--bg); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transform: rotate(45deg);
}
.selbar.below::after { bottom: auto; top: -5px; transform: rotate(225deg); }
/* In the panes view the bar is set in its pane, so a pane or column over that pane covers it too. */
.pane > .selbar { position: absolute; }
/* The ⋯ by a row, a pane's head, a page's head or a note: invisible until wanted, never moving the text. */
.more {
@@ -816,8 +839,6 @@ kbd, .help code { font-family: var(--mono); font-size: 0.86em; border: 1px solid
:is(.sidenote, .inset) > .more { position: absolute; top: 0.15rem; right: 0.15rem; margin: 0; font-size: 0.82rem; }
.inset { position: relative; }
/* A pane's own ⋯ stands for its page's. */
/* In the panes view the bar is set in its pane, so a pane or column over that pane covers it too. */
.pane > .selbar { position: absolute; }
.pane .top .more { display: none; }
.pane-btn.more { display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--sans); font-size: 0.8rem; line-height: 1; letter-spacing: 0.04em; }
.pane-btn.more[aria-expanded="true"] { color: var(--fg); background: var(--sel); }