Sha256: 5be64f34659df97e32ca1deeebacb4df79b9f11e650862962def119d1f0dbca7
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 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 { max-width: breakpoint(desktop_medium); margin: 0 auto; } // @mixin desktop-width
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
compass-excess-0.3.1 | stylesheets/_layout.scss |
compass-excess-0.3.0 | stylesheets/_layout.scss |
compass-excess-0.2.1 | stylesheets/_layout.scss |