Sha256: db629287f5dc0ac23507a87c3afca094c8a91885310d951b5b813a3335b1cad7
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
@mixin breakpoint($min: 0, $max: 0) { $type: type-of($min); @if $type == string { @if $min == sm { @media (max-width: $sm) { @content; } } @else if $min == md { @media (min-width: $sm) and (max-width: $md) { @content; } } @else if $min == lg { @media (min-width: $lg) { @content; } } } @else if $type == number { $query: "all" !default; @if $min != 0 and $max != 0 { $query: "(min-width: #{$min}) and (max-width: #{$max})"; } @else if $min != 0 and $max == 0 { $query: "(min-width: #{$min})"; } @else if $min == 0 and $max != 0 { $query: "(max-width: #{$max})"; } @media #{$query} { @content; } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kube-6.5.2.0 | app/assets/stylesheets/kube/mixins/_breakpoints.scss |