Skip to content

Instantly share code, notes, and snippets.

@HashNuke
Created September 14, 2011 17:26
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 HashNuke/1217164 to your computer and use it in GitHub Desktop.
Save HashNuke/1217164 to your computer and use it in GitHub Desktop.
Semantic CSS with Twitter's Bootstrap
/* Next time you want to make a row or column,
use the .grid_row or .grid_col(n) mixin and be happy!
*/
.post {
.grid_row;
.post_date {
.grid_cols(3);
}
.post_title {
.grid_cols(13);
}
}
.grid_row {
zoom: 1;
margin-bottom: 18px;
margin-left: -20px;
:before, :after {
display: table;
content: "";
}
:after {
clear: both;
}
}
.grid_cols(@cols) {
.columns(@cols);
display: inline;
float: left;
margin-left: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment