Skip to content

Commit

Permalink
fix: improve how columns resize at different container widths
Browse files Browse the repository at this point in the history
  • Loading branch information
marionnegp committed Sep 25, 2024
1 parent 7ee3658 commit 30a03dd
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/foundations/color/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ crayons:
<style data-helmet>
#crayons-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(358px, 1fr));
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: var(--rh-space-2xl);
& .crayons-list {
margin: 0;
Expand All @@ -44,6 +44,18 @@ crayons:
}
}
}
@container (min-width: 576px) and (max-width: 746px) {
#crayons-grid {
grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
}
}
/*
@container section (min-width:747px) {
#crayons-grid {
grid-template-columns: repeat(auto-fill, minmax(352px, 1fr));
}
}
*/
</style>

## Introduction
Expand Down

0 comments on commit 30a03dd

Please sign in to comment.