Skip to content

Commit 7f9970f

Browse files
committed
recipe page: fix breadcrumb alignment and note line-height
- Breadcrumbs: a duplicate `.breadcrumbs ol` rule with `padding: 0; margin: 0` was silently clobbering my earlier `padding-inline: 2rem; margin: 0 auto` (same specificity, source order wins). Merged into one rule so the inner `<ol>` actually mirrors the header's max-w-cookbook + px-8 — first crumb now tracks the wordmark on every viewport width. - Notes vs steps line-height: callout paragraphs were inheriting `article p { line-height: 1.6 }`, while steps render as `<li>` (no `<p>` wrapper) and inherit body's `leading-relaxed` (1.625). Dropped the 1.6 override so both share 1.625.
1 parent aab18b8 commit 7f9970f

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

static/css/custom.css

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,6 @@ article h2 {
542542

543543
article p {
544544
margin-bottom: 2rem;
545-
line-height: 1.6;
546545
}
547546

548547
article ul {
@@ -1078,18 +1077,14 @@ body.cook-mode .tsm-check-label input.tsm-check {
10781077
font-size: 0.8rem;
10791078
color: var(--cb-light);
10801079
}
1081-
.breadcrumbs > ol {
1082-
max-width: 1200px;
1083-
margin: 0 auto;
1084-
padding-inline: 2rem;
1085-
}
10861080
@media (min-width: 768px) {
10871081
.breadcrumbs { padding-block: 1.25rem 0.75rem; }
10881082
}
10891083
.breadcrumbs ol {
10901084
list-style: none;
1091-
padding: 0;
1092-
margin: 0;
1085+
max-width: 1200px;
1086+
margin: 0 auto;
1087+
padding: 0 2rem;
10931088
display: flex;
10941089
flex-wrap: wrap;
10951090
gap: 0.4rem;

0 commit comments

Comments
 (0)