Created
February 8, 2013 23:03
-
-
Save w33ble/4742682 to your computer and use it in GitHub Desktop.
Responsive Page Example
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
// load the page layout | |
extends layout | |
block styles | |
!= css("index") | |
block content | |
header This is a responsive page | |
section.activities | |
ul | |
li Some | |
li List | |
li Of | |
li Things | |
section.map | |
div Map goes here |
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
@import "main" | |
.activities | |
column(4) | |
@media phone | |
column(12) | |
background-color: red | |
.map | |
column(8) | |
hideOn('phone') | |
background-color: yellow |
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
@import "lib/grid" //semantic.gs, sans the body style | |
// Semantic GridSystem settings | |
total-width = 100% | |
// Device media queries | |
tablet = "(min-width: 768px) and (max-width: 979px)" | |
phone = "(max-width: 767px)" | |
// Useful mixins | |
hideOn(device) | |
display: inherit // bug in stylus, we need a core rule | |
@media device | |
display: none !important | |
showOn(device) | |
display: none | |
@media device | |
display: inherit !important |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment