mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
Fix loader
This commit is contained in:
@ -1,43 +0,0 @@
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
.asc-loader-container {
|
||||
position: relative;
|
||||
}
|
||||
.asc-plugin-loader {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
z-index: 10000;
|
||||
line-height: 20px;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
color: #444444;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
.asc-plugin-loader .asc-loader-image {
|
||||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDQ0IiBzdHJva2Utd2lkdGg9IjEuNSIgcj0iNy4yNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTYwJSwgNDAlIiAvPjwvc3ZnPg==);
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
float: left;
|
||||
margin-top: -1px;
|
||||
|
||||
|
||||
animation-duration: .8s;
|
||||
animation-name: rotation;
|
||||
animation-iteration-count: infinite;
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
|
||||
.asc-plugin-loader .asc-loader-title {
|
||||
font-size: 13px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* var loader = showLoader(document.getElementById("parent-id"))
|
||||
* loader.remove()
|
||||
*
|
||||
* parent must have position: relative
|
||||
*/
|
||||
showLoader = function (parent, text) {
|
||||
var loader = $('<div class="asc-plugin-loader" ><div class="asc-loader-image"></div><div class="asc-loader-title">' + (text || 'Loading') + '</div></div>');
|
||||
$(parent).append(loader);
|
||||
return loader;
|
||||
};
|
||||
File diff suppressed because one or more lines are too long
@ -422,3 +422,47 @@ label.header {
|
||||
overflow: auto !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* loader */
|
||||
@keyframes rotation {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
.asc-loader-container {
|
||||
position: relative;
|
||||
}
|
||||
.asc-plugin-loader {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-top: -10px;
|
||||
z-index: 10000;
|
||||
line-height: 20px;
|
||||
background-image: none;
|
||||
background-color: transparent;
|
||||
color: #444444;
|
||||
transform: translate(-50%, 0);
|
||||
}
|
||||
.asc-plugin-loader .asc-loader-image {
|
||||
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjNDQ0IiBzdHJva2Utd2lkdGg9IjEuNSIgcj0iNy4yNSIgc3Ryb2tlLWRhc2hhcnJheT0iMTYwJSwgNDAlIiAvPjwvc3ZnPg==);
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
float: left;
|
||||
margin-top: -1px;
|
||||
|
||||
|
||||
animation-duration: .8s;
|
||||
animation-name: rotation;
|
||||
animation-iteration-count: infinite;
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
|
||||
.asc-plugin-loader .asc-loader-title {
|
||||
font-size: 13px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
Reference in New Issue
Block a user