Created
March 2, 2014 14:35
-
-
Save esteinborn/9307465 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
<h1>Hello World!</h1> | |
<p class="retina-test"></p> | |
<a href="javascript:void((function(d){if(self!=top||d.getElementById('toolbar')&&d.getElementById('toolbar').getAttribute('data-resizer'))return false;d.write('<!DOCTYPE HTML><html style="opacity:0;"><head><meta charset="utf-8"/></head><body><a data-viewport="320x480" data-icon="mobile">Mobile (e.g. Apple iPhone)</a><a data-viewport="320x568" data-icon="mobile" data-version="5">Apple iPhone 5</a><a data-viewport="600x800" data-icon="small-tablet">Small Tablet</a><a data-viewport="768x1024" data-icon="tablet">Tablet (e.g. Apple iPad 2-3rd, mini)</a><a data-viewport="1280x800" data-icon="notebook">Widescreen</a><a data-viewport="1920×1080" data-icon="tv">HDTV 1080p</a><script src="http://lab.maltewassermann.com/viewport-resizer/resizer.min.js"></script></body></html>')})(document));">Resizer</a> |
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
h1 { | |
color: green; | |
} | |
@media (min-width: 30em) { | |
h1 { | |
color: red; | |
} | |
} | |
@media (min-width: 40em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; | |
} | |
} | |
/* Multiple matches must be met */ | |
/*@media (min-width: 40em) and (max-width: 45em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; | |
} | |
}*/ | |
/* Multiple but any one that matches will trigger */ | |
/*@media (min-width: 40em), (min-height: 20em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; | |
} | |
}*/ | |
@media (min-width: 50em) { | |
h1 { | |
color: black; | |
font-size:3em; | |
padding: 2em; | |
} | |
} | |
.retina-test { | |
width:215px; | |
height:269px; | |
background: url(http://i.cubeupload.com/nRYA4l.jpg) no-repeat top left; | |
} | |
/* Correct MQ for pixel ratio */ | |
/*@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){ | |
.retina-test { | |
width:430px; | |
height:538px; | |
background: url(http://i.cubeupload.com/syuSkA.jpg) no-repeat top left; | |
} | |
} | |
*/ | |
/* MQ for showing what it does since you cant fake pixel ratio */ | |
/*@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-width:50em) { | |
.retina-test { | |
width:430px; | |
height:538px; | |
background: url(http://i.cubeupload.com/syuSkA.jpg) no-repeat top left; | |
} | |
}*/ |
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
h1 { | |
color: green; } | |
@media (min-width: 30em) { | |
h1 { | |
color: red; } } | |
@media (min-width: 40em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; } } | |
/* Multiple matches must be met */ | |
/*@media (min-width: 40em) and (max-width: 45em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; | |
} | |
}*/ | |
/* Multiple but any one that matches will trigger */ | |
/*@media (min-width: 40em), (min-height: 20em) { | |
h1 { | |
color: darkblue; | |
background-color: lightblue; | |
} | |
}*/ | |
@media (min-width: 50em) { | |
h1 { | |
color: black; | |
font-size: 3em; | |
padding: 2em; } } | |
.retina-test { | |
width: 215px; | |
height: 269px; | |
background: url(http://i.cubeupload.com/nRYA4l.jpg) no-repeat top left; } | |
/* Correct MQ for pixel ratio */ | |
/*@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){ | |
.retina-test { | |
width:430px; | |
height:538px; | |
background: url(http://i.cubeupload.com/syuSkA.jpg) no-repeat top left; | |
} | |
} | |
*/ | |
/* MQ for showing what it does since you cant fake pixel ratio */ | |
/*@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-width:50em) { | |
.retina-test { | |
width:430px; | |
height:538px; | |
background: url(http://i.cubeupload.com/syuSkA.jpg) no-repeat top left; | |
} | |
}*/ |
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
<h1>Hello World!</h1> | |
<p class="retina-test"></p> | |
<a href="javascript:void((function(d){if(self!=top||d.getElementById('toolbar')&&d.getElementById('toolbar').getAttribute('data-resizer'))return false;d.write('<!DOCTYPE HTML><html style="opacity:0;"><head><meta charset="utf-8"/></head><body><a data-viewport="320x480" data-icon="mobile">Mobile (e.g. Apple iPhone)</a><a data-viewport="320x568" data-icon="mobile" data-version="5">Apple iPhone 5</a><a data-viewport="600x800" data-icon="small-tablet">Small Tablet</a><a data-viewport="768x1024" data-icon="tablet">Tablet (e.g. Apple iPad 2-3rd, mini)</a><a data-viewport="1280x800" data-icon="notebook">Widescreen</a><a data-viewport="1920×1080" data-icon="tv">HDTV 1080p</a><script src="http://lab.maltewassermann.com/viewport-resizer/resizer.min.js"></script></body></html>')})(document));">Resizer</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment