Created
September 15, 2017 09:09
-
-
Save reinislejnieks/049f0c06d0af721ebfd9ae9fe05d993e to your computer and use it in GitHub Desktop.
#scss mixins for IE10 compatible css grid
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
| @mixin display-grid { | |
| display: -ms-grid; | |
| display: grid; | |
| } | |
| @mixin grid-child ($col-start, $col-end, $row-start, $row-end) { | |
| -ms-grid-column: $col-start; | |
| -ms-grid-column-span: $col-end - $col-start; | |
| -ms-grid-row: $row-start; | |
| -ms-grid-row-span: $row-end - $row-start; | |
| grid-column: #{$col-start}/#{$col-end}; | |
| grid-row: #{$row-start}/#{$row-end}; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment