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 {
439 form {439 form {
440 display: flex;440 display: flex;
441 flex-direction: column;441 flex-direction: column;
442- gap: 18px;442+ gap: 20px;
443 }443 }
444 }444 }
445 445
@@ -465,7 +465,6 @@ a {
465 display: flex;465 display: flex;
466 flex-direction: column;466 flex-direction: column;
467 gap: 6px;467 gap: 6px;
468- margin-top: 20px;
469 }468 }
470 469
471 .auth-label {470 .auth-label {
@@ -495,7 +494,7 @@ a {
495 }494 }
496 495
497 .auth-submit {496 .auth-submit {
498- height: 42px;497+ height: var(--control-h-lg);
499 display: flex;498 display: flex;
500 align-items: center;499 align-items: center;
501 justify-content: center;500 justify-content: center;
@@ -691,7 +690,7 @@ a {
691 .board-columns {690 .board-columns {
692 flex: 1;691 flex: 1;
693 display: grid;692 display: grid;
694- grid-template-columns: repeat(4, minmax(0, 1fr));693+ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
695 gap: 16px;694 gap: 16px;
696 align-items: stretch;695 align-items: stretch;
697 }696 }
@@ -1125,14 +1124,13 @@ a {
1125 .new-task-form {1124 .new-task-form {
1126 display: flex;1125 display: flex;
1127 flex-direction: column;1126 flex-direction: column;
1128- gap: 16px;1127+ gap: 20px;
1129 padding: 20px 24px 24px;1128 padding: 20px 24px 24px;
1130 }1129 }
1131 1130
1132 .new-task-row {1131 .new-task-row {
1133 display: flex;1132 display: flex;
1134 gap: 16px;1133 gap: 16px;
1135- margin-top: 20px;
1136 }1134 }
1137 1135
1138 .new-task-foot {1136 .new-task-foot {
@@ -1179,7 +1177,7 @@ a {
1179 1177
1180 .edit-save,1178 .edit-save,
1181 .comment-post {1179 .comment-post {
1182- height: 28px;1180+ height: var(--control-h);
1183 padding: 0 12px;1181 padding: 0 12px;
1184 border: none;1182 border: none;
1185 border-radius: var(--radius);1183 border-radius: var(--radius);
@@ -1334,7 +1332,7 @@ a {
1334 .title-input {1332 .title-input {
1335 flex: 1;1333 flex: 1;
1336 min-width: 0;1334 min-width: 0;
1337- height: 32px;1335+ height: var(--control-h);
1338 padding: 0 8px;1336 padding: 0 8px;
1339 border: 1px solid var(--border-strong);1337 border: 1px solid var(--border-strong);
1340 border-radius: var(--radius);1338 border-radius: var(--radius);
@@ -1410,7 +1408,7 @@ a {
1410 display: flex;1408 display: flex;
1411 align-items: center;1409 align-items: center;
1412 gap: 8px;1410 gap: 8px;
1413- height: 36px;1411+ height: var(--control-h);
1414 padding: 0 10px;1412 padding: 0 10px;
1415 background: var(--field-bg);1413 background: var(--field-bg);
1416 border: 1px solid var(--border-strong);1414 border: 1px solid var(--border-strong);
@@ -1654,8 +1652,8 @@ a {
1654 display: inline-flex;1652 display: inline-flex;
1655 align-items: center;1653 align-items: center;
1656 justify-content: center;1654 justify-content: center;
1657- width: 22px;1655+ width: var(--control-h);
1658- height: 22px;1656+ height: var(--control-h);
1659 border: 1px dashed var(--border-strong);1657 border: 1px dashed var(--border-strong);
1660 border-radius: 50%;1658 border-radius: 50%;
1661 color: var(--muted-soft);1659 color: var(--muted-soft);
@@ -2006,7 +2004,7 @@ a {
2006 display: inline-flex;2004 display: inline-flex;
2007 align-items: center;2005 align-items: center;
2008 gap: 6px;2006 gap: 6px;
2009- height: 36px;2007+ height: var(--control-h);
2010 padding: 0 14px;2008 padding: 0 14px;
2011 border: 1px solid var(--danger-border);2009 border: 1px solid var(--danger-border);
2012 border-radius: var(--radius);2010 border-radius: var(--radius);
@@ -2173,7 +2171,7 @@ a {
2173 padding: 18px;2171 padding: 18px;
2174 display: flex;2172 display: flex;
2175 flex-direction: column;2173 flex-direction: column;
2176- gap: 16px;2174+ gap: 20px;
2177 }2175 }
2178 2176
2179 .panel-lede {2177 .panel-lede {
@@ -2210,31 +2208,20 @@ a {
2210 gap: 6px;2208 gap: 6px;
2211 flex-grow: 1;2209 flex-grow: 1;
2212 min-width: 0;2210 min-width: 0;
2213- margin-top: 20px;
2214 }2211 }
2215 2212
2216 .field-row {2213 .field-row {
2217 display: flex;2214 display: flex;
2218 gap: 16px;2215 gap: 16px;
2219- margin-top: 20px;
2220 }2216 }
2221 2217
2222-// A field's own top margin gives real separation from whatever sits above it2218+// Fields carry no top margin of their own: each wrapping container is a
2223-// — a sibling field, a lede, a foot. The first field in a container needs2219+// flex column whose gap is the spacing. The one unclassed form — its id is
2224-// none (the container's own padding already stands off), and a field that2220+// load-bearing for the foot's `form=` submit — is named directly here.
2225-// is one of a row's two columns takes its spacing from the row instead, or2221+#sender-settings {
2226-// the pair would drift out of line with each other.2222+ display: flex;
2227-.field:first-child,2223+ flex-direction: column;
2228-.auth-field:first-child,2224+ gap: 20px;
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;
2238 }2225 }
2239 2226
2240 .field-narrow { flex-grow: 0; width: 120px; }2227 .field-narrow { flex-grow: 0; width: 120px; }
@@ -2408,7 +2395,7 @@ input[type="radio"] {
2408 display: inline-flex;2395 display: inline-flex;
2409 align-items: center;2396 align-items: center;
2410 justify-content: center;2397 justify-content: center;
2411- height: 36px;2398+ height: var(--control-h);
2412 padding: 0 16px;2399 padding: 0 16px;
2413 background: var(--accent);2400 background: var(--accent);
2414 border: 1px solid var(--accent);2401 border: 1px solid var(--accent);
@@ -2518,7 +2505,7 @@ input[type="radio"] {
2518 .quiet {2505 .quiet {
2519 display: inline-flex;2506 display: inline-flex;
2520 align-items: center;2507 align-items: center;
2521- height: 28px;2508+ height: var(--control-h);
2522 padding: 0 10px;2509 padding: 0 10px;
2523 background: var(--surface);2510 background: var(--surface);
2524 border: 1px solid var(--border-strong);2511 border: 1px solid var(--border-strong);
@@ -2561,9 +2548,9 @@ input[type="radio"] {
2561 2548
2562 .field-role { flex-grow: 0; width: 140px; }2549 .field-role { flex-grow: 0; width: 140px; }
2563 2550
2564-// House rhythm (36px, matching `.primary`) for this row's fields, so the2551+// One control height, matching `.primary`, for this row's fields, so the
2565 // role select and the "Add member" button share one height and baseline.2552 // 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); }
2567 2554
2568 // The link exists once. It is shown once, and said to be shown once.2555 // The link exists once. It is shown once, and said to be shown once.
2569 .member-link {2556 .member-link {
@@ -2795,7 +2782,7 @@ input[type="radio"] {
2795 .rule-new-open {2782 .rule-new-open {
2796 display: flex;2783 display: flex;
2797 align-items: center;2784 align-items: center;
2798- height: 44px;2785+ height: var(--control-h);
2799 padding: 0 16px;2786 padding: 0 16px;
2800 font-size: 13px;2787 font-size: 13px;
2801 font-weight: 600;2788 font-weight: 600;
@@ -2810,7 +2797,7 @@ input[type="radio"] {
2810 .rule-new-body {2797 .rule-new-body {
2811 display: flex;2798 display: flex;
2812 flex-direction: column;2799 flex-direction: column;
2813- gap: 14px;2800+ gap: 20px;
2814 padding: 0 16px 16px;2801 padding: 0 16px 16px;
2815 border-top: 1px solid var(--border);2802 border-top: 1px solid var(--border);
2816 padding-top: 16px;2803 padding-top: 16px;
@@ -2820,5 +2807,4 @@ input[type="radio"] {
2820 display: flex;2807 display: flex;
2821 flex-direction: column;2808 flex-direction: column;
2822 gap: 6px;2809 gap: 6px;
2823- margin-top: 20px;
2824 }2810 }