Sha256: f78be6de433f7afacf4d29eb2a5cba9d45d9bedc88706dd88b5579bab96aa01e

Contents?: true

Size: 1.23 KB

Versions: 3

Compression:

Stored size: 1.23 KB

Contents

/**
 * @copyright   2010-2015, The Titon Project
 * @license     http://opensource.org/licenses/BSD-3-Clause
 * @link        http://titon.io
 */

@import "../common";

// Row wrapper
#{$grid-class} {
    @extend %row;
}

// These should be the same for all sizes
#{$grid-class-column}[class*="span-"] {
    @extend %col;
}

// Global Push and pull classes
@if $grid-push-pull {
    @for $i from 1 through 12 {
        $span: grid-span($i, 12);

        .push-#{$i} { left: $span; }
        .pull-#{$i} { right: $span; }
    }
}

// Grid sizes
@each $size, $options in $grid-sizes {
    $size-columns: nth($options, 1);

    @include in-range(nth($options, 2)) {
        #{$grid-class-column}[class*="#{$size}-"] {
            @include grid-column;
        }

        @for $i from 1 through $size-columns {
            $span: grid-span($i, $size-columns);

            #{$grid-class-column}.#{$size}-#{$i} { width: $span; }

            @if $grid-push-pull {
                #{$grid-class-column}.#{$size}-push-#{$i} { left: $span; }
                #{$grid-class-column}.#{$size}-pull-#{$i} { right: $span; }
            }
        }
    }
}

// End capping
#{$grid-class-column}#{$grid-class-end} {
    margin-right: 0 !important;
    float: right !important;
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
titon-toolkit-2.0.0 scss/toolkit/components/grid.scss
titon-toolkit-2.0.0.pre.rc.2 scss/toolkit/components/grid.scss
titon-toolkit-2.0.0.pre.rc.1 scss/toolkit/components/grid.scss