59 lines
1.5 KiB
CSS
59 lines
1.5 KiB
CSS
/**
|
|
* Chunky 3D Web Buttons
|
|
*
|
|
* Inspiration was taken from:
|
|
* - http://www.premiumpixels.com/freebies/chunky-3d-webbuttons-psd/
|
|
*/
|
|
|
|
/**
|
|
* Shadow
|
|
*/
|
|
.button::before {
|
|
-webkit-border-radius: 3px;
|
|
-moz-border-radius: 3px;
|
|
-webkit-box-shadow: #959595 0 2px 5px;
|
|
-moz-box-shadow: #959595 0 2px 5px;
|
|
border-radius: 3px;
|
|
box-shadow: #959595 0 2px 5px;
|
|
content: "";
|
|
display: block;
|
|
height: 100%;
|
|
left: 0;
|
|
padding: 2px 0 0;
|
|
position: absolute;
|
|
top: 0;
|
|
width: 100%; }
|
|
|
|
.button:active::before { padding: 1px 0 0; }
|
|
|
|
/**
|
|
* Black
|
|
*/
|
|
.button.black {
|
|
background: #656565;
|
|
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#656565), to(#444));
|
|
background: -moz-linear-gradient(#656565, #444);
|
|
background: linear-gradient(#656565, #444);
|
|
border: solid 1px #535353;
|
|
border-bottom: solid 3px #414141;
|
|
color: #fff;
|
|
text-shadow: 0 1px 0 #2f2f2f;
|
|
padding: 5px;
|
|
}
|
|
|
|
.button.black:hover {
|
|
background: #4c4c4c;
|
|
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#4c4c4c), to(#565656));
|
|
background: -moz-linear-gradient(#4c4c4c, #565656);
|
|
background: linear-gradient(#4c4c4c, #565656);
|
|
border: solid 1px #464646;
|
|
border-bottom: solid 3px #414141;
|
|
}
|
|
|
|
.button.black:active {
|
|
background: #474747;
|
|
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#474747), to(#444));
|
|
background: -moz-linear-gradient(#474747, #444);
|
|
background: linear-gradient(#474747, #444);
|
|
border: solid 1px #2f2f2f;
|
|
box-shadow: inset 0 10px 15px 0 #3e3e3e; } |