Created
December 21, 2011 06:34
-
-
Save dgmid/1504933 to your computer and use it in GitHub Desktop.
Pure CSS3 buttons - Example 2
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
/** | |
* Pure CSS3 buttons - Example 2 | |
*/ | |
/* page styles */ | |
@font-face { | |
font-family: 'ChunkFiveRegular'; | |
src: url('http://www.midwinter-dg.com/blog_demos/css3-buttons/chunkfive-webfont.eot'); | |
src: url('http://www.midwinter-dg.com/blog_demos/css3-buttons/chunkfive-webfont.eot?iefix') format('eot'), | |
url('http://www.midwinter-dg.com/blog_demos/css3-buttons/chunkfive-webfont.woff') format('woff'), | |
url('http://www.midwinter-dg.com/blog_demos/css3-buttons/chunkfive-webfont.ttf') format('truetype'), | |
url('http://www.midwinter-dg.com/blog_demos/css3-buttons/chunkfive-webfont.svg#webfont6hibqX7I') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
body{ | |
font: 11px/15px 'Lucida Grande', sans-serif; | |
background: #eaeaea url(http://www.midwinter-dg.com/blog_demos/css3-buttons/images/body.gif); | |
width: 1000px; | |
margin: 100px auto; | |
} | |
p { | |
width: 300px; | |
margin: 0 auto; | |
text-align: center; | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
} | |
a:link, a:visited { | |
color: #555; | |
text-decoration: none; | |
} | |
a:hover, a:active { | |
color: #0080ff; | |
} | |
/* button styles */ | |
div { | |
margin-bottom: 10px; | |
border-radius: 20px; | |
background-clip: padding-box; | |
padding: 30px; | |
text-align: center; | |
position: relative; | |
background-image: url(http://www.midwinter-dg.com/blog_demos/css3-buttons/images/text.jpg); | |
} | |
li { | |
list-style-type: none; | |
} | |
a.text:link, a.text:visited { | |
color: #fff; | |
text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135; | |
font: 60px/60px 'ChunkFiveRegular'; | |
display: inline-block; | |
} | |
a.text:hover { | |
text-shadow: 0 0 5px #63fdfe, 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 4px 0px #666, 0px 5px 0px #555, 0px 6px 0px #444, 0px 7px 0px #333, 0px 8px 7px #001135; | |
} | |
a.text:active { | |
text-shadow: 0px 1px 0px #999, 0px 2px 0px #888, 0px 3px 0px #777, 0px 5px 7px #001135; | |
margin-top: 4px; | |
line-height: 56px; | |
color: #dcdcdc; | |
} |
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> | |
<div class="but-div" id="text-back"> | |
<ul> | |
<li><a href="http://www.twitter.com/duncanmid" class="text" target="_blank">Twitter</a></li> | |
<li><a href="http://feeds.feedburner.com/MidwinterDg-blog" class="text" target="_blank">Feedburner</a></li> | |
</ul> | |
</div> | |
<p>you can find more examples here:<br /> | |
<a href="http://www.midwinter-dg.com/blog_demos/css3-buttons/" target="_blank">Cross Browser Pure CSS3 Buttons</a></p> | |
</body> |
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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment