Sha256: d0df28e99ba40acd127ab388a96e440d338df0ea8e33a254df0afc4da83b3a98
Contents?: true
Size: 723 Bytes
Versions: 10
Compression:
Stored size: 723 Bytes
Contents
// Media query // Media query mixin // Usage: // @include mq(md) { // ..medium and up styles // } @mixin mq($name) { // Retrieves the value from the key $value: map-get($media-queries, $name); // If the key exists in the map @if $value { // Prints a media query based on the value @media (min-width: rem($value)) { @content; } } @else { @warn "No value could be retrieved from `#{$media-query}`. " + "Please make sure it is defined in `$media-queries` map."; } } // Responsive container @mixin container { padding-right: $gutter-spacing-sm; padding-left: $gutter-spacing-sm; @include mq(md) { padding-right: $gutter-spacing; padding-left: $gutter-spacing; } }
Version data entries
10 entries across 10 versions & 2 rubygems