Created
July 31, 2014 05:09
-
-
Save etoxin/f1d3a7ef40c329e5cf5e to your computer and use it in GitHub Desktop.
Simple SCSS Grid
This file contains 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
<div class="row"> | |
<div class="grid-6">Column A</div> | |
<div class="grid-6">Column B</div> | |
</div> | |
<div class="row"> | |
<div class="grid-4">Column A</div> | |
<div class="grid-4">Column B</div> | |
<div class="grid-4">Column C</div> | |
</div> | |
<div class="row"> | |
<div class="grid-8">Column B</div> | |
<div class="grid-4">Column C</div> | |
</div> |
This file contains 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
// grids | |
.row{ | |
@for $i from 1 through 12 { | |
.grid-#{$i} { | |
width: 100% / 12 * $i; | |
float: left; | |
} | |
} | |
clear: both | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment