Created
February 16, 2019 16:25
-
-
Save cjwd-snippets/ab6911d64300ab6e326a47c6f1030ba5 to your computer and use it in GitHub Desktop.
CSS Grids using minmax
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
| $col: calc((1200px - (11 * 10px)) / 12); // ($wrapperWidth - ($numberOfGutters * $gutterWidth)) / $numberOfColumns | |
| .grid { | |
| display: grid; | |
| } | |
| .grid-12 { | |
| display: grid; | |
| grid-template-columns: minmax(20px, 1fr) repeat(12, minmax(auto, $col)) minmax(20px, 1fr); | |
| grid-gap: 10px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment