4 changed files with 56 additions and 2 deletions
@ -0,0 +1,47 @@ |
|||||
|
@totalCell: 24; |
||||
|
.col-width(@col: 1, @total: @totalCell){ |
||||
|
percentage($col/$total) |
||||
|
} |
||||
|
.row { |
||||
|
@include clearfix; |
||||
|
@include media(xs) { |
||||
|
@for $i from 1 through $totalCell { |
||||
|
.col-xs-#{$i} { |
||||
|
float: left; |
||||
|
} |
||||
|
.col-xs-#{$i} { |
||||
|
width: col-width($i); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
@include media(sm) { |
||||
|
@for $i from 1 through $totalCell { |
||||
|
.col-sm-#{$i} { |
||||
|
float: left; |
||||
|
} |
||||
|
.col-sm-#{$i} { |
||||
|
width: col-width($i); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
@include media(md) { |
||||
|
@for $i from 1 through $totalCell { |
||||
|
.col-md-#{$i} { |
||||
|
float: left; |
||||
|
} |
||||
|
.col-md-#{$i} { |
||||
|
width: col-width($i); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
@include media(lg) { |
||||
|
@for $i from 1 through $totalCell { |
||||
|
.col-lg-#{$i} { |
||||
|
float: left; |
||||
|
} |
||||
|
.col-lg-#{$i} { |
||||
|
width: col-width($i); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue