Created
November 23, 2012 09:12
-
-
Save ramsesoriginal/4134674 to your computer and use it in GitHub Desktop.
Layout doodles
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
/** | |
* Layout doodles | |
*/ | |
* { | |
box-sizing: border-box; | |
transition: all 0.5s ease; | |
vertical-align: middle; | |
} | |
html { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
font-size: 10px; | |
} | |
body { | |
height: 100%; | |
margin: 0; | |
padding: 0; | |
padding-top: 5rem; | |
padding-bottom: 10rem; | |
position: relative; | |
font-size: 1.6rem; | |
background: #000 url(http://farm8.staticflickr.com/7025/6700944457_31377129aa_o.jpg) center center fixed no-repeat; | |
-moz-background-size: cover; | |
background-size: cover; | |
} | |
header.main { | |
margin-top: -5rem; | |
height: 5rem; | |
} | |
section.main { | |
min-height: 100%; | |
} | |
footer.main { | |
margin-bottom: -10rem; | |
height: 10rem; | |
} | |
.main { | |
padding: 1rem; | |
} | |
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
<header class="main"> | |
Header | |
</header> | |
<section class="main"> | |
Section | |
</section> | |
<footer class="main"> | |
Footer | |
</footer> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment