Sha256: d034ceed889c796bbcf4e01036bfd7837c5a102c865372de44442a850e464b5b

Contents?: true

Size: 1.32 KB

Versions: 8

Compression:

Stored size: 1.32 KB

Contents

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

@import "../common";

@include export("grid") {
    // Row wrapper
    #{$grid-class} {
        @include grid-row;
    }

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

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

            .push-#{$i} { #{$align-direction}: $span; }
            .pull-#{$i} { #{$align-opposite-direction}: $span; }
        }
    }

    // Responsive 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 {
                    .#{$size}-push-#{$i} { #{$align-direction}: $span; }
                    .#{$size}-pull-#{$i} { #{$align-opposite-direction}: $span; }
                }
            }
        }
    }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
titon-toolkit-2.1.9 scss/toolkit/components/grid.scss
titon-toolkit-2.1.8 scss/toolkit/components/grid.scss
titon-toolkit-2.1.7 scss/toolkit/components/grid.scss
titon-toolkit-2.1.6 scss/toolkit/components/grid.scss
titon-toolkit-2.1.5 scss/toolkit/components/grid.scss
titon-toolkit-2.1.4 scss/toolkit/components/grid.scss
titon-toolkit-2.1.3 scss/toolkit/components/grid.scss
titon-toolkit-2.1.2 scss/toolkit/components/grid.scss