Skip to content

Instantly share code, notes, and snippets.

@jessie-ross
Created June 21, 2012 04:21
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 jessie-ross/2963819 to your computer and use it in GitHub Desktop.
Save jessie-ross/2963819 to your computer and use it in GitHub Desktop.
Less Error
@pageWidth: 1000px
@columns: 4;
@gutterWidth: 60px;
@totalGutterWidth: ( @columns - 1 ) * @gutterWidth;
@columnWidth: ( @pageWidth - @totalGutterWidth ) / @columns;
@media screen and (max-width: 500px /* @columnWidth * 3 + @gutterWidth * ( 3 - 1 ) */ ) {
.span-1 {
margin-left: 0;
}
.span-3 {
margin-left: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment