Skip to content

Commit cd72d24

Browse files
committed
Footer: Use fluid space scale
1 parent 1e94ae8 commit cd72d24

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

app/components/footer.module.css

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@
2020
.content {
2121
composes: width-limit from '../styles/application.module.css';
2222
display: grid;
23-
gap: 40px 20px;
24-
padding: 30px;
23+
gap: var(--space-xl) var(--space-m);
24+
padding: var(--space-l);
2525

2626
@media only screen and (min-width: 551px) {
2727
grid-template-columns: repeat(2, 1fr);
2828
justify-content: center;
29-
padding: 50px 30px;
29+
padding: var(--space-xl) var(--space-m);
3030
}
3131

3232
@media only screen and (min-width: 751px) {
3333
grid-template-columns: repeat(4, 1fr);
3434
}
3535

3636
h1 {
37-
margin: 0 0 20px;
37+
margin: 0 0 var(--space-s);
3838
font-size: 20px;
3939
font-weight: 500;
4040
color: var(--footer-header-color);
@@ -47,22 +47,22 @@
4747
padding: 0;
4848

4949
> * + * {
50-
margin-top: 15px;
50+
margin-top: var(--space-xs);
5151
}
5252
}
5353

5454
li {
55-
height: 16px;
55+
height: 1rem;
5656
}
5757

5858
a {
5959
display: inline-flex;
6060
/* slightly increased click targets */
61-
margin: -5px;
62-
padding: 5px;
61+
margin: calc(var(--space-2xs) * -1);
62+
padding: var(--space-2xs);
6363
color: #fff;
6464
font-size: 16px;
65-
line-height: 16px;
65+
line-height: 1em;
6666
white-space: nowrap;
6767
transition: var(--transition-medium);
6868

@@ -79,9 +79,9 @@
7979
}
8080

8181
svg {
82-
height: 20px;
83-
width: 20px;
84-
margin: -2px 10px -2px 0;
82+
height: 1.25em;
83+
width: 1.25em;
84+
margin: -.125em var(--space-xs) -.125em 0;
8585
flex-shrink: 0;
8686
}
8787
}

0 commit comments

Comments
 (0)