ygd
Version:
An enterprise-class UI design language and React-based implementation
204 lines (203 loc) • 4.2 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.yg-spin {
box-sizing: content-box;
margin: 0;
padding: 0;
color: #333;
font-size: 12px;
list-style: none;
position: absolute;
display: none;
color: #475669;
text-align: center;
vertical-align: middle;
opacity: 0;
transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.yg-spin-spinning {
position: static;
display: inline-block;
opacity: 1;
}
.yg-spin-nested-loading {
position: relative;
}
.yg-spin-nested-loading > div > .yg-spin {
position: absolute;
top: 0;
left: 0;
z-index: 4;
display: block;
width: 100%;
height: 100%;
max-height: 400px;
}
.yg-spin-nested-loading > div > .yg-spin .yg-spin-dot {
position: absolute;
top: 50%;
left: 50%;
margin: -10px;
}
.yg-spin-nested-loading > div > .yg-spin .yg-spin-text {
position: absolute;
top: 50%;
width: 100%;
padding-top: 6px;
text-shadow: 0 1px 2px #fff;
}
.yg-spin-nested-loading > div > .yg-spin.yg-spin-show-text .yg-spin-dot {
margin-top: -20px;
}
.yg-spin-nested-loading > div > .yg-spin-sm .yg-spin-dot {
margin: -7px;
}
.yg-spin-nested-loading > div > .yg-spin-sm .yg-spin-text {
padding-top: 3px;
}
.yg-spin-nested-loading > div > .yg-spin-sm.yg-spin-show-text .yg-spin-dot {
margin-top: -17px;
}
.yg-spin-nested-loading > div > .yg-spin-lg .yg-spin-dot {
margin: -16px;
}
.yg-spin-nested-loading > div > .yg-spin-lg .yg-spin-text {
padding-top: 12px;
}
.yg-spin-nested-loading > div > .yg-spin-lg.yg-spin-show-text .yg-spin-dot {
margin-top: -26px;
}
.yg-spin-container {
position: relative;
transition: opacity 0.3s;
}
.yg-spin-container::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
display: none \9;
width: 100%;
height: 100%;
background: #fff;
opacity: 0;
transition: all 0.3s;
pointer-events: none;
content: '';
}
.yg-spin-blur {
clear: both;
overflow: hidden;
opacity: 0.5;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
}
.yg-spin-blur::after {
opacity: 0.4;
pointer-events: auto;
}
.yg-spin-tip {
color: rgba(0, 0, 0, 0.45);
}
.yg-spin-dot {
position: relative;
display: inline-block;
font-size: 20px;
width: 20px;
height: 20px;
}
.yg-spin-dot i {
position: absolute;
display: block;
width: 9px;
height: 9px;
background-color: #475669;
border-radius: 100%;
transform: scale(0.75);
transform-origin: 50% 50%;
opacity: 0.3;
-webkit-animation: antSpinMove 1s infinite linear alternate;
animation: antSpinMove 1s infinite linear alternate;
}
.yg-spin-dot i:nth-child(1) {
top: 0;
left: 0;
}
.yg-spin-dot i:nth-child(2) {
top: 0;
right: 0;
-webkit-animation-delay: 0.4s;
animation-delay: 0.4s;
}
.yg-spin-dot i:nth-child(3) {
right: 0;
bottom: 0;
-webkit-animation-delay: 0.8s;
animation-delay: 0.8s;
}
.yg-spin-dot i:nth-child(4) {
bottom: 0;
left: 0;
-webkit-animation-delay: 1.2s;
animation-delay: 1.2s;
}
.yg-spin-dot-spin {
transform: rotate(45deg);
-webkit-animation: antRotate 1.2s infinite linear;
animation: antRotate 1.2s infinite linear;
}
.yg-spin-sm .yg-spin-dot {
font-size: 14px;
width: 14px;
height: 14px;
}
.yg-spin-sm .yg-spin-dot i {
width: 6px;
height: 6px;
}
.yg-spin-lg .yg-spin-dot {
font-size: 32px;
width: 32px;
height: 32px;
}
.yg-spin-lg .yg-spin-dot i {
width: 14px;
height: 14px;
}
.yg-spin.yg-spin-show-text .yg-spin-text {
display: block;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ */
.yg-spin-blur {
background: #fff;
opacity: 0.5;
}
}
@-webkit-keyframes antSpinMove {
to {
opacity: 1;
}
}
@keyframes antSpinMove {
to {
opacity: 1;
}
}
@-webkit-keyframes antRotate {
to {
transform: rotate(405deg);
}
}
@keyframes antRotate {
to {
transform: rotate(405deg);
}
}