Created
November 27, 2019 16:23
-
-
Save sebastiano-guerriero/81a721e5440cd5fcc7386423350f21e6 to your computer and use it in GitHub Desktop.
This file contains 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 { | |
--grid-gap: 0px; | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.grid > * { | |
flex-basis: 100%; | |
} | |
[class*="grid-gap"] { | |
margin-bottom: calc(-1 * var(--grid-gap, 1em)); | |
margin-left: calc(-1 * var(--grid-gap, 1em)); | |
} | |
[class*="grid-gap"] > * { | |
margin-bottom: var(--grid-gap, 1em); | |
margin-left: var(--grid-gap, 1em); | |
} | |
.grid-gap-xxxxs { --grid-gap: var(--space-xxxxs); } | |
.grid-gap-xxxs { --grid-gap: var(--space-xxxs); } | |
.grid-gap-xxs { --grid-gap: var(--space-xxs); } | |
.grid-gap-xs { --grid-gap: var(--space-xs); } | |
.grid-gap-sm { --grid-gap: var(--space-sm); } | |
.grid-gap-md { --grid-gap: var(--space-md); } | |
.grid-gap-lg { --grid-gap: var(--space-lg); } | |
.grid-gap-xl { --grid-gap: var(--space-xl); } | |
.grid-gap-xxl { --grid-gap: var(--space-xxl); } | |
.grid-gap-xxxl { --grid-gap: var(--space-xxxl); } | |
.grid-gap-xxxxl { --grid-gap: var(--space-xxxxl); } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment