app/assets/stylesheets/twitter/bootstrap/_mixins.scss in anjlab-bootstrap-rails-3.0.1.1 vs app/assets/stylesheets/twitter/bootstrap/_mixins.scss in anjlab-bootstrap-rails-3.0.2.0
- old
+ new
@@ -746,10 +746,11 @@
@mixin calc-grid($index, $class, $type) {
$specifier: '';
@if $type != width {
$specifier: "-#{$type}"
}
+
.col-#{$class}#{$specifier}-#{$index} {
@if $type == width {
width: percentage(($index / $grid-columns));
} @else if $type == push {
left: percentage(($index / $grid-columns));
@@ -760,11 +761,17 @@
}
}
}
@mixin make-grid($columns, $class, $type) {
- @for $i from 1 through $columns {
- @include calc-grid($i, $class, $type);
+ @if $type == width {
+ @for $i from 1 through $columns {
+ @include calc-grid($i, $class, $type);
+ }
+ } @else {
+ @for $i from 0 through $columns {
+ @include calc-grid($i, $class, $type);
+ }
}
}
// Form validation states