Sha256: 90c8c678e8a041c4864ffc89726272e8f31916e08fc572bf4270dd37b3ec6f5e

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

@mixin cleared {
  zoom: 1;

  &:before,
  &:after {
    content: " ";
    display: table;
  }

  &:after {
    clear: both;
  }
}

@mixin unstyled-list {
  list-style: none;
  margin: 0;
  padding: 0;
} // @mixin unstyled-list

@function breakpoint($width) {
  @if map-has-key($breakpoints, $width) {
    @return map-get($breakpoints, $width);
  }

  @warn "No breakpoint called `#{$width}` exists in the `$breakpoints` map";
  @return null;
} // @function breakpoint()

@mixin min-width($width) {
  @media only screen and (min-width: #{breakpoint($width)}) {
    @content;
  }
} // @mixin min-width

@mixin max-width($width) {
  @media only screen and (max-width: #{breakpoint($width) - 1px}) {
    @content;
  }
} // @mixin max-width

@mixin between-widths($min-width, $max-width) {
  @media only screen and (min-width: #{breakpoint($min-width)}) and (max-width: #{breakpoint($max-width) - 1px}) {
    @content;
  }
} // @mixin between-widths

@mixin desktop-width {
  max-width: breakpoint(desktop_small);
  margin: 0 auto;
} // @mixin desktop-width

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
compass-excess-0.1.0 stylesheets/_layout.scss
compass-excess-0.0.4 stylesheets/_layout.scss
compass-excess-0.0.3 stylesheets/_layout.scss
compass-excess-0.0.2 stylesheets/_layout.scss
compass-excess-0.0.1 stylesheets/_layout.scss