Skip to content

Commit

Permalink
Cleanup mobile styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschoffelen committed Jun 8, 2023
1 parent 207da2d commit d814c20
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion styles/_blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}

@media (max-width: 640px) {
margin-top: 24px;
margin-top: 1rem;
margin-bottom: 24px;
}
}
Expand Down
1 change: 1 addition & 0 deletions styles/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
padding: 12px 0;
font-weight: 600;
transition: color 0.3s linear;
line-height: 1.5;

.link-category {
background-color: #f4f4f5;
Expand Down
4 changes: 2 additions & 2 deletions styles/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ header {

@media (max-width: 42rem) {
position: absolute;
top: 3rem;
left: 3rem;
top: 2rem;
left: 2rem;
}
}
}
2 changes: 1 addition & 1 deletion styles/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ main ::selection {

h1 {
font-size: 2.5rem;
line-height: 1.3;
line-height: 1.4;
margin-bottom: 0;

@media (max-width: 42rem) {
Expand Down
4 changes: 4 additions & 0 deletions styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ main {
margin: 0 auto;
position: relative;
max-width: 42rem;

@media (max-width: 600px) {
padding: 2rem;
}
}

@import "typography";
Expand Down

0 comments on commit d814c20

Please sign in to comment.