Social Buttons Count
Simple social buttons with hit counts. Works with :After, Background Gradient and some Shadows
Simple social buttons with hit counts. Works with :After, Background Gradient and some Shadows
<a href="http://www.dhenriquez.cl/?p=421" data- contador="100" class="facebook"> <span>Facebook</span> </a> <br>
<a href="http://www.dhenriquez.cl/?p=421" data-contador="100" class="facebook"><span>Facebook</span></a><br>
<a href="http://www.dhenriquez.cl/?p=421" data-contador="1k" class="twitter"><span>Twitter</span></a><br>
<a href="http://www.dhenriquez.cl/?p=421" data-contador="1" class="google"><span>Google +</span></a>
/*
/*
Daniel Henriquez
@dhenriquez
http://www.dhenriquez.cl
*/
a{
width:120px;
height:auto;
font-family:Verdana, Geneva, sans-serif;
font-size:10px;
text-decoration:none;
text-transform:uppercase;
text-shadow:0 1px #000;
display:block;
color:#FFF;
border-radius:5px;
border:#000 1px solid;
overflow:hidden;
font-weight:bold;
margin-left:auto;
margin-right:auto;
}
a span{
width:auto;
height:auto;
display:block;
padding:5px;
float:left;
}
a:after{
content:attr(data-contador);
width:auto;
height:auto;
padding:5px;
background:#FFF;
font-size:10px;
border-radius:5px;
color:#000;
float:right;
text-shadow:none;
text-align:center;
}
.facebook{
border:#03C 1px solid;
background-image: linear-gradient(bottom, #235CA3 50%, #7BA5FA 100%);
background-image: linear-gradient(bottom, #235CA3 50%, #7BA5FA 100%);
background-image: linear-gradient(bottom, #235CA3 50%, #7BA5FA 100%);
background-image: linear-gradient(bottom, #235CA3 50%, #7BA5FA 100%);
background-image: linear-gradient(bottom, #235CA3 50%, #7BA5FA 100%);
background-image: gradient(
linear,
left bottom,
left top,
color-stop(0.5, #235CA3),
color-stop(1, #7BA5FA)
);
}
.twitter{
border:#09F 1px solid;
background-image: linear-gradient(bottom, #1897BD 50%, #67D9F5 100%);
background-image: linear-gradient(bottom, #1897BD 50%, #67D9F5 100%);
background-image: linear-gradient(bottom, #1897BD 50%, #67D9F5 100%);
background-image: linear-gradient(bottom, #1897BD 50%, #67D9F5 100%);
background-image: linear-gradient(bottom, #1897BD 50%, #67D9F5 100%);
background-image: gradient(
linear,
left bottom,
left top,
color-stop(0.5, #1897BD),
color-stop(1, #67D9F5)
);
}
.google{
border:#900 1px solid;
background-image: linear-gradient(bottom, #BD1818 50%, #F56565 100%);
background-image: linear-gradient(bottom, #BD1818 50%, #F56565 100%);
background-image: linear-gradient(bottom, #BD1818 50%, #F56565 100%);
background-image: linear-gradient(bottom, #BD1818 50%, #F56565 100%);
background-image: linear-gradient(bottom, #BD1818 50%, #F56565 100%);
background-image: gradient(
linear,
left bottom,
left top,
color-stop(0.5, #BD1818),
color-stop(1, #F56565)
);
}