Skip to content

Instantly share code, notes, and snippets.

@james2doyle
Forked from bennyschudel/dabblet.css
Created September 18, 2012 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save james2doyle/3741210 to your computer and use it in GitHub Desktop.
Save james2doyle/3741210 to your computer and use it in GitHub Desktop.
Stepnavigation
/**
* 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;
}
<ul>
<li>Step 1</li>
<li>Step 2</li>
<li>Step 3</li>
</ul>
{"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