Created
September 14, 2011 17:26
-
-
Save HashNuke/1217164 to your computer and use it in GitHub Desktop.
Semantic CSS with Twitter's Bootstrap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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