mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-08 18:01:20 -05:00
[PR #1514] [MERGED] fix(shared-sidebar): tighten vertical spacing for uniform Quarto look #9180
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1514
Author: @profvjreddi
Created: 4/24/2026
Status: ✅ Merged
Merged: 4/24/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/shared-sidebar-tighten-spacing📝 Commits (1)
61dae63fix(shared-sidebar): tighten vertical spacing to match book/kits/labs/mlsysim📊 Changes
1 file changed (+20 additions, -14 deletions)
View changed files
📝
shared/styles/partials/_sidebar.scss(+20 -14)📄 Description
Summary
Unifies sidebar vertical rhythm across all Quarto sites. Before this PR, the shared partial was loose (padding `4px 8px`, margin `1px 0`, explicit line-height `1.45`, extra padding and `margin-top` on section headers), while book/kits/labs/mlsysim already shipped their own tight local override (padding `2px 6px`, margin `0.5px 0`). Net effect: TinyTorch and the landing site looked noticeably airier than the book.
The comment was also wrong
The partial's own file header rationalized "more air than CSS-reset minimums to improve scanning" as a deliberate choice. That was horizontal-vs-vertical-spacing confusion:
The book has the most items per sidebar in the ecosystem and it runs the tight form. If it's right there, it's right everywhere.
What changes
Sites affected
Follow-up (not in this PR)
Four sites still carry duplicate local copies of these rules. Each passes `${site}-accent` explicitly instead of the shared partial's `$accent` variable, which is why the duplicates exist. A follow-up could either:
Either option is a structural cleanup, not a visual change. Deferring until we have eyes on the deployed preview of this PR.
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.