Created
August 21, 2016 20:03
-
-
Save jdmorlan/db28b82b50ad03328b5be597820029d7 to your computer and use it in GitHub Desktop.
Inline Block Grid (Margo CSS)
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
| .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