Sha256: 5f113417799412e2a6b4bb98bde5f08a1bbef0ffd6fb8eba1431e61bbe92391f

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 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 type-of($width) == 'number' {
    @return $width;
  } @elseif type-of($width) == 'string' {
    @if map-has-key($breakpoints, $width) {
      @return map-get($breakpoints, $width);
    }
    @error "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($margin: 0 auto) {
  max-width: breakpoint(desktop_medium);
  margin: $margin;
} // @mixin desktop-width

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
compass-excess-0.5.4 stylesheets/_layout.scss
compass-excess-0.5.3 stylesheets/_layout.scss
compass-excess-0.5.2 stylesheets/_layout.scss
compass-excess-0.5.1 stylesheets/_layout.scss
compass-excess-0.5.0 stylesheets/_layout.scss
compass-excess-0.4.0 stylesheets/_layout.scss