Sha256: 4afca91c6595d96555f39b40fa23bdf828c17973005237ee7db0b7129e89d188
Contents?: true
Size: 887 Bytes
Versions: 2
Compression:
Stored size: 887 Bytes
Contents
// This writes classes, IDs, or silent objects for you to extend or use in your HTML. They can be written to different breakpoints to extend or call into your HTML as needed. @mixin grid-objects($prefix: a, $columns: $columns, $gutter: $gutter, $padding: $padding, $selector: "%") { $grouped-styles: true; // counter keeps track of the starting position $count: 0; %#{$prefix}column { @include grid-structure($output, 1, 1, $columns, $gutter, $padding, common); } // This function now labels object prefix+span.location @for $i from 1 through column-count($columns) { @for $n from 1 through (column-count($columns) - $count) { #{$selector}#{$prefix}#{$n}-#{$count + 1} { @extend %#{$prefix}column; @include grid-structure($output, $n, $count + 1, $columns, $gutter, $padding, section); } } $count: $count + 1; } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
singularitygs-1.0.alpha.2 | stylesheets/singularitygs/mixins/_grid-objects.scss |
singularitygs-1.0.alpha.1 | stylesheets/singularitygs/mixins/_grid-objects.scss |