Created
April 27, 2018 11:43
-
-
Save zuDevonRW/b40968ac95fda5f1429097216e593b47 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
$supportsGrid: TRUE; | |
@mixin supportsGrid() { | |
@if $supportsGrid == TRUE { | |
@supports (display: grid) { | |
@content; | |
} | |
} | |
} | |
/* usage */ | |
.thing { | |
display: inline-block; | |
@include supportsGrid { | |
display: grid; | |
grid-template-columns: 1fr 1fr; | |
grid-column-gap: 24px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment