Created
February 12, 2012 02:03
-
-
Save erikjung/1805788 to your computer and use it in GitHub Desktop.
Asides Concept
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
/** | |
* Asides Concept | |
*/ | |
* { | |
box-sizing:border-box; | |
margin:0; | |
} | |
html { | |
font-size:16px; | |
background:url(//griddle.it/16-1?num=0&color=fff&horizontal=8) 0 1px; | |
} | |
body { | |
font-family:'Helvetica Neue'; | |
font-size:1.1rem; | |
line-height:1.5rem; | |
padding:2rem; | |
} | |
p { | |
margin-top:1.5rem; | |
} | |
article { | |
background-color:rgba(0,0,0,.05); | |
box-shadow:inset 0 0 0 .5rem rgba(0,0,0,.1); | |
margin:0 auto; | |
overflow:auto; | |
padding:2rem 15rem 2rem 2rem; | |
} | |
article > .group:after { | |
content:""; | |
display:block; | |
clear:both; | |
} | |
article .group > p { | |
float:left; | |
} | |
article aside { | |
float:right; | |
width:15rem; | |
margin-right:-15rem; | |
padding:0 2rem; | |
font-size:1rem; | |
font-style:italic; | |
} | |
h3 { | |
font-size:1.4rem; | |
margin-top:1.5rem; | |
} |
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
<article> | |
<h3>Header</h3> | |
<div class="group"> | |
<p>Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula egestas tincidunt. Nullam risus magna, ornare vitae varius eget, scelerisque a libero. Morbi eu porttitor ipsum. Nullam lorem nisi, posuere quis volutpat eget, luctus nec massa. Pellentesque aliquam lacinia tellus sit amet bibendum. Ut posuere justo in enim pretium scelerisque. Etiam ornare vehicula euismod. Vestibulum at risus augue. Sed non semper dolor. Sed fringilla consequat velit a porta. Pellentesque sed lectus pharetra ipsum.</p> | |
<aside> | |
<p>Morbi eu porttitor ipsum. Nullam lorem nisi, posuere quis volutpat eget, luctus nec massa.</p> | |
</aside> | |
</div> | |
<h3>Header</h3> | |
<div class="group"> | |
<p>Praesent eget neque eu eros interdum malesuada non vel leo. Sed fringilla porta ligula egestas tincidunt. Nullam risus magna, ornare vitae varius eget, scelerisque a libero. Morbi eu porttitor ipsum. Nullam lorem nisi, posuere quis volutpat eget, luctus nec massa. Pellentesque aliquam lacinia tellus sit amet bibendum. Ut posuere justo in enim pretium scelerisque. Etiam ornare vehicula euismod. Vestibulum at risus augue. Sed non semper dolor. Sed fringilla consequat velit a porta. Pellentesque sed lectus pharetra ipsum.</p> | |
<aside> | |
<p>Nullam risus magna, ornare vitae varius eget, scelerisque a libero. Morbi eu porttitor ipsum. Nullam lorem nisi, posuere quis volutpat eget, luctus nec massa.</p> | |
</aside> | |
</div> | |
</article> | |
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
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment