List styled with brackets using :before pseudoelement
Created
February 16, 2014 09:02
-
-
Save alvaropinot/9031436 to your computer and use it in GitHub Desktop.
A Pen by NeatNait.
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
<section> | |
<ul> | |
<li class="done">MY LIST</li> | |
<li class="done">OF AWESOME</li> | |
<li>THINGS</li> | |
<li>TO LOVE</li> | |
<li>AND SHARE</li> | |
</ul> | |
</section> | |
<p>made with love at <a href="#">neatnait</a></p> | |
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'> |
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
body{ | |
background:#f03050; | |
font-family: sans-serif; | |
} | |
section{ | |
display:block; | |
width:500px; | |
} | |
section ul{ | |
list-style:none; | |
font-size:50px; | |
letter-spacing:-3px; | |
font-weight:bold; | |
} | |
li.done{ | |
text-decoration:line-through; | |
color:rgba(0,0,0,.6); | |
} | |
section:before{ | |
float:right; | |
position:relative; | |
display:block; | |
bottom:135px; | |
content:"}"; | |
font-size:350px; | |
font-family: 'Open Sans', sans-serif; | |
color:rgba(0,0,0,.6); | |
} | |
p{ | |
color:rgba(255,255,255,.5); | |
position:absolute; | |
width:100%; | |
bottom:10em; | |
font-weight:300; | |
text-align:center; | |
} | |
a{ | |
text-decoration:none; | |
color:#fff; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment