Created
June 26, 2014 14:12
-
-
Save starryeyez024/caf5b22190a5b2c33d3b to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<body> | |
<div class="test"> | |
Test test test | |
</div> | |
</body> |
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
// ---- | |
// 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 |
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
/*** Breakpoints *** */ | |
@media (min-width: 961px) { | |
body .test { | |
background: blue; | |
color: white; | |
padding: 5px; | |
} | |
} | |
@media (max-width: 960px) { | |
body .test { | |
border: solid 2px pink; | |
} | |
} |
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
<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