Skip to content

Commit 081b7e8

Browse files
committed
Fix grid on mobile
1 parent 1fd50ef commit 081b7e8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/site/css/hubspot-form.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,18 @@
4444

4545
.survey-form .hs-form {
4646
display: grid;
47-
grid-template-columns: 1fr 1fr;
47+
grid-template-columns: 1fr;
4848
grid-gap: 1em;
4949
}
5050

51+
@media (min-width: 40em) { /* 640px */
52+
.survey-form .hs-form {
53+
grid-template-columns: repeat(auto-fit, minmax(17em, 1fr));
54+
}
55+
}
56+
5157
.survey-form .hs_email,
5258
.survey-form .hs_jamstack_survey_promo,
5359
.survey-form .hs_address {
54-
grid-column: span 2;
60+
grid-column: 1 / -1;
5561
}

0 commit comments

Comments
 (0)