Last active
August 29, 2015 14:24
-
-
Save verticalgrain/c33eece4ae8a059a95ef to your computer and use it in GitHub Desktop.
Susy grids default configuration - inside gutters
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-count: 12; | |
| $susy: ( | |
| columns: $column-count, | |
| global-box-sizing: border-box, | |
| gutter-position: inside, | |
| // debug: ( // Optional debug option to show grid on front-end | |
| // image: show-columns, | |
| // output: overlay, | |
| // toggle: bottom left | |
| // ) | |
| ); | |
| .container { | |
| @include container($column-count); | |
| max-width: $breakpoint-full; // Max width. eg: 1140px | |
| position: relative; | |
| z-index: 2; | |
| @media (max-width: $breakpoint-full + 40px) { | |
| padding: 0 20px; | |
| } | |
| } | |
| $i: 1; | |
| // Column classes | |
| @for $i from 1 through $column-count { | |
| %col-#{$i}, | |
| .col-#{$i} { | |
| @include span($i); | |
| @media (max-width: $breakpoint-medium) { // Mobile breakpoint - eg: 720px | |
| width: 100% !important; // Using !important to ensure width is overridden | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment