Skip to content

Commit 054cd7d

Browse files
committed
SearchForm: Use fluid space scale
1 parent eba9a41 commit 054cd7d

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

app/components/header.module.css

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,28 +78,21 @@
7878
.hero & {
7979
justify-self: center;
8080
padding: var(--space-l) 0 var(--space-l-xl);
81+
margin: 0;
8182
}
8283
}
8384

8485
.hero-title {
8586
display: none;
86-
margin: 0 0 20px;
87-
font-size: 45px;
87+
margin: 0 0 var(--space-m);
88+
font-size: var(--space-m-l);
8889
text-align: center;
8990
color: white;
9091
text-shadow: 1px 3px 2px var(--green900);
9192

9293
.hero & {
9394
display: block;
9495
}
95-
96-
@media only screen and (max-width: 820px) {
97-
font-size: 30px;
98-
}
99-
100-
@media only screen and (max-width: 550px) {
101-
font-size: 24px;
102-
}
10396
}
10497

10598
.sep {

app/components/search-form.module.css

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
.form {
2-
--border-radius: 15px;
3-
--submit-icon-size: 16px;
4-
--submit-button-padding-left: 8px;
5-
--submit-button-padding-right: 10px;
2+
--border-radius: 5000px;
3+
--submit-icon-size: 1em;
4+
--submit-button-padding-left: var(--space-2xs);
5+
--submit-button-padding-right: var(--space-xs);
66
--submit-button-width: calc(var(--submit-button-padding-left) + var(--submit-icon-size) + var(--submit-button-padding-right));
7-
--input-padding: 5px;
8-
--input-padding-left: 10px;
7+
--input-padding: var(--space-3xs);
8+
--input-padding-left: var(--space-xs);
99
--input-padding-right: calc(var(--submit-button-width) + var(--input-padding));
1010

1111
position: relative;
12+
font-size: calc(var(--space-s) * 0.9);
1213

1314
&.size-big {
14-
--border-radius: 30px;
1515
--input-padding: 8px;
1616
--input-padding-left: 16px;
17-
--submit-icon-size: 20px;
1817
--submit-button-padding-left: 12px;
1918
--submit-button-padding-right: 16px;
19+
20+
font-size: var(--space-s);
2021
}
2122
}
2223

2324
.input {
24-
--search-form-focus-shadow: 0 0 0 4px var(--yellow500);
25+
--search-form-focus-shadow: 0 0 0 var(--space-3xs) var(--yellow500);
2526

26-
font-size: 90%;
2727
border: none;
2828
color: black;
2929
width: 100%;
@@ -32,10 +32,6 @@
3232
box-shadow: 1px 2px 4px 0 var(--green900);
3333
transition: box-shadow var(--transition-fast);
3434

35-
.size-big & {
36-
font-size: 125%;
37-
}
38-
3935
&:focus {
4036
outline: none;
4137
box-shadow: var(--search-form-focus-shadow),

0 commit comments

Comments
 (0)