Sha256: 5e61211d0bd92801ef2fef20e6ab0d8754aa837bae28a4a9ac188ef04f7328d6

Contents?: true

Size: 1.14 KB

Versions: 289

Compression:

Stored size: 1.14 KB

Contents

@mixin grid-column-gradient($values...) {
  background-image: deprecated-webkit-gradient(linear, left top, left bottom, $values);
  background-image:  -webkit-linear-gradient(left, $values);
  background-image:     -moz-linear-gradient(left, $values);
  background-image:      -ms-linear-gradient(left, $values);
  background-image:       -o-linear-gradient(left, $values);
  background-image: unquote("linear-gradient(left, #{$values})");
}

@if $visual-grid == true or $visual-grid == yes {
  body:before {
    content: '';
    display: inline-block;
    @include grid-column-gradient(gradient-stops($grid-columns));
    height: 100%;
    left: 0;
    margin: 0 auto;
    max-width: $max-width;
    opacity: $visual-grid-opacity;
    position: fixed;
    right: 0;
    width: 100%;
    pointer-events: none;

    @if $visual-grid-index == back {
      z-index: -1;
    }

    @else if $visual-grid-index == front {
      z-index: 9999;
    }

    @each $breakpoint in $visual-grid-breakpoints {
      @if $breakpoint != nil {
        @include media($breakpoint) {
          @include grid-column-gradient(gradient-stops($grid-columns));
        }
      }
    }
  }
}

Version data entries

289 entries across 287 versions & 9 rubygems

Version Path
smock-0.1.268 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.267 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.266 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.265 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.264 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.263 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.262 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.261 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.260 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.259 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.258 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.256 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.255 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.254 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.253 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.252 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.251 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.250 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.249 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss
smock-0.1.247 app/assets/stylesheets/thirdparty/neat/grid/_visual-grid.scss