Skip to content

Instantly share code, notes, and snippets.

@hsquareweb
Created November 9, 2015 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hsquareweb/490bfefcc9fa8a24817c to your computer and use it in GitHub Desktop.
Save hsquareweb/490bfefcc9fa8a24817c to your computer and use it in GitHub Desktop.
Breakpoints
// Breakpoints
@mixin bp($point) {
@if $point == wide {
@media (max-width: $bp-wide) { @content; }
}
@else if $point == full {
@media (max-width: $bp-full) { @content; }
}
@else if $point == landscape {
@media (max-width: $bp-landscape) { @content; }
}
@else if $point == portrait {
@media (max-width: $bp-portrait) { @content; }
}
@else if $point == mobile {
@media (max-width: $bp-mobile) { @content; }
}
@else if $point == smmobile {
@media (max-width: $bp-smmobile) { @content; }
}
}
// Layout widths
$bp-wide: 1400px;
$bp-full: 1200px;
$bp-landscape: 1024px;
$bp-portrait: 768px;
$bp-mobile: 660px;
$bp-smmobile: 480px;
$container-width: 1000px;
$max-width: 1440px;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment