Skip to content

Commit

Permalink
Fix responsive padding on navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
kubgus committed Jun 13, 2024
1 parent 8e88669 commit d0aa297
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/layouts/navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ const { fixed } = Astro.props;
transition: top 0.25s, opacity 0.25s;
}

@media (max-width: 768px) {
header {
padding-inline: 5vw;
}
}

@media (max-width: 480px) {
header {
padding-inline: 3vw;
}
}

header.scrolled {
top: 0;
opacity: 1;
Expand Down

0 comments on commit d0aa297

Please sign in to comment.