-
-
Save devloprs/3b0b59077a9794f1a42bd67f76ebb832 to your computer and use it in GitHub Desktop.
Media breakpoints for Bourbon and Neat
This file contains hidden or 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
// Columns | |
$mobile-portrait-columns: 4; | |
$mobile-landscape-columns: 4; | |
$tablet-portrait-columns: 8; | |
$tablet-landscape-columns: 8; | |
$desktop-columns: 12; | |
// Portrait | |
$iphone-portrait-width: em(320); | |
$ipad-portrait-width: em(768); | |
// Landscape | |
$iphone-landscape-width: em(480); | |
$ipad-landscape-width: em(1024); | |
$desktop-width: em(1200); | |
$largedesktop-width: em(1600); | |
// Breakpoints | |
$mobile-portrait: new-breakpoint( | |
min-width $iphone-portrait-width | |
orientation portrait | |
$mobile-portrait-columns); | |
$tablet-portrait: new-breakpoint( | |
min-width $ipad-portrait-width | |
orientation portrait | |
$tablet-portrait-columns); | |
$mobile-landscape: new-breakpoint( | |
min-width $iphone-landscape-width | |
orientation landscape | |
$mobile-landscape-columns); | |
$tablet-landscape: new-breakpoint( | |
min-width $ipad-landscape-width | |
orientation landscape | |
$tablet-landscape-columns); | |
$tablet-up: new-breakpoint( | |
min-width $ipad-portrait-width | |
$tablet-portrait-columns); | |
$tablet-down: new-breakpoint( | |
max-width $ipad-landscape-width | |
$tablet-landscape-columns); | |
$desktop: new-breakpoint( | |
min-width $desktop-width | |
$desktop-columns); | |
$largedesktop: new-breakpoint( | |
min-width $largedesktop-width | |
$desktop-columns); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment