@alicloud/cloud-charts
Version:

229 lines (227 loc) • 4.89 kB
CSS
@charset "UTF-8";
.cloud-wplaceholder {
position: relative;
width: 100%;
height: 100%;
min-height: 40px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
.cloud-wplaceholder.cloud-wplaceholder-empty {
background: var(--widgets-color-container-background, #f7f7f7);
}
.cloud-wplaceholder.cloud-wplaceholder-empty .cloud-wplaceholder-children-text {
color: var(--widgets-color-text-3, #808080);
display: flex;
align-items: center;
justify-content: center;
}
.cloud-wplaceholder.cloud-wplaceholder-error {
background: var(--widgets-capacity-background-error, #ffeceb);
}
.cloud-wplaceholder.cloud-wplaceholder-error .cloud-wplaceholder-children-text {
color: var(--widgets-color-text-3, #808080);
display: flex;
align-items: center;
justify-content: center;
}
.cloud-wplaceholder .placeholder-item {
fill: var(--widgets-color-gray, #aaaaaa);
}
.cloud-wplaceholder .cloud-wplaceholder-children {
color: var(--widgets-color-disable, #aaaaaa);
font-size: var(--widgets-font-size-1, 12px);
line-height: 1;
width: 100%;
}
.cloud-wplaceholder .cloud-wplaceholder-children-text {
margin-top: var(--s2, 8px);
}
.cloud-wplaceholder-loading {
background: var(--widgets-color-container-background, #f7f7f7);
color: var(--widgets-color-disable, #aaaaaa);
font-size: var(--widgets-font-size-1, 12px);
line-height: 1;
/* text on the right side of */
/* 动效 */
}
.cloud-wplaceholder-loading-inline {
pointer-events: none;
display: inline-block;
position: relative;
height: 100%;
width: 100%;
}
.cloud-wplaceholder-loading-right-tip {
display: flex;
align-items: center;
}
.cloud-wplaceholder-loading-right-tip .cloud-wplaceholder-loading-indicator {
display: inline-block;
margin-right: var(--widgets-font-size-1, 12px);
}
.cloud-wplaceholder-loading-right-tip .cloud-wplaceholder-loading-tip-content {
display: inline-block;
}
.cloud-wplaceholder-loading-fusion-reactor {
display: inline-block;
width: 28px;
height: 28px;
position: relative;
margin: 0;
animation-name: nextVectorRoute;
animation-duration: 5.6s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.cloud-wplaceholder-loading-fusion-reactor .cloud-wplaceholder-loading-dot {
position: absolute;
margin: auto;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--widgets-color-normal, #0064c8);
animation-timing-function: ease-in-out;
animation-iteration-count: infinite;
animation-duration: 1.4s;
}
.cloud-wplaceholder-loading-fusion-reactor .cloud-wplaceholder-loading-dot:nth-child(1) {
top: 0;
bottom: 0;
left: 0;
animation-name: nextVectorDotsX;
}
.cloud-wplaceholder-loading-fusion-reactor .cloud-wplaceholder-loading-dot:nth-child(2) {
left: 0;
right: 0;
top: 0;
opacity: 0.8;
animation-name: nextVectorDotsY;
}
.cloud-wplaceholder-loading-fusion-reactor .cloud-wplaceholder-loading-dot:nth-child(3) {
top: 0;
bottom: 0;
right: 0;
opacity: 0.6;
animation-name: nextVectorDotsXR;
}
.cloud-wplaceholder-loading-fusion-reactor .cloud-wplaceholder-loading-dot:nth-child(4) {
left: 0;
right: 0;
bottom: 0;
opacity: 0.2;
animation-name: nextVectorDotsYR;
}
@keyframes nextVectorRoute {
0% {
transform: rotate(0deg);
}
5% {
transform: rotate(90deg);
}
25% {
transform: rotate(90deg);
}
30% {
transform: rotate(180deg);
}
50% {
transform: rotate(180deg);
}
55% {
transform: rotate(270deg);
}
75% {
transform: rotate(270deg);
}
80% {
transform: rotate(360deg);
}
100% {
transform: rotate(360deg);
}
}
/* 20% 的时间在旋转 */
@keyframes nextVectorDotsYR {
25% {
bottom: 0;
}
45% {
bottom: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
50% {
bottom: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
90% {
bottom: 0;
height: 8px;
width: 8px;
}
}
@keyframes nextVectorDotsY {
25% {
top: 0;
}
45% {
top: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
50% {
top: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
90% {
top: 0;
height: 8px;
width: 8px;
}
}
@keyframes nextVectorDotsX {
25% {
left: 0;
}
45% {
left: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
50% {
left: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
90% {
left: 0;
height: 8px;
width: 8px;
}
}
@keyframes nextVectorDotsXR {
25% {
right: 0;
}
45% {
right: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
50% {
right: calc(28px / 2 - 8px * 1.2 / 2);
height: 9.6px;
width: 9.6px;
}
90% {
right: 0;
height: 8px;
width: 8px;
}
}