Skip to content

Commit 8941113

Browse files
committed
SearchForm: Simplify margin handling
1 parent 006d562 commit 8941113

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/components/search-form.module.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
color: black;
99
width: 100%;
1010
padding: 5px 5px 5px 25px;
11+
margin: 0 16px;
1112
background-color: white;
1213
background-image: url('/assets/search.png');
1314
background-repeat: no-repeat;
@@ -21,12 +22,14 @@
2122
outline: none;
2223
box-shadow: 0 0 0 4px var(--yellow500);
2324
}
25+
26+
@media only screen and (max-width: 820px) {
27+
margin: 10px 0;
28+
}
2429
}
2530

2631
.input-lg {
2732
composes: input;
28-
margin-left: 16px;
29-
margin-right: 16px;
3033

3134
@media only screen and (max-width: 820px) {
3235
display: none;
@@ -36,7 +39,6 @@
3639
.input-sm {
3740
composes: input;
3841
display: none;
39-
margin: 10px 0;
4042

4143
@media only screen and (max-width: 820px) {
4244
display: unset;

0 commit comments

Comments
 (0)