* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
@import '../custom.less';
@import './vars.less';
@loading-prefix-cls: ~'@{css-prefix}loading';
.@{loading-prefix-cls} {
.inject-Loading-vars();
&__mask {
position: absolute;
z-index: 2000;
background-color: var(--tv-Loading-mask-bg-color);
margin: 0;
top: 0;
right: 0;
bottom: 0;
left: 0;
transition: opacity 0.3s;
&.is-fullscreen {
position: fixed;
background-color: var(--tv-Loading-mask-global-bg-color);
.@{loading-prefix-cls}__spinner {
margin-top: -25px;
&-small {
svg {
height: var(--tv-Loading-fullscreen-small-height);
width: var(--tv-Loading-fullscreen-small-width);
}
}
&-medium {
svg {
height: var(--tv-Loading-fullscreen-medium-height);
width: var(--tv-Loading-fullscreen-medium-width);
}
}
&-large {
svg {
height: var(--tv-Loading-fullscreen-large-height);
width: var(--tv-Loading-fullscreen-large-width);
}
}
}
}
}
&__spinner {
top: 50%;
transform: translateY(-50%);
width: 100%;
text-align: center;
position: absolute;
.@{loading-prefix-cls}__text {
color: var(--tv-Loading-text-color);
margin: var(--tv-Loading-text-margin-y) var(--tv-Loading-text-margin-x);
font-size: var(--tv-Loading-text-font-size);
}
&-small {
svg,
img {
height: var(--tv-Loading-spinner-small-height);
width: var(--tv-Loading-spinner-small-width);
}
}
&-medium {
svg,
img {
height: var(--tv-Loading-spinner-medium-height);
width: var(--tv-Loading-spinner-medium-width);
}
}
&-large {
svg,
img {
height: var(--tv-Loading-spinner-large-height);
width: var(--tv-Loading-spinner-large-width);
}
}
svg {
fill: var(--tv-Loading-icon-color);
}
}
&__parent-relative {
position: relative !important;
}
&__parent-hidden {
overflow: hidden !important;
}
&-fade-enter,
&-fade-leave-active {
opacity: 0;
}
}