vanilla_respondage/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Tammo ter Hark 4d5f66e1f5 fix(header): non-sticky header touches the top of the page (body padding-top 0px)
The parent vanilla theme.css statically sets body { padding-top: 90px } and
theme.js fixBodyPadding() always sets the inline padding to the header height.
Our fixBodyPaddingSticky() correction cleared the inline style when the header
was not fixed, so the stylesheet's 90px applied and a non-sticky header sat
~90px below the top. Now it sets padding-top: 0px explicitly when the computed
position is not 'fixed' (custom.js loads after theme.js, so this correction
runs last on ready/pjax:scriptcomplete/resize). Regression test
variants/tests/custom_js_sticky.test.js (jsdom): fails on the old code
(padding cleared to ''), passes now; suite 8/8.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-29 12:59:11 +01:00
..
custom.js fix(header): non-sticky header touches the top of the page (body padding-top 0px) 2026-11-29 12:59:11 +01:00