Repository navigation
The board wears the docs site's logo and fonts; the item page gets scroll to the top buttons and full-width sides - #51
Merged
Conversation
Once the text or the documents have scrolled, a round button with a triangle shows over that side's bottom right corner and scrolls it back to its top; on hover it says "scroll to the top". Stacked on a narrow window, where the page scrolls, one such button scrolls the page.
Light on dark and dark on light, so it stands out in either theme; the accent colour on hover.
The nav shows primum's logo, the three bars, before its name, set in the logo's own font as on the docs site, and the tab shows the same mark as its icon (static/favicon.svg, a copy of the docs site's, as docs/ is not in the crate; a test keeps the two the same). The pages use the docs site's fonts, Starlight's system stacks, held once in chrome.css as --font and --font-mono.
The page kept 16px of padding on each side, so the two sides stopped short of the window and the documents' scrollbar sat 16px in from its edge. The sides now run edge to edge and keep the inset inside them.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The nav shows primum's logo before its name, the tab shows it as its icon, and the pages use the docs site's fonts. Each side of the item page gets a round button back to its top once it has scrolled, and the two sides now run to the window's edges, so the documents' scrollbar is the window's.