Skip to content

Commit

Permalink
🐛 Fix: Media Query Problems
Browse files Browse the repository at this point in the history
  • Loading branch information
amirzenoozi committed Dec 22, 2023
1 parent 9890b1a commit 3d1a856
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="theme-color" content="#342627" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta
name="description"
content="Personal Portfolio Website"
Expand Down
6 changes: 5 additions & 1 deletion src/pages/home/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
flex-direction: column;
align-items: center;
justify-content: flex-end;
padding-bottom: px-to-rem(200);
padding-bottom: px-to-rem(100);
box-sizing: border-box;
overflow: hidden;

Expand Down Expand Up @@ -109,4 +109,8 @@
left: 4vw;
}
}

@include respond-to(md) {
padding-bottom: px-to-rem(200);
}
}
2 changes: 1 addition & 1 deletion src/styles/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// Responsive mixin
@mixin respond-to($name) {
@if(map-has-key($breakpoints, $name)) {
@media (min-width: #{inspect(map-get($breakpoints, $name))}) {
@media only screen and (min-width: #{inspect(map-get($breakpoints, $name))}) {
@content;
}
}
Expand Down

0 comments on commit 3d1a856

Please sign in to comment.