Created
July 30, 2022 14:30
-
-
Save btxtiger/25c1f22666830b0f10f9fefc03d91334 to your computer and use it in GitHub Desktop.
Card Grid Layout – auto-growing by screen size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Card Grid Layout | |
* auto-growing by screen size | |
*/ | |
body { | |
--unv-card-grid-base-size: 300px; | |
--unv-card-grid-gap: 8px; | |
} | |
.unv-card-grid { | |
display: grid; | |
grid-gap: var(--unv-card-grid-gap); | |
grid-template-columns: repeat(auto-fill, minmax( min(100%, var(--unv-card-grid-base-size)), 1fr )); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment