Skip to content

Commit 5939e68

Browse files
committed
css: make each connect step a card while the picker is stacked
Stacked in a prose column, the three steps were a single column of headings with only whitespace between them, so 02 read as a continuation of 01 rather than the next thing to do. Each step now carries a border, a tint and its own padding, and the panel gap drops from 2rem to 1rem because the border is doing the separating the whitespace was. Only while stacked. Three across the columns already separate themselves, so the wide container query strips the card treatment rather than nesting three boxes inside a box. Applies to every surface that stacks the picker: this post, the changelog entry and the docs page.
1 parent d1ad495 commit 5939e68

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

src/css/style.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3396,12 +3396,22 @@ lite-youtube::before {
33963396
.ff-agent-panel {
33973397
display: grid;
33983398
grid-template-columns: 1fr;
3399-
gap: 2rem;
3399+
/* Tighter than the 2rem this used to carry, because stacked the steps are now
3400+
cards and the border does the separating that the whitespace was doing. */
3401+
gap: 1rem;
34003402
padding: 1.5rem;
34013403
}
3404+
/* Stacked, each step is a card. One column of three headings with nothing but air
3405+
between them read as one continuous block, so 02 looked like more of 01 rather
3406+
than the next thing to do. Three across, the columns already separate themselves
3407+
and a border around each would just be noise, so the wide state below strips it. */
34023408
.ff-agent-step {
34033409
display: flex;
34043410
flex-direction: column;
3411+
border: 1px solid var(--color-gray-200);
3412+
border-radius: 0.5rem;
3413+
background-color: var(--color-gray-50);
3414+
padding: 1.25rem;
34053415
}
34063416
.ff-agent-step__num {
34073417
margin: 0;
@@ -3458,6 +3468,14 @@ lite-youtube::before {
34583468
gap: 2.5rem;
34593469
padding: 2rem;
34603470
}
3471+
/* Back to bare columns: side by side the steps are already separate, so the card
3472+
treatment the stacked state needs becomes three boxes inside a box. */
3473+
.ff-agent-step {
3474+
border: 0;
3475+
border-radius: 0;
3476+
background-color: transparent;
3477+
padding: 0;
3478+
}
34613479
/* Three across, the columns are narrow enough that filling them is right. */
34623480
.ff-agent-step__cta {
34633481
align-self: stretch;

0 commit comments

Comments
 (0)