Skip to content

Instantly share code, notes, and snippets.

@TexRx
Created October 25, 2013 08:28
Show Gist options
  • Save TexRx/7151360 to your computer and use it in GitHub Desktop.
Save TexRx/7151360 to your computer and use it in GitHub Desktop.
// Sass v3.2.7
// Susy v1.0.5
@import "susy";
@mixin respond-to($primary) {
@if $primary == small {
@media screen and (min-width: 500px) {
$total-columns: 12;
@content;
}
}
@else if $primary == large {
@media screen and (min-width: 900px) {
$total-columns: 2;
@content;
}
}
}
@include respond-to(small) {
div {
@include span-columns(1)
}
}
@include respond-to(large) {
div {
@include span-columns(1)
}
}
@media screen and (min-width: 500px) {
div {
width: 6.77966%;
float: left;
margin-right: 1.69492%;
display: inline;
}
}
@media screen and (min-width: 900px) {
div {
width: 44.44444%;
float: left;
margin-right: 11.11111%;
display: inline;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment