Skip to content

Instantly share code, notes, and snippets.

@jdmorlan
Created August 21, 2016 20:03
Show Gist options
  • Select an option

  • Save jdmorlan/db28b82b50ad03328b5be597820029d7 to your computer and use it in GitHub Desktop.

Select an option

Save jdmorlan/db28b82b50ad03328b5be597820029d7 to your computer and use it in GitHub Desktop.
Inline Block Grid (Margo CSS)
.container {
font-size: 0;
> * {
display: inline-block;
font-size: medium;
vertical-align: top;
width: 100%;
}
> .col-sm-0 { display: none; }
@for $i from 1 through $total-columns {
> .col-sm-#{$i} {
@include column($i, $total-columns, $gutter-size)
}
}
> .col-md-0 { display: none; }
@include media-query($med-screen) {
@for $i from 1 through $total-columns {
> .col-md-#{$i} { @include column($i, $total-columns, $gutter-size) }
}
}
> .col-lg-0 { display: none; }
@include media-query($lg-screen) {
@for $i from 1 through $total-columns {
> .col-lg-#{$i} { @include column($i, $total-columns, $gutter-size) }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment