loading button. #6737

This commit is contained in:
James Koster 2014-11-13 17:42:09 +00:00
parent 9abbf4cef8
commit 258d7f4482
3 changed files with 30 additions and 25 deletions

View File

@ -0,0 +1,18 @@
@-moz-keyframes spin {
100% {
-moz-transform: rotate(360deg);
}
}
@-webkit-keyframes spin {
100% {
-webkit-transform: rotate(360deg);
}
}
@keyframes spin {
100% {
-webkit-transform: rotate(360deg);
transform:rotate(360deg);
}
}

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
@import "bourbon";
@import "mixins";
@import "variables";
@import "animation";
/* =Custom Font
-------------------------------------------------------------- */
@ -612,15 +613,18 @@ p.demo_store {
&.loading {
opacity: 0.25;
padding-right: 2.618em;
&:before {
content: "";
&:after {
font-family: "WooCommerce";
content: "\e01c";
vertical-align: bottom;
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
background: url(../images/ajax-loader.gif) center no-repeat;
top: .618em;
right: 1em;
-webkit-animation:spin 2s linear infinite;
-moz-animation:spin 2s linear infinite;
animation:spin 2s linear infinite;
}
}
@ -2012,20 +2016,3 @@ p.demo_store {
}
}
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.woocommerce,
.woocommerce-page {
a.button,
button.button,
input.button,
#respond input#submit {
&.loading {
&:before {
background-image: url(../images/ajax-loader@2x.gif);
background-size: 16px 16px;
}
}
}
}
}