Sha256: b23ae6fbf8db6eef4f0e50892811108abc064637bebb4467606f4fa2dab2b8e6
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
// Responsive Mixins @mixin respond($media) { @if $media == portrait-phones { @media only screen and (max-width: $min-device-width) { @content; } } @else if $media == landscape-phones { @media only screen and (min-width: breakpoint($min-device-width)) and (max-width: breakpoint($tablet-device-width)) { @content; } } @else if $media == all-phones { @media only screen and (max-width: breakpoint($tablet-device-width)) { @content; } } @else if $media == portrait-tablets { @media only screen and (max-width: $tablet-device-width) { @content; } } @else if $media == tablets { @media only screen and (min-width: $tablet-device-width) and (max-width: $document-width - 1) { @content; } } @else if $media == desktop { @media only screen and (min-width: $tablet-device-width) { @content; } } @else if $media == document-width { @media only screen and (max-width: $document-width + 20) { @content; } } @else if $media == large-screens { @media only screen and (min-width: $max-device-width) { @content; } } @else if $media == print { @media print { @content; } } @else { @media only screen and ('#{$media}') { @content; } } }
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
gumby_on_rails-0.0.1 | app/assets/stylesheets/gumby/functions/_responsivity.scss |
middleman-gumby-0.0.1 | vendor/assets/sass/functions/_responsivity.scss |