@aplus-frontend/ui
Version:
56 lines (53 loc) • 1.09 kB
text/less
@import '../mixins/mixins.less';
@import '../mixins/config.less';
@listCls: ~'@{ns}-ap-list';
@listContentContainerCls: ~'@{listCls}-content-container';
@contentCls: ~'@{listCls}__content';
.b(ap-list, {
&-content-container {
position: relative;
&--spinning {
opacity: 0.5;
user-select: none;
pointer-events: none;
}
}
&__footer {
margin-top: @spacing;
display: flex;
justify-content: flex-end;
}
&__spin-wrapper {
position: absolute;
width: 100%;
top: 0;
bottom: 0;
border-radius: 4px;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
}
&-scroll-wrapper {
height: 100%;
}
&--adaptive {
height: 100%;
display: flex;
flex-direction: column;
.@{listContentContainerCls} {
flex-grow: 1;
flex-shrink: 1;
overflow: hidden;
&:has(.ant-empty) {
display: flex;
justify-content: center;
align-items: center;
}
.@{contentCls} {
height: 100%;
overflow: auto;
}
}
}
});