A Pen by Kevin Imig on CodePen.
Created
January 27, 2015 00:18
-
-
Save Kevinci/065e7e0412de235ed94c to your computer and use it in GitHub Desktop.
yyXrGN
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="wrapper"> | |
| <ul> | |
| <li class="item">Home</li> | |
| <li class="item">About</li> | |
| <li class="item">Hell</li> | |
| <li class="item">Heaven</li> | |
| <li class="item">Origin</li> | |
| </ul> | |
| </div> | |
| <div class="wrapper-two"> | |
| <ul> | |
| <li class="item-two">Home</li> | |
| <li class="item-two">About</li> | |
| <li class="item-two">Hell</li> | |
| <li class="item-two">Heaven</li> | |
| <li class="item-two">Origin</li> | |
| </ul> | |
| </div> |
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
| @import "compass/css3"; | |
| body{ | |
| color: rgba(255,255,255, 1); | |
| background: rgba(31,32,42, 1); | |
| font-family: 'Roboto', sans-serif; | |
| font-weight: light; | |
| } | |
| .wrapper { | |
| margin: 50px auto; | |
| width: 250px; | |
| border-radius: 5px; | |
| border: 1px solid rgba(255,255,255, 0.05); | |
| padding: 5px; | |
| .header { | |
| padding: 15px 0; | |
| text-align: center; | |
| } | |
| .item { | |
| box-sizing: border-box; | |
| color: rgba(255,255,255, 0.05); | |
| background: rgba(255,255,255, 0.05); | |
| height: 45px; | |
| width: 100%; | |
| line-height: 165px; | |
| margin-bottom: 1px; | |
| outline: none; | |
| text-align: center; | |
| transition: all .2s linear; | |
| overflow: hidden; | |
| position: relative; | |
| &:before { | |
| content: "\f219"; | |
| font-family: FontAwesome; | |
| font-style: normal; | |
| font-weight: normal; | |
| font-size: 18px; | |
| color: white; | |
| position: absolute; | |
| line-height: 45px; | |
| left: 12px; | |
| } | |
| &:hover { | |
| background: rgba(255,255,255, 0.15); | |
| line-height: 45px; | |
| color: rgba(255,255,255, .8); | |
| width: 100%; | |
| &:before { | |
| color: rgba(255,255,255, 0.15); | |
| } | |
| } | |
| } | |
| } | |
| .wrapper-two { | |
| margin: 50px auto; | |
| width: 250px; | |
| border-radius: 5px; | |
| border: 1px solid rgba(255,255,255, 0.05); | |
| padding: 5px; | |
| .item-two { | |
| box-sizing: border-box; | |
| color: rgba(255,255,255, 0.05); | |
| background: rgba(255,255,255, 0.05); | |
| height: 45px; | |
| width: 18%; | |
| line-height: 45px; | |
| margin-bottom: 1px; | |
| outline: none; | |
| text-align: center; | |
| transition: all .2s linear; | |
| overflow: hidden; | |
| position: relative; | |
| &:before { | |
| content: "\f219"; | |
| font-family: FontAwesome; | |
| font-style: normal; | |
| font-weight: normal; | |
| font-size: 18px; | |
| color: white; | |
| position: absolute; | |
| line-height: 45px; | |
| left: 12px; | |
| } | |
| &:hover { | |
| background: rgba(255,255,255, 0.15); | |
| line-height: 45px; | |
| color: rgba(255,255,255, .8); | |
| width: 100%; | |
| &:before { | |
| color: rgba(255,255,255, 0.15); | |
| } | |
| } | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment