Last active
March 2, 2017 13:55
-
-
Save mverissimo/227b03158fc015492c63ba255bb26769 to your computer and use it in GitHub Desktop.
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
| @import "bower_components/susy/sass/susy"; | |
| $columns: 12; | |
| $susy:( | |
| columns: $columns, | |
| gutters: 1/5, | |
| container: 960px, | |
| ); | |
| .container { | |
| @include container(); | |
| position: relative; | |
| } | |
| @for $i from 1 through 12 { | |
| .col-#{$i} { | |
| width: 100%; | |
| } | |
| } | |
| @include media-querie(desktop) { | |
| @for $i from 1 through 12 { | |
| .col-#{$i} { | |
| @include span(#{i} of 12); | |
| } | |
| } | |
| } | |
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
| @import "bower_components/susy/sass/susy"; | |
| $columns: 12; | |
| $susy:( | |
| columns: $columns, | |
| gutters: 1/5, | |
| container: 960px, | |
| ); | |
| .container { | |
| @include container(); | |
| position: relative; | |
| } | |
| [class*="col-"] { | |
| width: 100%; | |
| } | |
| @include media-querie(desktop) { | |
| @for $i from 1 through 12 { | |
| .col-#{$i} { | |
| @include span(#{i} of 12); | |
| } | |
| } | |
| } | |
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
| @mixin media-querie($media) { | |
| @if $media == mobile { | |
| @media only screen and (min-width: $bp-mobile) { @content; } | |
| } | |
| @else if $media == tablet { | |
| @media only screen and (min-width: $bp-tablet) { @content; } | |
| } | |
| @else if $media == desktop { | |
| @media only screen and (min-width: $bp-desktop) { @content; } | |
| } | |
| } |
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
| <div class="container"> | |
| <div class="col-8"></div> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment