* @param string iconName
*/
_setIcon: function(iconName) {
- this._dialog.find('.jsPackageInstallationStatus').removeClass('fa-check fa-question fa-times fa-spinner').addClass('icon-' + iconName);
+ this._dialog.find('.jsPackageInstallationStatus').removeClass('fa-check fa-question fa-times fa-spinner').addClass('fa-' + iconName);
}
});
// spinner animation
.fa-spinner {
- height: auto;
+ animation: wcfSpinner .6s linear infinite;
+ // TODO: these colors shouldn't be hard-coded
+ border: 2px solid rgb(204, 204, 204);
+ border-top-color: rgb(79, 129, 189);
+ border-radius: 50%;
- -webkit-animation: spin 1s infinite steps(8);
- animation: spin 1s infinite steps(8);
+ &::before {
+ display: none;
+ }
+}
+
+@-webkit-keyframes wcfSpinner {
+ to { -webkit-transform: rotate(360deg); }
}
+
+@keyframes wcfSpinner {
+ to { transform: rotate(360deg); }
+}
+
@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(359deg); }
margin-top: 0;
}
-@keyframes wcfSpinner {
- to { transform: rotate(360deg); }
-}
-
.spinner {
background-color: rgb(255, 255, 255);
border: 1px solid rgb(204, 204, 204);
position: fixed;
text-align: center;
top: 200px;
- visibility: hidden;
- z-index: 401;
-
transform: translateX(-50%);
-
transition: visibility 0s linear .1s, opacity .1s linear;
+ visibility: hidden;
+ z-index: 401;
&.active {
opacity: 1;
transition-delay: 0s;
}
- > .icon {
- border: 2px solid rgb(204, 204, 204);
- border-top-color: rgb(79, 129, 189);
- border-radius: 50%;
- height: 48px;
- animation: wcfSpinner .6s linear infinite;
- width: 48px;
-
- &::before {
- display: none;
- }
- }
-
> span:not(.icon) {
display: block;
margin-top: 5px;