Logical media queries targeting browsers that meet the declared conditions
Documentation: Breakpoints
$small-mobile: "(max-width: 319px)";
$iphone: "(min-device-width: 320px) and (max-device-width: 480px)";
$iphone5: "(min-device-width: 320px) and (max-device-width: 568px)";
$mobile: "(max-width: 480px)";
$not-mobile: "(min-width: 481px)";
$small-tablet: "(max-width: 767px)";
$tablet: "(min-width: 768px)";
$ipad: "(min-width: 768px) and (max-width:1024px)";
$retina-ipad: "(min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2)";
$not-desktop: "(max-width: 1024px)";
$desktop: "(min-width: 1025px)";
$retina: "(-webkit-min-device-pixel-ratio: 1.5)";
.custom_thing { font-size: 1em; color: green; @media #{$mobile} { font-size: 2em; color: blue; } }
.custom_thing { font-size: 1em; color: green; } @media (max-width: 480px) { .custom_thing { font-size: 2em; color: blue; } }
Media queries using these named breakpoints are what make Groundwork responsive — along with some help from Javascript when it's needed for additional functionality.