Sha256: d954e1343bb372b79c9aac25708bb10f87839f9ee7bad27facf73bf5f797e531
Contents?: true
Size: 553 Bytes
Versions: 59
Compression:
Stored size: 553 Bytes
Contents
@mixin respond-to($breakpoint) { @if map-has-key($breakpoints, $breakpoint) { @media #{map-get($breakpoints, $breakpoint)} { @content; } } @else { @warn 'Unfortunately, no value could be retrieved from `#{$breakpoint}`. ' + 'Please make sure it is defined in `$breakpoints` map.'; } } @mixin orientation($position) { @if $position == landscape { @media only screen and (orientation:landscape) { @content; } } @else if $position == portrait { @media only screen and (orientation : portrait) { @content; } } }
Version data entries
59 entries across 34 versions & 1 rubygems