Fit the site to a phone, and show the build in the footer - #53
Merged
Merged
Conversation
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 site had no working phone layout. At 390px and 320px wide, every page was 488px wide and scrolled sideways, and the docs sidebar pushed the page title 606px down. This applies the fix made for the accent-sass site in zoosky/accent-sass#113, and adds the same build line to the footer.
Changes
scroll-padding-topgrows to match the taller header, so anchor jumps aren't hidden under it.<details>menu. Below 940px it collapses to one line showing the current page. A short inline script closes it before first paint, so the page doesn't jump. Without JavaScript, the menu stays open. On desktop the summary is hidden and the sidebar looks as before.Built with Accent CMS 0.25.1 (d7ed19b) · Last updated 2026-09-13. The version comes fromaccent.version_stringand the date fromsite.built_at. File dates aren't used, because a CI checkout gives every file the checkout time. Thedatefilter passesbuilt_atthrough unformatted, so the template takes the first ten characters.Measured
Built with Accent v0.25.1, the version
pages.ymlpins, and served withaccent serve-static --base-path /accent-proust. Pages were loaded in 390px and 320px iframes, and every element extending past the viewport was listed.The output header was clipped on desktop too, not only on a phone. At 1280px with the old
nowrap, the tabs need more room than the pane has. With wrapping, the header takes two rows (81px instead of 48px) and nothing is cut off.Not done
--skip-wasm), so the engine didn't run in the local check. The layout doesn't depend on it.pages.ymlstays at v0.25.1.