Skip to content

Instantly share code, notes, and snippets.

@trub
Created April 10, 2014 21:37
Show Gist options
  • Select an option

  • Save trub/10425783 to your computer and use it in GitHub Desktop.

Select an option

Save trub/10425783 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// Bourbon (v)
// Neat (v)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
$grid-columns: 4;
//float right(RT) margin left(L)
//$default-layout-direction: RTL;
//float left (LT) margin right(R)
//$default-layout-direction: LTR;
.responsive-element {
@include media(max-width 1024px max-width 320px 8) {
//always need the concept of context so at given
// you can redefine scope of context @ breakpoint
@include span-columns(3 4);
}
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@media screen and (max-width: 1024px) and (max-width: 320px) {
.responsive-element {
float: left;
display: block;
margin-right: 7.42297%;
width: 73.14426%;
}
.responsive-element:last-child {
margin-right: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment