Skip to content

Instantly share code, notes, and snippets.

@58bits
Created June 12, 2014 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 58bits/5d451dbd045e084e7a27 to your computer and use it in GitHub Desktop.
Save 58bits/5d451dbd045e084e7a27 to your computer and use it in GitHub Desktop.
Four Column Footer
footer {
background: yellow;
section {background: pink; padding: 4px;}
@include grid-span(2, 1);
@include layout($gutter: .1) {
.section1 { @include float-span(1, 1);}
.section2 { @include float-span(1, 2);}
.section3 { @include float-span(1, 1);}
.section4 { @include float-span(1, 2);}
}
@include breakpoint($break) {
@include grid-span(4, 1);
.section1 {@include grid-span(1,1);}
.section2 {@include grid-span(1,2);}
.section3 {@include grid-span(1,3);}
.section4 {@include grid-span(1,4);}
}
@include breakpoint($break2) {
@include grid-span(12, 1);
.section1 {@include grid-span(3,1);}
.section2 {@include grid-span(3,4);}
.section3 {@include grid-span(3,7);}
.section4 {@include grid-span(3,10);}
}
@include breakpoint($break3) {
@include grid-span(16, 1);
.section1 {@include grid-span(4,1);}
.section2 {@include grid-span(4,5);}
.section3 {@include grid-span(4,9);}
.section4 {@include grid-span(4,13);}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment