Skip to content

Instantly share code, notes, and snippets.

@chrisjaure
Created March 12, 2012 02:24
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 chrisjaure/2019329 to your computer and use it in GitHub Desktop.
Save chrisjaure/2019329 to your computer and use it in GitHub Desktop.
cool buttons
/**
* cool buttons
*/
body {
background: #fefefe;
}
ul {
box-shadow: 0 2px 5px rgba(0,0,0,0.15);
display: inline-block;
margin: 0;
padding: 0 0 0 4px;
border-radius: 5px;
border-top: solid 1px #ccc;
}
li {
display: inline-block;
list-style: none;
padding: 8px 15px;
background: #eee;
background-clip: padding-box;
margin-left: -4px;
border: solid 1px #ccc;
border-top-color: #fff;
border-right-width: 0;
transition: box-shadow 300ms;
cursor: pointer;
color: #333;
text-shadow: 1px 1px 1px #fff;
}
li:first-child {
border-radius: 5px 0 0 5px;
}
li:last-child {
border-radius: 0 5px 5px 0;
border-right-width: 1px;
}
li:hover {
background: linear-gradient(#eee, #ddd);
box-shadow: 0 18px 14px -8px rgba(255,255,255,0.4);
}
<ul>
<li>test</li>
<li>test</li>
<li>test</li>
</ul>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment