Created
July 6, 2012 17:50
-
-
Save phongjalvn/3061599 to your computer and use it in GitHub Desktop.
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
| [class*="icon-"] { | |
| font-family: 'fontello'; | |
| font-style: normal; | |
| font-size: 3em; | |
| speak: none; | |
| } | |
| .icon-home:after { content: "\2602"; } | |
| .icon-cog:after { content: "\2699"; } | |
| .icon-cw:after { content: "\27f3"; } | |
| .icon-location:after { content: "\2629"; } | |
| * { | |
| -webkit-box-sizing: border-box; | |
| -moz-box-sizing: border-box; | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| html { | |
| color: #444; | |
| font-size: 100%; | |
| background: #f7f7f7 url(http://subtlepatterns.com/patterns/old_wall.png) repeat center top; | |
| } | |
| body { | |
| font-family: Cambria, Georgia, "Times New Roman", Times, serif; | |
| text-rendering: optimizeLegibility; | |
| -webkit-font-smoothing: antialiased; | |
| font-size:18px; | |
| font-size:1.125rem; | |
| line-height: 1.5; | |
| } | |
| a { | |
| text-decoration: none; | |
| color: #DD6C4F; | |
| } | |
| a:hover { | |
| text-decoration:underline; | |
| } | |
| a:focus { | |
| outline: none; | |
| } | |
| .page-wrap { | |
| width: 960px; | |
| margin: 80px auto; | |
| } | |
| .nav { | |
| list-style: none; | |
| text-align: center; | |
| } | |
| .nav li { | |
| position: relative; | |
| display: inline-block; | |
| margin-right: -4px; /* See: http://css-tricks.com/fighting-the-space-between-inline-block-elements/ */ | |
| } | |
| .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 { | |
| 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: 144px; | |
| height: 144px; | |
| position: relative; | |
| text-align: center; | |
| line-height: 144px; | |
| border-radius: 50%; | |
| box-shadow: 0px 3px 8px #aaa, inset 0px 2px 3px #fff; | |
| } | |
| .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 8px 48px #ddd; | |
| } | |
| .nav a:hover { | |
| text-decoration: none; | |
| color: #555; | |
| background: #f5f5f5; | |
| } |
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
| <div class="page-wrap"> | |
| <nav> | |
| <ul class="nav"> | |
| <li><a href="javascript:void(0);" class="icon-home"></a></li> | |
| <li><a href="javascript:void(0);" class="icon-cog"></a></li> | |
| <li><a href="javascript:void(0);" class="icon-cw"></a></li> | |
| <li><a href="javascript:void(0);" class="icon-location"></a></li> | |
| </ul> | |
| </nav> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment