Created
November 9, 2015 21:47
-
-
Save hsquareweb/490bfefcc9fa8a24817c to your computer and use it in GitHub Desktop.
Breakpoints
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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