Board: line the mission buttons up, and give the referral card its own row

Every mission brief is a different length, so the Start mission buttons sat at
a different height in each card. The action now sits at the foot of the card,
so a row of them lines up whatever the brief above it says.

The referral card was in the same grid and is taller than any mission, so it
stretched the two cards beside it and left them with a hole under the button.
It moves above the grid into its own slot, where it splits into two columns on
a wide screen so the text does not run the full width.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-23 06:15:52 -05:00
parent c316dab8e6
commit 97dbd66a5c
3 changed files with 22 additions and 5 deletions
+16
View File
@@ -118,3 +118,19 @@ textarea{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--
.ref-list{margin-top:12px;border-top:1px solid var(--edge);padding-top:8px}
.ref-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:4px 0}
.ref-row .ref-state{color:var(--dim);font-size:12px;text-align:right}
/* mission cards: the action sits at the foot of every card, so a row of them lines up whatever
the brief is long or short (Marty, 2026-09-23) */
#missions .card{display:flex;flex-direction:column}
#missions .cardact{margin-top:auto;padding-top:14px}
#missions .card .timer{margin-top:auto}
/* the referral card is taller than any mission, so it sits above the grid rather than stretching
a whole row of them; on a wide screen it splits so the text does not run the full width */
#refSlot{margin-bottom:16px}
#refSlot .ref-card{margin:0}
@media (min-width:900px){
#refSlot .ref-card{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:30px;align-items:start}
#refSlot .ref-card .tag,#refSlot .ref-card h3{grid-column:1}
#refSlot .ref-card p,#refSlot .ref-card .codebox{grid-column:1}
#refSlot .ref-card .ref-list,#refSlot .ref-card>p:last-child{grid-column:2;grid-row:2/span 5;align-self:stretch;margin-top:0;border-top:0;border-left:1px solid var(--edge);padding-left:22px}
}