Last active
March 30, 2020 13:33
-
-
Save ryandejaegher/16aa9b3c671aeb4cf01d66d9c12e3112 to your computer and use it in GitHub Desktop.
CSS Grid Utilities
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
| .grid { | |
| display: grid; | |
| } | |
| .col-span-1 { | |
| grid-column: span 1; | |
| } | |
| .col-span-2 { | |
| grid-column: span 2; | |
| } | |
| .col-span-3 { | |
| grid-column: span 3; | |
| } | |
| .col-span-4 { | |
| grid-column: span 4; | |
| } | |
| .col-span-5 { | |
| grid-column: span 5; | |
| } | |
| .col-span-6 { | |
| grid-column: span 6; | |
| } | |
| .col-span-7 { | |
| grid-column: span 7; | |
| } | |
| .col-span-8 { | |
| grid-column: span 8; | |
| } | |
| .col-span-9 { | |
| grid-column: span 9; | |
| } | |
| .col-span-10 { | |
| grid-column: span 10; | |
| } | |
| .col-span-11 { | |
| grid-column: span 11; | |
| } | |
| .col-span-12 { | |
| grid-column: span 12; | |
| } | |
| .grid-auto-fill-col { | |
| grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| } | |
| .grid-auto-fit-col { | |
| grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); | |
| } | |
| .grid-2-col { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| .grid-3-col { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| .grid-4-col { | |
| grid-template-columns: repeat(4, 1fr); | |
| } | |
| .grid-5-col { | |
| grid-template-columns: repeat(5, 1fr); | |
| } | |
| .grid-6-col { | |
| grid-template-columns: repeat(6, 1fr); | |
| } | |
| .grid-7-col { | |
| grid-template-columns: repeat(7, 1fr); | |
| } | |
| .grid-8-col { | |
| grid-template-columns: repeat(8, 1fr); | |
| } | |
| .grid-9-col { | |
| grid-template-columns: repeat(9, 1fr); | |
| } | |
| .grid-10-col { | |
| grid-template-columns: repeat(10, 1fr); | |
| } | |
| .grid-11-col { | |
| grid-template-columns: repeat(11, 1fr); | |
| } | |
| .grid-12-col { | |
| grid-template-columns: repeat(12, 1fr); | |
| } | |
| .grid-image { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment