Commit Graph

7 Commits

Author SHA1 Message Date
Brummel 8d961dbe88 Revert "fix(carousel): remove flexslider, restore Bootstrap carousel symmetry"
This reverts commit 96eea20c97.
2026-05-21 11:40:36 +02:00
Brummel e4a90646de Revert "fix(js): remove dead testimonialSlider/flexslider call from scripts.js"
This reverts commit 59c3bae5b2.
2026-05-21 11:40:36 +02:00
Brummel f0173b80a2 Revert "fix(carousel): initialize Bootstrap carousels explicitly instead of relying on data-ride auto-init"
This reverts commit ad9b978248.
2026-05-21 11:40:36 +02:00
Brummel ad9b978248 fix(carousel): initialize Bootstrap carousels explicitly instead of relying on data-ride auto-init 2026-05-21 11:39:06 +02:00
Brummel 59c3bae5b2 fix(js): remove dead testimonialSlider/flexslider call from scripts.js
After the flexslider asset removal, scripts.js still tried to call
$('.testimonialSlider').flexslider(...) which threw a TypeError in the
browser console on every page. The element does not exist in this
rebuild and never will — testimonials were a feature of the original
Grav theme that we are not porting. Hero carousel and employees
carousel are both Bootstrap-3, auto-initialized via data-ride.

No functional impact on the page (every initializer before this block
already ran), just a noisy console error.
2026-05-21 11:33:51 +02:00
Brummel 96eea20c97 fix(carousel): remove flexslider, restore Bootstrap carousel symmetry
Root cause of the home carousel indicator dots drifting apart on slide
change: flexslider.css adds a rule `.carousel li { margin-right: 5px }`
that bleeds into Bootstrap's carousel because both use the `.carousel`
class. With Bootstrap's `.active { margin: 0 }` overriding the active
dot but flexslider's `margin-right: 5px` still applying to the inactive
dot, the gap between the two dots is asymmetric — 1px when active is on
the left, ~9px (1+4+4) when active is on the right.

Live's Grav asset pipeline doesn't bundle that flexslider rule (the
live HTML uses Bootstrap carousel exclusively too), so the bug is
stage-only.

We don't actually use flexslider — testimonialSlider was the only
target in scripts.js and it doesn't exist in our markup. Drop the css
link, the js script tag, and the static assets. Also revert the
previous attempt that forced active dots to inactive geometry; with
flexslider gone, Bootstrap's design (active 12px margin 0 + inactive
10px margin 1 → both outer 12px) keeps positions stable on its own,
which matches the live behavior the user observed.
2026-05-21 11:30:37 +02:00
Brummel cce90b341b feat: import JS assets from x-corporation and praxis themes 2026-05-20 22:28:31 +02:00