Skip to content

Commit

Permalink
Improve titles on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
nesk committed Feb 8, 2024
1 parent c8cd36d commit 378dac8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/pages/blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ const Post = styled.article`
h2 {
font-size: 2rem;
letter-spacing: 0.02rem;
line-height: 1.3;
}
@media (min-width: 768px) {
h2 {
line-height: 1.5;
}
}
&:not(:last-child) {
Expand Down
9 changes: 8 additions & 1 deletion src/templates/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,15 @@ const Header = styled.header`
h1 {
font-size: 2.5rem;
letter-spacing: 0.015rem;
line-height: 3.5rem;
line-height: 1.3;
margin: 0.5rem 0 2.5rem;
text-wrap: pretty;
}
@media (min-width: 768px) {
h1 {
line-height: 1.4;
}
}
`

Expand Down

0 comments on commit 378dac8

Please sign in to comment.