vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Keep the docs shell still while the article scrolls
a01724266be31c99cf2bb9f63d1a324ddf6ff6fa · Keenan Nemetz · 20d ago · parent 59edfa98
Keep the docs shell still while the article scrolls The top bar was position: sticky and translucent, so the page kept drawing through it as it scrolled: the bar looked like it moved even when its box did not, and in Firefox the blurred backdrop of a fixed bar is the least reliable compositing path there is. Body is now one viewport tall with overflow: hidden, the bar is position: fixed and opaque, and .content, .sidebar, and .toc each scroll inside their own column. Nothing is drawn under the bar because the document never scrolls. The footer moves inside the article column, fragment jumps take their offset from the pane's scroll-padding-top, and a print block undoes the shell so a long article still prints whole.
docs-theme/README.md +11
| @@ -18,6 +18,17 @@ visual language (and another dependency) to keep in step. | |||
| 18 | 18 | | `assets/vole-head*.png` | Brand mark, copied from `server/web/static/` | | |
| 19 | 19 | | `assets/favicon*` | Favicons, copied from `server/web/static/` | | |
| 20 | 20 | ||
| 21 | The page is a shell, not a scrolling document. `body` is one viewport tall with | ||
| 22 | `overflow: hidden`, the top bar is `position: fixed`, and `.content`, `.sidebar`, | ||
| 23 | and `.toc` each scroll inside their own column. That is what keeps the bar and | ||
| 24 | the navigation still while long articles move, and it is why nothing is drawn | ||
| 25 | under the bar. A new scrollable region needs `overscroll-behavior: contain`, or a | ||
| 26 | wheel over it chains to whatever is behind it. | ||
| 27 | |||
| 28 | Because the article pane owns the scroll, the page footer lives inside `.content` | ||
| 29 | and travels with the text; `html`'s `scroll-padding-top` no longer applies to | ||
| 30 | fragment jumps, so the pane carries its own `scroll-padding-top`. | ||
| 31 | |||
| 21 | 32 | The `:root` block in `assets/docs.css` is the Everforest dark/medium token set | |
| 22 | 33 | from `server/web/static/everforest.css` with the layout tokens from | |
| 23 | 34 | `server/web/static/vole.css`. A change to the forge palette belongs in both | |