Skip to content

Instantly share code, notes, and snippets.

@gearsdigital
Created September 2, 2015 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gearsdigital/547322b2b0357a2a838e to your computer and use it in GitHub Desktop.
Save gearsdigital/547322b2b0357a2a838e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$total-columns: 12;
%grid {
float:left;
margin:0;
padding:0 2%;
}
@for $i from 1 through $total-columns {
.col-xs-#{$i} {
@extend %grid;
width: ($i / $total-columns) * 100%;
}
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left;
margin: 0;
padding: 0 2%;
}
.col-xs-1 {
width: 8.33333%;
}
.col-xs-2 {
width: 16.66667%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-4 {
width: 33.33333%;
}
.col-xs-5 {
width: 41.66667%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-7 {
width: 58.33333%;
}
.col-xs-8 {
width: 66.66667%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-10 {
width: 83.33333%;
}
.col-xs-11 {
width: 91.66667%;
}
.col-xs-12 {
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment