Skip to content

Commit

Permalink
Correct centering for small screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnrsh committed Sep 21, 2024
1 parent 6dec774 commit 6f68b68
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const heroText = `<p>Welcome to home and the online archive for the Dispersed Me
innerClasses={[
'bg-brand-purple-dk',
'brand-lt',
'ma-3',
'ma-0',
'ma-3-ns',
'pt-4',
'pb-5'
]}
Expand Down Expand Up @@ -121,7 +122,14 @@ const heroText = `<p>Welcome to home and the online archive for the Dispersed Me
</main>
</BaseLayout>
<style is:global>
.cards__wrap li {
.cards__wrap .card {
width: 300px;
}

@media screen and (max-width: 450px) {
.cards__wrap .card {
min-width: 100%;
margin-inline: auto;
}
}
</style>

0 comments on commit 6f68b68

Please sign in to comment.