Skip to content

Commit

Permalink
feat: Add responsive max-width for large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
aryanprince committed Oct 25, 2024
1 parent 411d038 commit c9b9fb3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
10 changes: 10 additions & 0 deletions src/components/navigation/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,14 @@
gap: 10px;
}
}

@media (min-width: 1536px) {
.logo {
padding-left: 300px;
}

.right-items {
padding-right: 300px;
}
}
</style>
8 changes: 7 additions & 1 deletion src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import Navbar from "../components/navigation/Navbar.astro";
}

body {
max-width: 96vw !important;
max-width: 96vw;
margin: 50px auto 0;
display: flex;
text-align: center;
Expand Down Expand Up @@ -258,4 +258,10 @@ import Navbar from "../components/navigation/Navbar.astro";
width: 480px;
}
}

@media (min-width: 1536px) {
body {
max-width: 70vw;
}
}
</style>

0 comments on commit c9b9fb3

Please sign in to comment.