Skip to content

Commit 595bdd2

Browse files
committed
Home seam alignment: trim trailing whitespace from logo_home + shrink bars to 100%
Confirmed via pixel sampling that logo_home.png has trailing whitespace on the right (~5% of width) past where the dark gray block ends — this is what the user spotted. Two-part fix: 1. Lightly trim logo_home.png (1022 -> 1015 px wide) to drop the few pure-white columns at the very right edge. Aspect-ratio CSS updated to 1015 / 348 so the container's intrinsic shape matches. 2. .home-divider-bars: width 105% -> 100% (drops the breakout that was matching .home-stage). The banner stays at 105% breakout, and the bars + callouts + institutional logos all sit at the regular site-main width — visually 5% narrower than the banner, which compensates for the source image's right-edge dead zone. 3. .home-divider-bars .bar-dark: 65.45% -> 67.45%. Math: the photo/gray seam is at 64.24% of the trimmed banner. Banner is at 105% of site-main, so seam in absolute coords is 64.24% * 105% = 67.45% of site-main; with bars at 100% of site-main, bar-dark of 67.45% lands at the same absolute X column as the banner seam.
1 parent b8a67d6 commit 595bdd2

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

assets/css/style.scss

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
283283

284284
.home-banner {
285285
width: 100%;
286-
aspect-ratio: 1022 / 348;
286+
/* logo_home.png was lightly trimmed (1022 -> 1015 px wide) to drop the
287+
trailing pure-white pixels at the right edge. Aspect ratio matches
288+
the trimmed dimensions. */
289+
aspect-ratio: 1015 / 348;
287290
background: url("{{ '/assets/images/site/public/logo_home.png' | relative_url }}") no-repeat center top / 100% auto;
288291
border-radius: 2px;
289292
}
@@ -305,18 +308,22 @@ hr { border: 0; border-top: 1px dotted $text-faint; margin: 2rem 0; }
305308
/* Two horizontal decorative bars (sliced from nav_banners.png) */
306309
.home-divider-bars {
307310
display: flex;
308-
/* Match the home-stage breakout so the bars span the same horizontal
309-
extent as the hero, and the dark/light seam aligns with the
310-
photo/gray seam in logo_home.png. */
311-
width: 105%;
312-
margin: 1rem -2.5% 1.5rem;
311+
/* Sit at the regular site-main width while the banner above retains
312+
its 5% breakout — visually compensates for the right-edge whitespace
313+
the source PNG has baked in beyond the gray block. The bars (and
314+
the callouts + institutional logos below) all live at the same
315+
'inner' width. */
316+
width: 100%;
317+
margin: 1rem auto 1.5rem;
313318
max-width: none;
314319
height: 39px;
315320
}
316-
/* The dark/light seam sits ~5% to the left of where the photo/gray seam
317-
actually lands in the rendered banner — set to 65.45% so the bar
318-
seam visually aligns with the banner seam. */
319-
.home-divider-bars .bar-dark { flex: 0 0 65.45%; }
321+
/* Math: the photo/gray seam in the trimmed image is at x=652 of 1015
322+
= 64.24% of banner width. Banner is at 105% of site-main, so the
323+
seam in absolute coords is at 64.24% × 105% = 67.45% of site-main.
324+
Bars are at 100% of site-main, so bar-dark of 67.45% lands at the
325+
same absolute X as the banner seam. */
326+
.home-divider-bars .bar-dark { flex: 0 0 67.45%; }
320327
.home-divider-bars .bar-light { flex: 1 1 auto; }
321328
.home-divider-bars .bar-dark,
322329
.home-divider-bars .bar-light {
102 KB
Loading

0 commit comments

Comments
 (0)