@mixin breakpoint($point) { @if $point == mobile { @media (max-width: 640px) { @content; } } @else if $point == tablet { @media (max-width: 768px) { @content; } } @else if $point == laptop { @media (max-width: 1024px) { @content; } } }