Created
May 14, 2012 10:22
-
-
Save donnywals/2693123 to your computer and use it in GitHub Desktop.
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
/** | |
* Responsive blog layout te doen | |
*/ | |
article { | |
display: inline-block; | |
vertical-align: top; | |
} | |
nav li { | |
display: block; | |
} | |
body { | |
max-width: 1200px; | |
margin: 0 auto; | |
padding: 0 1em; | |
} | |
nav ul, | |
nav li { | |
margin: 0; | |
padding: 0; | |
list-style:none; | |
} | |
nav li { | |
border: solid #333; | |
border-width: 0 0 1px; | |
} | |
nav a { | |
display: block; | |
line-height: 1.8; | |
padding: .2em; | |
} | |
* { | |
box-sizing: border-box; | |
} | |
@media (min-width:460px) { | |
article { | |
width: 49%; | |
} | |
article:first-of-type { | |
width: 100%; | |
font-size: 1.1em; | |
} | |
} | |
@media (min-width: 750px) { | |
article { | |
width: 32% | |
} | |
article:nth-of-type(-n+2) { | |
width: 49%; | |
font-size: 1.1em; | |
} | |
nav a, nav li{ | |
display: inline; | |
font-size: 1.3em; | |
} | |
h1 { | |
margin-bottom: 1em; | |
border: 1px solid red; | |
} | |
nav { | |
position: absolute; | |
top: 3.5em; | |
} | |
} | |
@media (min-width: 1000px) { | |
article:nth-of-type(-n+3) { | |
width: 32%; | |
font-size: 1.1em; | |
} | |
article { | |
width: 24%; | |
} | |
} | |
/* | |
De navigatie moet bovenaan de pagina ónder de H1 komen te staan | |
Alle positionering moet met ems gebeuren. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment