2017-09-27 14:46:42 +02:00
|
|
|
@scroll-prefix-cls: ~"@{css-prefix}scroll";
|
|
|
|
|
|
|
|
.@{scroll-prefix-cls} {
|
|
|
|
&-wrapper {
|
|
|
|
width: auto;
|
|
|
|
margin: 0 auto;
|
|
|
|
position: relative;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-container {
|
|
|
|
overflow-y: scroll;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content {
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.5s;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-content-loading {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-loader {
|
|
|
|
text-align: center;
|
2017-10-13 16:51:47 +08:00
|
|
|
padding: 0;
|
2017-09-27 14:46:42 +02:00
|
|
|
transition: padding 0.5s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{scroll-prefix-cls}-loader-wrapper {
|
|
|
|
padding: 5px 0;
|
|
|
|
height: 0;
|
|
|
|
background-color: inherit;
|
|
|
|
transform: scale(0);
|
|
|
|
transition: opacity .3s, transform .5s, height .5s;
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
height: 40px;
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ani-demo-spin {
|
|
|
|
from {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: rotate(180deg);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{scroll-prefix-cls}-spinner {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{scroll-prefix-cls}-spinner-icon {
|
|
|
|
animation: ani-demo-spin 1s linear infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.@{scroll-prefix-cls} {
|
|
|
|
}
|
|
|
|
}
|