Created
March 6, 2012 13:05
-
-
Save bennyschudel/1986171 to your computer and use it in GitHub Desktop.
Stepnavigation
This file contains 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
/** | |
* Stepnavigation | |
*/ | |
body { | |
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 12px; | |
} | |
ul { | |
list-style-type: none; | |
margin: 0; | |
padding: 0; | |
position: relative; | |
font-weight: bold; | |
text-transform: uppercase; | |
letter-spacing: 0.2em; | |
} | |
ul li { | |
height: 40px; | |
line-height: 40px; | |
padding: 0 20px 0 25px; | |
margin: 0 4px 0 0; | |
float: left; | |
background-color: #777; | |
color: white; | |
position: relative; | |
cursor: pointer; | |
} | |
ul li:after { | |
content: ""; | |
position: absolute; | |
right: -10px; | |
top: 10px; | |
width: 0; | |
height: 0; | |
border-style: solid; | |
border-width: 10px 0 10px 10px; | |
border-color: transparent transparent transparent #777; | |
z-index: 1; | |
} | |
ul li:before { | |
content: ""; | |
position: absolute; | |
right: -15px; | |
top: 5px; | |
width: 0; | |
height: 0; | |
border-style: solid; | |
border-width: 15px 0 15px 15px; | |
border-color: transparent transparent transparent white; | |
z-index: 1; | |
} | |
ul li:hover { | |
background-color: #333; | |
} | |
ul li:hover:after { | |
border-left-color: #333; | |
} | |
ul li:last-child:before, | |
ul li:last-child:after { | |
content: none; | |
} |
This file contains 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
<ul> | |
<li>Step 1</li> | |
<li>Step 2</li> | |
<li>Step 3</li> | |
</ul> |
This file contains 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","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment