Pressable Buttons - Dark

by lovromar

HTML

<h1>Pressable CSS Buttons</h1>
<hr>
<p>Red</p>
<a class="button large regular red" href="javascript:void(0);">Button</a>
<a class="button medium regular red" href="javascript:void(0);">Button</a>
<a class="button small regular red" href="javascript:void(0);">Button</a>
<a class="button large square red" href="javascript:void(0);">Button</a>
<a class="button medium square red" href="javascript:void(0);">Button</a>
<a class="button small square red" href="javascript:void(0);">Button</a>
<a class="button large round red" href="javascript:void(0);">Button</a>
<a class="button medium round red" href="javascript:void(0);">Button</a>
<a class="button small round red" href="javascript:void(0);">Button</a>
<hr>
<p>Orange</p>
<a class="button large regular orange" href="javascript:void(0);">Button</a>
<a class="button medium regular orange" href="javascript:void(0);">Button</a>
<a class="button small regular orange" href="javascript:void(0);">Button</a>
<a class="button large square orange" href="javascript:void(0);">Button</a>
<a class="button medium square orange" href="javascript:void(0);">Button</a>
<a class="button small square orange" href="javascript:void(0);">Button</a>
<a class="button large round orange" href="javascript:void(0);">Button</a>
<a class="button medium round orange" href="javascript:void(0);">Button</a>
<a class="button small round orange" href="javascript:void(0);">Button</a>
<hr>
<p>Yellow</p>
<a class="button large regular yellow" href="javascript:void(0);">Button</a>
<a class="button medium regular yellow" href="javascript:void(0);">Button</a>
<a class="button small regular yellow" href="javascript:void(0);">Button</a>
<a class="button large square yellow" href="javascript:void(0);">Button</a>
<a class="button medium square yellow" href="javascript:void(0);">Button</a>
<a class="button small square yellow" href="javascript:void(0);">Button</a>
<a class="button large round yellow" href="javascript:void(0);">Button</a>
<a class="button medium round...

CSS

</style>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'>
<style>

body {
    background: #333;
    display: inline-block;
    font-size: 100%;
    margin: 0 auto;
    padding: 6em;
    text-align: left;
}
h1 {
    color: #888;
    font-family: 'open sans', sans-serif;
    font-size: 3em;
    font-weight: bold;
    line-height: 1;
}
p {
    color: #888;
    display: inline-block;
    font-family: 'open sans', sans-serif;
    font-size: 1em;
    font-weight: bold;
    line-height: 1;
    margin: -1em 1em 0 0;
    width: 3em;
    vertical-align: middle;
}
hr {
    border: 1px solid #888;
    margin: 0 0 1em 0;
}

/* Button */

.button {
    background: #999;
    border: none;
    border-radius: .5em;
    box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.25),
                inset 0 -.2em 0 hsla(0,0%,100%,.1),
                inset 0 -.25em 0 hsla(0,0%,0%,.5);
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: sans-serif;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 .5em 1em;
    padding: .5em 1em .75em;
    position: relative;
    text-decoration: none;
    vertical-align: middle;
}
.button:after {
    background: hsla(0,0%,0%,.1);
    border-radius: .75em;
    bottom: -.4em;
    content: '';
    left: -.4em;
    position: absolute;
    right: -.4em;
    top: -.15em;
    z-index: -1;
}
.button:hover {
    outline: none;
}
.button:hover,
.button:focus {
    box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.25),
                inset 0 -.2em 0 hsla(0,0%,100%,.1),
                inset 0 -.25em 0 hsla(0,0%,0%,.5),
                inset 0 0 0 3em hsla(0,0%,100%,.2);
}
.button:active {
    box-shadow: inset 0 0 0 1px hsla(0,0%,0%,.25),
                inset 0 0 0 3em hsla(0,0%,100%,.2);
    margin-top: .25em;
    outline: none;
    padding: .5em 1em;
}
.button:active:after {
    top: -.4em;
}

/* Large */

.large {
    font-size: 1.25em;
}

/* Medium */

.medium {
    font-size:...