Skip to content

Commit 652d10c

Browse files
author
Becca Bailey
authored
Merge pull request #2070 from FormidableLabs/docs/fix-feature-typography
Fix font stack and correct margins in docs
2 parents 9091237 + f226ca0 commit 652d10c

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

docs/src/partials/home/features.js

+11-8
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,21 @@ const FeaturesList = styled.ul`
2828
grid-template-columns: 1fr;
2929
grid-auto-rows: auto;
3030
grid-gap: 4rem;
31-
margin: 6rem 0;
31+
margin: 3rem 0;
32+
padding: 2rem;
3233
@media ${({ theme }) => theme.mediaQuery.sm} {
3334
grid-template-columns: repeat(3, 1fr);
3435
grid-auto-rows: 1fr;
3536
grid-gap: 3rem;
37+
margin: 6rem 0;
38+
padding: 0;
3639
}
3740
`;
3841

3942
const Feature = styled.li`
4043
justify-self: center;
4144
padding: 0;
42-
width: 18.5rem;
45+
width: 100%;
4346
@media ${({ theme }) => theme.mediaQuery.md} {
4447
width: 28rem;
4548
}
@@ -53,29 +56,29 @@ const FeatureImg = styled(LazyImage)`
5356

5457
const FeatureTitle = styled.h3`
5558
color: ${({ theme }) => theme.color.darkBrown};
56-
font-family: HelveticaNeue;
59+
font-family: Helvetica Neue;
5760
font-size: 1.8rem;
5861
font-weight: bold;
5962
margin-top: 4rem;
6063
line-height: 0.96;
6164
text-align: center;
6265
@media ${({ theme }) => theme.mediaQuery.sm} {
63-
margin-top: 3rem;
64-
text-align: left;
66+
margin-top: calc(2rem + 20px);
6567
}
6668
@media ${({ theme }) => theme.mediaQuery.md} {
67-
font-size: 2.4rem;
69+
font-size: 2rem;
6870
}
6971
`;
7072

7173
const FeatureText = styled.p`
72-
font-size: 1.4rem;
74+
font-size: 1.5rem;
7375
line-height: 1.29;
76+
text-align: center;
77+
margin: 2.75rem 0 0;
7478
@media ${({ theme }) => theme.mediaQuery.sm} {
7579
line-height: 1.29;
7680
}
7781
@media ${({ theme }) => theme.mediaQuery.md} {
78-
font-size: 2.4rem;
7982
line-height: 1.6;
8083
}
8184
`;

docs/src/partials/home/more-oss.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const OSSLink = styled.a`
8484
`;
8585

8686
const OSSTitle = styled.h3`
87-
font-family: HelveticaNeue;
87+
font-family: Helvetica Neue;
8888
font-size: 1.8rem;
8989
font-weight: bold;
9090
margin: 0;

0 commit comments

Comments
 (0)