Move demo caption inside .split-comparison, tighten its style

Caption was sitting with a ~56px gap below the labels (32px container
padding-bottom + 24px caption margin-top). Move the <p> inside
.split-comparison so the padding wraps the caption too, not separates
it from the labels. Drop caption margin-top from 24px to 12px and tone
the color down from charcoal to ash + 0.8125rem to match the rest of
the supporting-text rhythm on these pages.
This commit is contained in:
Paul Bakaus
2026-04-08 11:22:20 -07:00
parent f04dc113c0
commit b0c829a20e
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -1086,9 +1086,9 @@ main#main {
}
.skill-demo-caption {
font-size: 0.875rem;
color: var(--color-charcoal);
margin-top: var(--spacing-md);
font-size: 0.8125rem;
color: var(--color-ash);
margin-top: 12px;
font-style: italic;
max-width: 500px;
}
+1 -1
View File
@@ -54,8 +54,8 @@ function renderSkillDemo(skill) {
<span class="split-label-item" data-point="before">Before</span>
<span class="split-label-item" data-point="after">After</span>
</div>
${caption ? `<p class="skill-demo-caption">${escapeHtml(caption)}</p>` : ''}
</div>
${caption ? `<p class="skill-demo-caption">${escapeHtml(caption)}</p>` : ''}
</section>`;
}