Skip to content

Instantly share code, notes, and snippets.

@hatefulcrawdad
Created June 28, 2012 04:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatefulcrawdad/3009035 to your computer and use it in GitHub Desktop.
Save hatefulcrawdad/3009035 to your computer and use it in GitHub Desktop.
Semantic Grid
header { @include outerRow();
aside { @include column(4); }
section { @include column(8);
article { @include innerRow();
header { @include column(2);
mid-width: 0; }
div { @include column(10); }
}
}
}
@chris-morgan
Copy link

To match the HTML this is for, the selector in the second line should be aside, not article.

@hatefulcrawdad
Copy link
Author

thanks!

@yogoo
Copy link

yogoo commented Jul 22, 2012

div { @include columns(10); }

should be

div { @include column(10); }

remove trailing 's' in 'columns'

@hced
Copy link

hced commented Aug 26, 2012

I've never seen the mid-width property before, and would like to read up on it. Does anyone know where it is documented? Is it proprietary to SCSS; I couldn't find it in Mozilla MDN's CSS3 documentation.

@datashaman
Copy link

Why would the outer container be a header element? Seems like the whole page is in there, which means it should be body or something else just inside body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment