drip-table
Version:
A tiny and powerful enterprise-class solution for building tables.
237 lines (198 loc) • 4.38 kB
text/less
/**
* This file is part of the drip-table project.
* @link : https://drip-table.jd.com/
* @author : Emil Zhai (root@derzh.com)
* @modifier : Emil Zhai (root@derzh.com)
* @copyright: Copyright (c) 2021 JD Network Technology Co., Ltd.
*/
@import url("../../../styles/theme/default.less");
@prefixCls: jfe-drip-table-rc-spin;
.@{prefixCls} {
box-sizing: border-box;
margin: 0;
padding: 0;
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: "tnum", "tnum";
position: absolute;
display: none;
color: @drip-table-primary-color;
text-align: center;
vertical-align: middle;
opacity: 0;
transition: transform .3s cubic-bezier(.78, .14, .15, .86);
}
.@{prefixCls}-spinning {
position: static;
display: inline-block;
opacity: 1;
}
.@{prefixCls}-nested-loading {
position: relative;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls} {
position: absolute;
top: 0;
left: 0;
z-index: 4;
display: block;
width: 100%;
height: 100%;
max-height: 400px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls} .@{prefixCls}-dot {
position: absolute;
top: 50%;
left: 50%;
margin: -10px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls} .@{prefixCls}-text {
position: absolute;
top: 50%;
width: 100%;
padding-top: 5px;
text-shadow: 0 1px 2px #ffffff;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}.@{prefixCls}-show-text .@{prefixCls}-dot {
margin-top: -20px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-sm .@{prefixCls}-dot {
margin: -7px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-sm .@{prefixCls}-text {
padding-top: 2px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-sm.@{prefixCls}-show-text .@{prefixCls}-dot {
margin-top: -17px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-lg .@{prefixCls}-dot {
margin: -16px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-lg .@{prefixCls}-text {
padding-top: 11px;
}
.@{prefixCls}-nested-loading > div > .@{prefixCls}-lg.@{prefixCls}-show-text .@{prefixCls}-dot {
margin-top: -26px;
}
.@{prefixCls}-container {
position: relative;
transition: opacity .3s;
}
.@{prefixCls}-container::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
display: none \9;
width: 100%;
height: 100%;
background: #ffffff;
opacity: 0;
transition: all .3s;
content: "";
pointer-events: none;
}
.@{prefixCls}-blur {
clear: both;
opacity: .5;
user-select: none;
pointer-events: none;
}
.@{prefixCls}-blur::after {
opacity: .4;
pointer-events: auto;
}
.@{prefixCls}-tip {
color: #00000073;
}
.@{prefixCls}-dot {
position: relative;
display: inline-block;
font-size: 20px;
width: 1em;
height: 1em;
}
.@{prefixCls}-dot-item {
position: absolute;
display: block;
width: 9px;
height: 9px;
background-color: @drip-table-primary-color;
border-radius: 100%;
transform: scale(.75);
transform-origin: 50% 50%;
opacity: .3;
animation: drip-spin-move 1s infinite linear alternate;
}
.@{prefixCls}-dot-item:nth-child(1) {
top: 0;
left: 0;
}
.@{prefixCls}-dot-item:nth-child(2) {
top: 0;
right: 0;
animation-delay: .4s;
}
.@{prefixCls}-dot-item:nth-child(3) {
right: 0;
bottom: 0;
animation-delay: .8s;
}
.@{prefixCls}-dot-item:nth-child(4) {
bottom: 0;
left: 0;
animation-delay: 1.2s;
}
.@{prefixCls}-dot-spin {
transform: rotate(45deg);
animation: drip-spin-rotate 1.2s infinite linear;
}
.@{prefixCls}-sm .@{prefixCls}-dot {
font-size: 14px;
}
.@{prefixCls}-sm .@{prefixCls}-dot i {
width: 6px;
height: 6px;
}
.@{prefixCls}-lg .@{prefixCls}-dot {
font-size: 32px;
}
.@{prefixCls}-lg .@{prefixCls}-dot i {
width: 14px;
height: 14px;
}
.@{prefixCls}.@{prefixCls}-show-text .@{prefixCls}-text {
display: block;
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.@{prefixCls}-blur {
background: #ffffff;
opacity: .5;
}
}
@keyframes drip-spin-move {
to {
opacity: 1;
}
}
@keyframes drip-spin-rotate {
to {
transform: rotate(405deg);
}
}
.@{prefixCls}-rtl {
direction: rtl;
}
.@{prefixCls}-rtl .@{prefixCls}-dot-spin {
transform: rotate(-45deg);
animation-name: drip-rotate-rtl;
}
@keyframes drip-rotate-rtl {
to {
transform: rotate(-405deg);
}
}