Skip to content

Commit e727f50

Browse files
committed
fix #204; vertical margins for narrow forms
1 parent fac7439 commit e727f50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/style.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@
99
}
1010

1111
/* The minimum height of a form should match the minimum allowed cell height.
12-
* Note that the font here is currently 1px smaller than the Table font; not
13-
* sure if it’s necessary to make the two exactly the same. */
12+
* The vertical margins ensure adequate separation in narrow windows when used
13+
* with Inputs.form. */
1414
form.__ns__ {
1515
display: flex;
1616
align-items: center;
1717
flex-wrap: wrap;
1818
min-height: 25.5px;
19+
margin: var(--length3) 0;
1920
}
2021

2122
/* On narrow screens, the label is drawn as a block element on top of the
@@ -51,6 +52,7 @@ form.__ns__-toggle .__ns__-input {
5152
flex-wrap: nowrap;
5253
width: calc(var(--input-width) + var(--label-width));
5354
max-width: 100%;
55+
margin: initial;
5456
}
5557
/* On wide screens, we need to handle: the label being taller than the inputs;
5658
* the inputs being taller than the label; or both being a single line. In the

0 commit comments

Comments
 (0)