~muffinresearch/griddles/trunk

« back to all changes in this revision

Viewing changes to scss/_desktop.scss

  • Committer: Stuart Colville
  • Date: 2012-06-20 23:20:45 UTC
  • Revision ID: git-v1:e5c20b7d9be5a7c3c7df8b0b015bb5baae85266f
provide 3rds as well as regular intervals

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    @include box-sizing(border-box);
16
16
}
17
17
 
18
 
@for $i from 1 through 100 / $percentage-step {
19
 
    .#{$grid-class-prefix}-#{$i * $percentage-step} {
20
 
        @extend .#{$grid-class-prefix}-cont;
21
 
    }
22
 
}
23
 
 
24
 
@for $i from 1 through 100 / $percentage-step{
25
 
    .#{$grid-class-prefix}-#{$i * $percentage-step} {
26
 
        width: 1% * ($i * $percentage-step);
27
 
    }
28
 
}
 
18
@each $i in $percentage-steps {
 
19
    $percentage-step: 100/$i;
 
20
    @for $j from 1 through $i {
 
21
 
 
22
        $suffix: if($j > 1, floor($j * $percentage-step), round($percentage-step));
 
23
        .#{$grid-class-prefix}-#{$suffix}  {
 
24
            @extend .#{$grid-class-prefix}-cont;
 
25
        }
 
26
        .#{$grid-class-prefix}-#{$suffix} {
 
27
            width: percentage(($j * $percentage-step) / 100);
 
28
        }
 
29
    }
 
30
}
 
31