Last active
November 27, 2019 12:09
-
-
Save josephshambrook/b607967c16cef296812b972cf7dfc437 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
.g { | |
--main-width: 100%; | |
display: grid; | |
grid-template-columns: | |
minmax(1rem, 1fr) | |
minmax(auto, var(--main-width)) | |
minmax(1rem, 1fr); | |
} | |
.g > * { | |
grid-column: 2 / 3; | |
} | |
@media screen and (min-width: 47rem) { | |
main { | |
--main-width: 45rem; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SCSS version: