You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
2.2 KiB
128 lines
2.2 KiB
9 years ago
|
@import "../../style/themes/default";
|
||
|
@import "../../style/mixins/index";
|
||
9 years ago
|
|
||
9 years ago
|
@spin-prefix-cls: ant-spin;
|
||
|
@spin-dot-default: #999;
|
||
|
@spin-dot-size: 8px;
|
||
|
@spin-dot-size-sm: @spin-dot-size / 2;
|
||
|
@spin-dot-size-lg: @spin-dot-size * 2;
|
||
9 years ago
|
|
||
9 years ago
|
.@{spin-prefix-cls} {
|
||
9 years ago
|
color: @primary-color;
|
||
9 years ago
|
display: inline-block;
|
||
9 years ago
|
vertical-align: middle;
|
||
9 years ago
|
text-align: center;
|
||
9 years ago
|
opacity: 0;
|
||
|
position: absolute;
|
||
9 years ago
|
visibility: hidden;
|
||
9 years ago
|
transition: opacity 0.3s @ease-in-out-circ;
|
||
9 years ago
|
font-size: @font-size-base;
|
||
9 years ago
|
|
||
9 years ago
|
&-spinning {
|
||
9 years ago
|
opacity: 1;
|
||
|
position: static;
|
||
9 years ago
|
visibility: visible;
|
||
9 years ago
|
}
|
||
9 years ago
|
|
||
9 years ago
|
&-nested-loading {
|
||
|
position: relative;
|
||
|
}
|
||
|
|
||
9 years ago
|
&-nested-loading & {
|
||
9 years ago
|
position: absolute;
|
||
|
top: 50%;
|
||
9 years ago
|
height: 20px;
|
||
|
line-height: 20px;
|
||
|
margin-top: -10px;
|
||
9 years ago
|
z-index: 4;
|
||
9 years ago
|
text-align: center;
|
||
|
width: 100%;
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
&-container {
|
||
9 years ago
|
transition: all 0.3s @ease-in-out-circ;
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
&-nested-loading > &-container {
|
||
9 years ago
|
opacity: 0.7;
|
||
9 years ago
|
-webkit-filter: blur(1px);
|
||
9 years ago
|
filter: blur(1px);
|
||
9 years ago
|
filter: ~"progid\:DXImageTransform\.Microsoft\.Blur(PixelRadius\=1, MakeShadow\=false)"; /* IE6~IE9 */
|
||
9 years ago
|
pointer-events: none;
|
||
9 years ago
|
}
|
||
|
|
||
9 years ago
|
// tip
|
||
|
// ------------------------------
|
||
|
&-tip {
|
||
|
color: @spin-dot-default;
|
||
|
}
|
||
|
|
||
9 years ago
|
// dots
|
||
|
// ------------------------------
|
||
9 years ago
|
|
||
9 years ago
|
&-dot {
|
||
9 years ago
|
animation: antSpinPulse 1.2s infinite @ease-in-out-circ;
|
||
9 years ago
|
.square(@spin-dot-size);
|
||
9 years ago
|
border-radius: 50%;
|
||
|
display: inline-block;
|
||
9 years ago
|
background-color: @primary-color;
|
||
9 years ago
|
}
|
||
|
&-dot-second {
|
||
9 years ago
|
animation-delay: .2s;
|
||
9 years ago
|
}
|
||
|
&-dot-third {
|
||
9 years ago
|
animation-delay: .4s;
|
||
9 years ago
|
}
|
||
|
|
||
|
&-dot + &-dot {
|
||
|
margin-left: @spin-dot-size;
|
||
9 years ago
|
}
|
||
9 years ago
|
|
||
9 years ago
|
// Sizes
|
||
|
// ------------------------------
|
||
|
// small
|
||
9 years ago
|
&-sm &-dot {
|
||
|
.square(@spin-dot-size-sm);
|
||
|
+ & {
|
||
|
margin-left: @spin-dot-size-sm;
|
||
|
}
|
||
9 years ago
|
}
|
||
9 years ago
|
|
||
9 years ago
|
// large
|
||
9 years ago
|
&-lg &-dot {
|
||
|
.square(@spin-dot-size-lg);
|
||
|
+ & {
|
||
|
margin-left: @spin-dot-size-lg;
|
||
|
}
|
||
9 years ago
|
}
|
||
9 years ago
|
|
||
|
&-text,
|
||
|
&&-show-text &-dot {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
&&-show-text &-text {
|
||
|
display: block;
|
||
|
}
|
||
9 years ago
|
}
|
||
|
|
||
|
// pulse
|
||
9 years ago
|
@keyframes antSpinPulse {
|
||
9 years ago
|
0%,
|
||
|
80%,
|
||
|
100% {
|
||
|
opacity: 0;
|
||
|
}
|
||
|
40% {
|
||
|
opacity: 1;
|
||
|
}
|
||
9 years ago
|
}
|
||
9 years ago
|
|
||
|
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
|
||
9 years ago
|
/* IE10+ */
|
||
9 years ago
|
.ant-spin-nested-loading > .ant-spin-container {
|
||
|
background: #fff;
|
||
|
opacity: 0.5;
|
||
|
}
|
||
|
}
|