Created
April 18, 2014 08:52
-
-
Save Wakkos/11032479 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.5) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
/*------------------------------------*\ | |
$GRID | |
\*------------------------------------*/ | |
.grid { | |
display:table; | |
border-collapse: collapse; | |
width:100%; | |
[class^="col-"] { | |
display: table-cell; | |
border:1px solid black; | |
} | |
} | |
$espacios : 4; | |
@for $i from 1 through $espacios { | |
.col-#{$i} { | |
width:(100 / (($espacios * 2) / $i)) *1%; | |
} | |
} |
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 | |
\*------------------------------------*/ | |
.grid { | |
display: table; | |
border-collapse: collapse; | |
width: 100%; | |
} | |
.grid [class^="col-"] { | |
display: table-cell; | |
border: 1px solid black; | |
} | |
.col-1 { | |
width: 12.5%; | |
} | |
.col-2 { | |
width: 25%; | |
} | |
.col-3 { | |
width: 37.5%; | |
} | |
.col-4 { | |
width: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment