Skip to content

Commit 907f17f

Browse files
committed
Footer: add 1.25rem horizontal padding to align bars with hero edges
The hero is inside .site-main (which has padding: 1rem 1.25rem 0.2rem), so its rendered width is 975px - 40px = 935px. The footer was outside site-main with no horizontal padding, making its bars span the full 975px. Add the matching 1.25rem horizontal padding to .site-footer so the bar pair aligns to the same pixel column as the hero banner — ~3% narrower than before, which is exactly what was requested.
1 parent 1d6dd1c commit 907f17f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

assets/css/style.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ details.show-more {
736736
.site-footer {
737737
max-width: $container;
738738
margin: 0.1rem auto 0.4rem;
739-
padding: 0 0 0.4rem;
739+
/* Match the horizontal padding of .site-main so the footer bars line up
740+
under the hero banner's edges to the pixel. */
741+
padding: 0 1.25rem 0.4rem;
740742
}
741743

742744
/* Two-tone bars aligned with the hero banner: dark gradient on the left

0 commit comments

Comments
 (0)