Skip to content

Instantly share code, notes, and snippets.

@JamyGolden
Last active November 19, 2015 12:19
Show Gist options
  • Save JamyGolden/7f4079c6cc27f8c64f9c to your computer and use it in GitHub Desktop.
Save JamyGolden/7f4079c6cc27f8c64f9c to your computer and use it in GitHub Desktop.
$bp-xs: 480px;
$bp-sm: 768px;
$bp-md: 992px;
$bp-lg: 1200px;
// Mixin: BreakPoint
@mixin bp($point) {
@if $point == xs {
@media (min-width: $bp-xs) {
@content;
}
}
@else if $point == sm {
@media (min-width: $bp-sm) {
@content;
}
}
@else if $point == md {
@media (min-width: $bp-md) {
@content;
}
}
@else if $point == lg {
@media (min-width: $bp-lg) {
@content;
}
}
@else {
@media (min-width: $point) {
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment