Skip to content

Commit

Permalink
fix: adjust projects to respect screen width
Browse files Browse the repository at this point in the history
  • Loading branch information
Xillians committed Jun 18, 2024
1 parent 879f097 commit 4d95735
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/project-list-card.astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ const { data } = Astro.props;

<style>
.card {
width: 100%;
background-color: hsl(var(--blue-base) 95%);
display: grid;
grid-template-columns: 2fr 1fr;
display: flex;
justify-content: space-between;
padding: 1.5rem;
border-radius: var(--border-radius);
gap: 1.5rem;
Expand All @@ -51,7 +52,7 @@ const { data } = Astro.props;

dl {
display: grid;
grid-template-columns: 1fr 1fr;
text-align: end;
gap: 1rem;
margin: 0;
}
Expand All @@ -63,4 +64,12 @@ const { data } = Astro.props;
dd {
margin: 0;
}
@media (max-width: 640px) {
.card {
flex-direction: column;
}
dl {
text-align: start;
}
}
</style>

0 comments on commit 4d95735

Please sign in to comment.