Skip to content

Instantly share code, notes, and snippets.

@andymerskin
Created July 18, 2012 21:07
Show Gist options
  • Save andymerskin/3138906 to your computer and use it in GitHub Desktop.
Save andymerskin/3138906 to your computer and use it in GitHub Desktop.
Darkport Buttons CSS
body {
background: #222;
}
#main {
margin: 10%;
}
h2 {
margin: 0;
padding: 0;
font-family: "HelveticaNeue";
font-weight: 400;
font-size: 20px;
line-height: 20px;
color: #ccc;
}
p {
margin: 5px 0 25px 0;
font-family: "HelveticaNeue";
font-weight: 500;
font-size: 14px;
line-height: 20px;
color: #999;
}
#nav {
list-style: none;
padding: 0;
margin: 0;
}
#nav > li {
float: left;
margin: 0 10px 0 0;
}
.button {
display: block;
width: 100px;
height: 25px;
font-family: "HelveticaNeue-Bold";
font-size: 12px;
line-height: 24px;
color: hsla(0,0%,100%,0.8);
text-decoration: none;
background: #333;
border: 1px solid transparent;
border-top: 1px solid hsla(0,0%,100%,0.3);
border-radius: 2px;
box-shadow: 0 1px 4px 0 hsla(0,0%,0%,0.5), inset 0 0 8px 0 hsla(0,0%,100%,0.05);
text-align: center;
-webkit-transition: all 0.05s linear;
}
.button:active {
border: 1px solid hsla(0,0%,0%,0.5);
/*border-bottom: 1px solid hsla(0,0%,100%,0.3);*/
box-shadow: 0 1px 1px 0px hsla(0,0%,100%,0.3);
background: #303030;
line-height: 26px;
color: hsla(0,0%,100%,0.5);
}
.button:hover {
background: #363636;
color: #fff;
}
.button:visited {
color: hsla(0,0%,100%,0.8);
}
<div id="main" role="main">
<h2>Darkport Buttons</h2>
<p>100% handcrafted CSS3 buttons.</p>
<ul id="nav">
<li><a href="#" class="button">Home</a></li>
<li><a href="#" class="button">Work</a></li>
<li><a href="#" class="button">Resume</a></li>
<li><a href="#" class="button">Contact</a></li>
</ul>
</div>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment