Created
October 13, 2015 19:54
-
-
Save lucprincen/a6e2a7dc5caa0dbaa7d5 to your computer and use it in GitHub Desktop.
Simple grid system, dependent on bourbon.io
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
| .column-row{ | |
| @include flex-row(); | |
| min-height:30px; | |
| .column{ | |
| @include flex( 1 ); | |
| margin-right:30px; | |
| &:last-of-type{ | |
| margin-right:0; | |
| } | |
| } | |
| &.sidebar-right .column:first-of-type{ | |
| @include flex( 2 ); | |
| } | |
| &.sidebar-left .column:last-of-type{ | |
| @include flex( 2 ); | |
| } | |
| } | |
| //make flex rows a bit easier: | |
| @mixin flex-row( $equalize:stretch ){ | |
| @include display(flex); | |
| @include flex-direction(row); | |
| @include align-items($equalize); | |
| } | |
| //make flex columns a bit easier: | |
| @mixin flex-col( $equalize:stretch ){ | |
| @include display(flex); | |
| @include flex-direction(column); | |
| @include align-items($equalize); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment