Skip to content

Instantly share code, notes, and snippets.

@starryeyez024
Created June 26, 2014 14:12
Show Gist options
  • Save starryeyez024/caf5b22190a5b2c33d3b to your computer and use it in GitHub Desktop.
Save starryeyez024/caf5b22190a5b2c33d3b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<body>
<div class="test">
Test test test
</div>
</body>
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// Breakpoint (v2.4.2)
// Singularity.gs (v1.2.1)
// ----
@import "breakpoint"
@import "compass"
@import "singularitygs"
/**** Breakpoints ****/
// For use with max-width only:
// +breakpoint(max-width $tab-l)
$phone-p: 320px
$phone-l: 480px
$tab-p: 640px
$tab-l: 770px
$desk: 960px
// For use with min-width (default breakpoint mixin)
// +breakpoint($desktop)
$smartphone-portrait: ($phone-p + 1px)
$smartphone-landscape: ($phone-l + 1px)
$tablet-portrait: ($tab-p + 1px)
$tablet-landscape: ($tab-l + 1px)
$desktop: ($desk + 1px) , 'no-query' '.lt-ie9'
// extras
$print: 'not screen'
$hidpi: min-resolution 143dpi
$mobile: max-width $desk
//$breakpoint-to-ems: true
//*** EXAMPLE SASS CODE ****/
body
// "desktop menu" styles
+breakpoint($desktop)
.test
background: blue
color: white
padding: 5px
// "mobile menu" styles
+breakpoint(max-width $desk)
.test
border: solid 2px pink
padding: 5px
/*** Breakpoints *** */
@media (min-width: 961px) {
body .test {
background: blue;
color: white;
padding: 5px;
}
}
@media (max-width: 960px) {
body .test {
border: solid 2px pink;
}
}
<body>
<div class="test">
Test test test
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment