Created
February 14, 2012 09:41
-
-
Save ktmud/1825369 to your computer and use it in GitHub Desktop.
responsive test jade template
This file contains 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
!!! | |
html | |
head | |
title Responsive Test | |
<style>body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }.wrapper { width: 6000px; }.frame { float: left; }h2 { margin: 0 0 5px 0; }iframe { margin: 0 20px 20px 0; border: 1px solid #666; }</style> | |
body | |
- sizes = [ [240, 320, 'mobile'], [320, 480, 'mobile'], [480, 640, 'small tablet'], [768, 1024, 'tablet - portrait'], [1024, 768, 'tablet - landscape'], [1200, 800, 'desktop'], ]; | |
.wrapper | |
each item in sizes | |
.frame | |
h2 #{item[0]}<span> x #{item[1]}</span> <small>(#{item[2]})</small> | |
<iframe src="#{url}" width="#{item[0]}" height="#{item[1]}"></iframe> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment