Skip to content

Instantly share code, notes, and snippets.

@lucprincen
Created October 13, 2015 19:54
Show Gist options
  • Select an option

  • Save lucprincen/a6e2a7dc5caa0dbaa7d5 to your computer and use it in GitHub Desktop.

Select an option

Save lucprincen/a6e2a7dc5caa0dbaa7d5 to your computer and use it in GitHub Desktop.
Simple grid system, dependent on bourbon.io
.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