Skip to content

Instantly share code, notes, and snippets.

@alaasalama
Created May 18, 2016 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alaasalama/b643e16fa6b6646bb73eda216f49c1df to your computer and use it in GitHub Desktop.
Save alaasalama/b643e16fa6b6646bb73eda216f49c1df to your computer and use it in GitHub Desktop.
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
color: #fff;
font-size: .85em;
text-decoration: none;
text-indent: -900em;
text-align: center;
width: 35px;
height: 35px;
display: block;
z-index: 9500;
box-shadow: none;
text-shadow: none;
margin: 0 auto!important;
padding: 0;
background-color: #66AD5F;
border-radius: 100%;
}
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:before,
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:after {
content: '';
display: inline-block;
border-top: 1px solid #fff;
width: 16px;
position: absolute;
top: 17px;
left: 9px;
margin: 0;
padding: 0;
vertical-align: middle;
}
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:after {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
transform: rotate(90deg);
}
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover{
opacity: 1;
background-color: #000;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment