3d кнопы, очерёдные)
by Axelvaisper
HTML
<div class="container">
<h3 class="articleTitle">3D</h3>
<a href="javascript: void(0)" title="Button push blue/green" class="button btnPush btnBlueGreen">кнопа</a>
<a href="javascript: void(0)" title="Button push lightblue" class="button btnPush btnLightBlue">кнопа</a>
<a href="javascript: void(0)" title="Button push orange" class="button btnPush btnOrange">кнопа</a>
<a href="javascript: void(0)" title="Button push purple" class="button btnPush btnPurple">кнопа</a>
<div class="clear"></div>
</div>
CSS
.container {
margin: 2em;
}
a.button {
text-decoration:none;
display: block;
position: relative;
float: left;
width: 120px;
padding: 0;
margin: 10px 20px 10px 0;
font-weight: 600;
text-align: center;
line-height: 50px;
color: #FFF;
transition: all 0.2s ;
}
.btnBlueGreen {
background: #00AE68;
}
.btnLightBlue {
background: #5DC8CD;
}
.btnOrange {
background: #FFAA40;
}
.btnPurple {
background: #A74982;
}
.btnBlueGreen.btnPush {
box-shadow: 0 .3em 0 #007144, 0 .3em 1em #00AE68;
}
.btnLightBlue.btnPush {
box-shadow: 0px .3em 0px #1E8185, 0 .3em 1em #1E8185;
}
.btnOrange.btnPush {
box-shadow: 0px .3em 0px #A66615, 0 .3em 1em #A66615;
}
.btnPurple.btnPush {
box-shadow: 0 .3em 0 #6D184B, 0 .3em 1em #6D184B;
}
.btnPush:active {
margin-top: 15px;
margin-bottom: 5px;
}
.btnBlueGreen.btnPush:active {
box-shadow:none;
}
.btnLightBlue.btnPush:active {
box-shadow:none;
}
.btnOrange.btnPush:active {
box-shadow: none;
}
.btnPurple.btnPush:active {
box-shadow: none;
}