Skip to content

Commit 0040f1d

Browse files
💄🔧:let the spacing this file asks for apply
Scoping the reset to `.home` gave it a class and an element, which outranks a lone class, so around thirteen margins in this file were computing to zero whatever they said. The gaps were not tight by design; they were not being applied. `.masthead-lede` asked for 1.5rem and got none, and "Discord preferred" was never flush right. Each is scoped to `.home` in turn now, the way `.home .wrap` already was. The post title and excerpt are spans inside a grid, which only blockifies its own children, so they ran together as one line and took no vertical margin. Both are blocks now. With that working, the ones still cramped were opened: the stat pairs, the area and work descriptions, the SDK lede, the channel list, the excerpt. The ring gains a little ink under 560px. At that width it is small enough that 14% read as a smudge rather than an arc. Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is> Assisted-by: Claude-Code:claude-fable-5
1 parent 0916acd commit 0040f1d

1 file changed

Lines changed: 42 additions & 28 deletions

File tree

‎_assets/styles/_home.scss‎

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
color: var(--primary-tint);
152152
}
153153

154-
.masthead-lede {
154+
.home .masthead-lede {
155155
max-width: 46ch;
156156
margin-top: 1.5rem;
157157
font-size: clamp(1rem, 1.3vw, 1.125rem);
@@ -187,7 +187,7 @@
187187
line-height: 1.2;
188188
}
189189

190-
.join-note {
190+
.home .join-note {
191191
margin-left: auto;
192192
font-family: var(--mono);
193193
font-size: 0.6875rem;
@@ -196,8 +196,8 @@
196196
letter-spacing: 0.08em;
197197
}
198198

199-
.join-channels {
200-
margin-block: 0.25rem 0.875rem;
199+
.home .join-channels {
200+
margin-block: 0.625rem 0.875rem;
201201
}
202202

203203
.channel {
@@ -267,7 +267,7 @@
267267
color: var(--parchment);
268268
}
269269

270-
.join-coc {
270+
.home .join-coc {
271271
margin-top: 0.75rem;
272272
font-size: 0.8125rem;
273273
color: rgb(231 231 214 / 58%);
@@ -329,7 +329,7 @@
329329
.stat {
330330
display: flex;
331331
flex-direction: column-reverse; /* value reads above its label */
332-
gap: 0.125rem;
332+
gap: 0.375rem;
333333
}
334334

335335
// Bootstrap's reboot bolds every dt; these dl/dt/dd pairs are borrowed for
@@ -377,13 +377,13 @@
377377
letter-spacing: -0.015em;
378378
}
379379

380-
.sdk-lede {
380+
.home .sdk-lede {
381381
max-width: 58ch;
382-
margin-top: 0.875rem;
382+
margin-top: 1rem;
383383
font-size: 1.0625rem;
384384
}
385385

386-
.areas {
386+
.home .areas {
387387
display: grid;
388388
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
389389
gap: 1px;
@@ -404,20 +404,20 @@
404404
color: var(--primary-deep);
405405
}
406406

407-
.area-name {
407+
.home .area-name {
408408
margin-top: 0.5rem;
409409
font-size: 1rem;
410410
font-weight: 700;
411411
line-height: 1.25;
412412
}
413413

414-
.area-what {
415-
margin-top: 0.375rem;
414+
.home .area-what {
415+
margin-top: 0.5rem;
416416
font-size: 0.875rem;
417417
color: #4b433c;
418418
}
419419

420-
.areas-note {
420+
.home .areas-note {
421421
margin-top: 0.875rem;
422422
font-size: 0.875rem;
423423
color: #4b433c;
@@ -472,7 +472,7 @@
472472
user-select: none;
473473
}
474474

475-
.install-note {
475+
.home .install-note {
476476
max-width: 60ch;
477477
margin-top: 0.75rem;
478478
font-size: 0.875rem;
@@ -513,7 +513,7 @@
513513

514514
/* --- Latest ---------------------------------------------------------- */
515515

516-
.post {
516+
.home .post {
517517
display: grid;
518518
grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
519519
gap: 0.375rem 1.5rem;
@@ -522,18 +522,18 @@
522522
border-bottom: 1px solid rgb(167 151 139 / 55%);
523523
}
524524

525-
.post:hover .post-title {
525+
.home .post:hover .post-title {
526526
text-decoration: underline;
527527
}
528528

529-
.post-meta {
529+
.home .post-meta {
530530
display: flex;
531531
flex-wrap: wrap;
532532
gap: 0.5rem;
533533
align-items: baseline;
534534
}
535535

536-
.post-cat {
536+
.home .post-cat {
537537
padding: 0.0625rem 0.4375rem;
538538
font-family: var(--mono);
539539
font-size: 0.6875rem;
@@ -543,33 +543,39 @@
543543
background-color: var(--tertiary);
544544
}
545545

546-
.post-date {
546+
.home .post-date {
547547
font-family: var(--mono);
548548
font-size: 0.75rem;
549549
color: #6b6259;
550550
}
551551

552-
.post-title {
552+
// Both are spans, kept for the grid's sake (see `.post`), but not blockified
553+
// by it: only `.post-body`, the direct grid item, is. Left as spans they run
554+
// on as one paragraph, title-text-then-excerpt, and `margin-top` below does
555+
// nothing — inline boxes do not take vertical margin.
556+
.home .post-title {
557+
display: block;
553558
font-size: 1.25rem;
554559
font-weight: 700;
555560
line-height: 1.25;
556561
color: var(--primary-deep);
557562
}
558563

559-
.post-excerpt {
564+
.home .post-excerpt {
565+
display: block;
560566
max-width: 62ch;
561-
margin-top: 0.25rem;
567+
margin-top: 0.5rem;
562568
font-size: 0.9375rem;
563569
color: var(--ink);
564570
}
565571

566572
/* --- How we work ------------------------------------------------------ */
567573

568-
.work-list {
574+
.home .work-list {
569575
display: grid;
570576
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
571577
gap: 0;
572-
margin-top: 0.25rem;
578+
margin-top: 0.5rem;
573579
}
574580

575581
.work-item {
@@ -582,13 +588,13 @@
582588
font-weight: 700;
583589
}
584590

585-
.work-what {
586-
margin-top: 0.25rem;
591+
.home .work-what {
592+
margin-top: 0.5rem;
587593
font-size: 0.875rem;
588594
color: #4b433c;
589595
}
590596

591-
.elsewhere {
597+
.home .elsewhere {
592598
margin-top: 1.5rem;
593599
font-size: 0.875rem;
594600
color: #4b433c;
@@ -607,11 +613,19 @@
607613
}
608614

609615
@media (width < 560px) {
616+
// At this width the stacked grid shows only a small corner of the ring,
617+
// below the fixed navbar, with the two-column join panel it otherwise
618+
// crosses nowhere in sight. 14% reads clearly next to that panel's own
619+
// text; alone in the corner it needs more ink to still read as deliberate.
620+
.masthead-ring {
621+
opacity: 0.2;
622+
}
623+
610624
.post {
611625
grid-template-columns: minmax(0, 1fr);
612626
}
613627

614-
.join-note {
628+
.home .join-note {
615629
width: 100%;
616630
margin-left: 0;
617631
}

0 commit comments

Comments
 (0)