forge
Explore
Log in

Don't you dare go Hollow

Controls agree on two heights, forms breathe by gap

Browse files at this commit

f19924d7773c882aa6a58621fb2cce8484ec5ab9Ahmet Kaan GümüşParent: 1b713bf
  • feat
    • controls agree on two heights, forms breathe by gap
Show full message
✨ feat(web): controls agree on two heights, forms breathe by gap
style/main.scssmodified+24 -38
@@ -439,7 +439,7 @@ a {
439439 form {
440440 display: flex;
441441 flex-direction: column;
442- gap: 18px;
442+ gap: 20px;
443443 }
444444 }
445445
@@ -465,7 +465,6 @@ a {
465465 display: flex;
466466 flex-direction: column;
467467 gap: 6px;
468- margin-top: 20px;
469468 }
470469
471470 .auth-label {
@@ -495,7 +494,7 @@ a {
495494 }
496495
497496 .auth-submit {
498- height: 42px;
497+ height: var(--control-h-lg);
499498 display: flex;
500499 align-items: center;
501500 justify-content: center;
@@ -691,7 +690,7 @@ a {
691690 .board-columns {
692691 flex: 1;
693692 display: grid;
694- grid-template-columns: repeat(4, minmax(0, 1fr));
693+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
695694 gap: 16px;
696695 align-items: stretch;
697696 }
@@ -1125,14 +1124,13 @@ a {
11251124 .new-task-form {
11261125 display: flex;
11271126 flex-direction: column;
1128- gap: 16px;
1127+ gap: 20px;
11291128 padding: 20px 24px 24px;
11301129 }
11311130
11321131 .new-task-row {
11331132 display: flex;
11341133 gap: 16px;
1135- margin-top: 20px;
11361134 }
11371135
11381136 .new-task-foot {
@@ -1179,7 +1177,7 @@ a {
11791177
11801178 .edit-save,
11811179 .comment-post {
1182- height: 28px;
1180+ height: var(--control-h);
11831181 padding: 0 12px;
11841182 border: none;
11851183 border-radius: var(--radius);
@@ -1334,7 +1332,7 @@ a {
13341332 .title-input {
13351333 flex: 1;
13361334 min-width: 0;
1337- height: 32px;
1335+ height: var(--control-h);
13381336 padding: 0 8px;
13391337 border: 1px solid var(--border-strong);
13401338 border-radius: var(--radius);
@@ -1410,7 +1408,7 @@ a {
14101408 display: flex;
14111409 align-items: center;
14121410 gap: 8px;
1413- height: 36px;
1411+ height: var(--control-h);
14141412 padding: 0 10px;
14151413 background: var(--field-bg);
14161414 border: 1px solid var(--border-strong);
@@ -1654,8 +1652,8 @@ a {
16541652 display: inline-flex;
16551653 align-items: center;
16561654 justify-content: center;
1657- width: 22px;
1658- height: 22px;
1655+ width: var(--control-h);
1656+ height: var(--control-h);
16591657 border: 1px dashed var(--border-strong);
16601658 border-radius: 50%;
16611659 color: var(--muted-soft);
@@ -2006,7 +2004,7 @@ a {
20062004 display: inline-flex;
20072005 align-items: center;
20082006 gap: 6px;
2009- height: 36px;
2007+ height: var(--control-h);
20102008 padding: 0 14px;
20112009 border: 1px solid var(--danger-border);
20122010 border-radius: var(--radius);
@@ -2173,7 +2171,7 @@ a {
21732171 padding: 18px;
21742172 display: flex;
21752173 flex-direction: column;
2176- gap: 16px;
2174+ gap: 20px;
21772175 }
21782176
21792177 .panel-lede {
@@ -2210,31 +2208,20 @@ a {
22102208 gap: 6px;
22112209 flex-grow: 1;
22122210 min-width: 0;
2213- margin-top: 20px;
22142211 }
22152212
22162213 .field-row {
22172214 display: flex;
22182215 gap: 16px;
2219- margin-top: 20px;
22202216 }
22212217
2222-// A field's own top margin gives real separation from whatever sits above it
2223-// — a sibling field, a lede, a foot. The first field in a container needs
2224-// none (the container's own padding already stands off), and a field that
2225-// is one of a row's two columns takes its spacing from the row instead, or
2226-// the pair would drift out of line with each other.
2227-.field:first-child,
2228-.auth-field:first-child,
2229-.rule-field:first-child,
2230-.field-row:first-child,
2231-.new-task-row:first-child {
2232- margin-top: 0;
2233-}
2234-
2235-.field-row > .field,
2236-.new-task-row > .field {
2237- margin-top: 0;
2218+// Fields carry no top margin of their own: each wrapping container is a
2219+// flex column whose gap is the spacing. The one unclassed form — its id is
2220+// load-bearing for the foot's `form=` submit — is named directly here.
2221+#sender-settings {
2222+ display: flex;
2223+ flex-direction: column;
2224+ gap: 20px;
22382225 }
22392226
22402227 .field-narrow { flex-grow: 0; width: 120px; }
@@ -2408,7 +2395,7 @@ input[type="radio"] {
24082395 display: inline-flex;
24092396 align-items: center;
24102397 justify-content: center;
2411- height: 36px;
2398+ height: var(--control-h);
24122399 padding: 0 16px;
24132400 background: var(--accent);
24142401 border: 1px solid var(--accent);
@@ -2518,7 +2505,7 @@ input[type="radio"] {
25182505 .quiet {
25192506 display: inline-flex;
25202507 align-items: center;
2521- height: 28px;
2508+ height: var(--control-h);
25222509 padding: 0 10px;
25232510 background: var(--surface);
25242511 border: 1px solid var(--border-strong);
@@ -2561,9 +2548,9 @@ input[type="radio"] {
25612548
25622549 .field-role { flex-grow: 0; width: 140px; }
25632550
2564-// House rhythm (36px, matching `.primary`) for this row's fields, so the
2551+// One control height, matching `.primary`, for this row's fields, so the
25652552 // role select and the "Add member" button share one height and baseline.
2566-.member-invite .field-input { height: 36px; }
2553+.member-invite .field-input { height: var(--control-h); }
25672554
25682555 // The link exists once. It is shown once, and said to be shown once.
25692556 .member-link {
@@ -2795,7 +2782,7 @@ input[type="radio"] {
27952782 .rule-new-open {
27962783 display: flex;
27972784 align-items: center;
2798- height: 44px;
2785+ height: var(--control-h);
27992786 padding: 0 16px;
28002787 font-size: 13px;
28012788 font-weight: 600;
@@ -2810,7 +2797,7 @@ input[type="radio"] {
28102797 .rule-new-body {
28112798 display: flex;
28122799 flex-direction: column;
2813- gap: 14px;
2800+ gap: 20px;
28142801 padding: 0 16px 16px;
28152802 border-top: 1px solid var(--border);
28162803 padding-top: 16px;
@@ -2820,5 +2807,4 @@ input[type="radio"] {
28202807 display: flex;
28212808 flex-direction: column;
28222809 gap: 6px;
2823- margin-top: 20px;
28242810 }