Created
October 21, 2012 08:51
-
-
Save netsi1964/3926405 to your computer and use it in GitHub Desktop.
Sexy CSS3 round buttons
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
<nav> | |
<ul class="nav"> | |
<li><a href="#" class="icon-home"></a></li> | |
<li><a href="#" class="icon-cog"></a></li> | |
<li><a href="#" class="icon-cw"></a></li> | |
<li><a href="#" class="icon-location"></a></li> | |
</ul> | |
</nav> |
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
@font-face { | |
font-family: 'fontello'; | |
src: url('../fonts/fontello.eot'); | |
src: url('../fonts/fontello.eot?#iefix') format('embedded-opentype'), | |
url('../fonts/fontello.woff') format('woff'), | |
url('../fonts/fontello.ttf') format('truetype'), | |
url('../fonts/fontello.svg#fontello') format('svg'); | |
font-weight: normal; font-style: normal; | |
} | |
[class*=" icon-"] { | |
font-family: 'fontello'; | |
font-style: normal; | |
font-size: 90px; | |
speak: none; | |
} | |
.icon-home:after { content: "\2302"; } | |
.icon-cog:after { content: "\2699"; } | |
.icon-cw:after { content: "\27f3"; } | |
.icon-location:after { content: "\e724"; } | |
.nav { | |
list-style: none; | |
text-align: center; | |
} | |
.nav li { | |
position: relative; | |
display: inline-block; | |
margin-right: -4px; | |
} | |
.nav a { | |
display: block; | |
background-color: #f7f7f7; | |
background-image: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#e7e7e7)); | |
background-image: -webkit-linear-gradient(top, #f7f7f7, #e7e7e7); | |
background-image: -moz-linear-gradient(top, #f7f7f7, #e7e7e7); | |
background-image: -ms-linear-gradient(top, #f7f7f7, #e7e7e7); | |
background-image: -o-linear-gradient(top, #f7f7f7, #e7e7e7); | |
color: #a7a7a7; | |
margin: 36px; | |
width: 44px; | |
height: 44px; | |
position: relative; | |
text-align: center; | |
line-height: 44px; | |
border-radius: 50%; | |
box-shadow: 0px 3px 8px #aaa, inset 0px 2px 3px #fff; | |
} | |
.nav a:hover{ | |
text-decoration: none; | |
color: #555; | |
background: #f5f5f5; | |
} | |
.nav li:before { | |
content: ""; | |
display: block; | |
border-top: 1px solid #ddd; | |
border-bottom: 1px solid #fff; | |
width: 100%; | |
height: 1px; | |
position: absolute; | |
top: 50%; | |
z-index: -1; | |
} | |
.nav a:before { | |
content: ""; | |
display: block; | |
background: #fff; | |
border-top: 2px solid #ddd; | |
position: absolute; | |
top: -18px; | |
left: -18px; | |
bottom: -18px; | |
right: -18px; | |
z-index: -1; | |
border-radius: 50%; | |
box-shadow: inset 0px 18px 48px #ddd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment