41 lines
803 B
SCSS
41 lines
803 B
SCSS
/* 按钮点击加载:文案淡化 + 居中自绘转圈(对齐 mobile-oa-h5 发起页) */
|
|
.oa-btn-loading {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.oa-btn-loading.is-loading {
|
|
opacity: 1 !important;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.oa-btn-loading.is-loading .oa-btn-loading__label {
|
|
opacity: 0.25;
|
|
}
|
|
|
|
.oa-btn-loading__spin {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.oa-btn-loading__spin::before {
|
|
content: '';
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid currentColor;
|
|
border-right-color: transparent;
|
|
border-radius: 50%;
|
|
animation: oa-btn-loading-spin 0.7s linear infinite;
|
|
}
|
|
|
|
@keyframes oa-btn-loading-spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|