@import "zen/grids"; // Specify the column background color. $bg-grid-color: #ffdede !default; // // This mixin currently requires the following markup at the top of the responsive container (e.g. body or div#page, etc.). //

// 123456789101112131415161718192021222324252627282930 // 123456789101112131415161718192021222324252627282930 //

// @mixin -experimental-bg-grid( $column-count: $zen-column-count, $gutter-width: $zen-gutter-width, $grid-color: $bg-grid-color, $grid-width: $zen-grid-width, $flow-direction: $zen-float-direction ) { // Internal variables. $dir: $flow-direction; @if $zen-reverse-all-floats { $dir: zen-direction-flip($dir); } $rev: zen-direction-flip($dir); $font-size: 16px; $line-height: 24px; $color-bg: #fff; @include zen-grid-container; position: absolute; position: fixed; z-index: -1; margin-left: auto; margin-right: auto; width: $grid-width; height: 100%; font-size: $font-size; line-height: $line-height; font-weight: bold; font-family: sans-serif; background-color: $color-bg; span { @include zen-grid-item-base; padding: 0; text-align: center; color: $color-bg; @include text-shadow(darken($grid-color, 75%) 0 0 4px); } @for $i from 1 through $column-count { .bgcol-#{$i} { @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $dir, $auto-include-item-base: false); display: block; // Override display: none applied for grids with different column numbers. height: 100%; margin-bottom: -($line-height); background-color: $grid-color; border: { left: zen-half-gutter($gutter-width) solid $color-bg; right: zen-half-gutter($gutter-width) solid $color-bg; } } .bgcolrev-#{$i} { @if $i == 1 { @include zen-clear(); } @include zen-grid-item(1, $i, $column-count: $column-count, $gutter-width: $gutter-width, $float-direction: $rev, $auto-include-item-base: false); display: block; // Override display: none applied for grids with different column numbers. } } @for $i from ($column-count + 1) through 30 { .bgcol-#{$i}, .bgcolrev-#{$i} { display: none; } } }