Created
November 14, 2014 08:41
-
-
Save airen/0f3c327bb4e695ae2bec 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.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
$grid-prefix: span !default; | |
$grid-width: 60px !default; | |
$grid-gutter: 20px !default; | |
%grid { | |
float: left; | |
margin-left: $grid-gutter / 2; | |
margin-right: $grid-gutter / 2; | |
} | |
@for $i from 1 through 12 { | |
.#{$grid-prefix}#{$i}{ | |
width: $grid-width * $i + $grid-gutter * ($i - 1); | |
@extend %grid; | |
} | |
} |
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
.span1, .span2, .span3, .span4, .span5, .span6, .span7, .span8, .span9, .span10, .span11, .span12 { | |
float: left; | |
margin-left: 10px; | |
margin-right: 10px; | |
} | |
.span1 { | |
width: 60px; | |
} | |
.span2 { | |
width: 140px; | |
} | |
.span3 { | |
width: 220px; | |
} | |
.span4 { | |
width: 300px; | |
} | |
.span5 { | |
width: 380px; | |
} | |
.span6 { | |
width: 460px; | |
} | |
.span7 { | |
width: 540px; | |
} | |
.span8 { | |
width: 620px; | |
} | |
.span9 { | |
width: 700px; | |
} | |
.span10 { | |
width: 780px; | |
} | |
.span11 { | |
width: 860px; | |
} | |
.span12 { | |
width: 940px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment