@mdsfe/mds-ui
Version:
A set of enterprise-class Vue UI components.
255 lines (254 loc) • 5.79 kB
CSS
/**
* Ball Spin Fade Loader Animation
* 用于 drawer 组件的加载动画
* 可被其他只需要此动画的组件复用
*/
@-webkit-keyframes ball-spin-fade-loader {
50% {
opacity: 0.3;
-webkit-transform: scale(0.4);
transform: scale(0.4);
}
100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}
@keyframes ball-spin-fade-loader {
50% {
opacity: 0.3;
-webkit-transform: scale(0.4);
transform: scale(0.4);
}
100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}
.ball-spin-fade-loader {
position: relative;
top: -10px;
left: -10px;
}
.ball-spin-fade-loader > div:nth-child(1) {
top: 25px;
left: 0;
-webkit-animation: ball-spin-fade-loader 1s -0.96s infinite linear;
animation: ball-spin-fade-loader 1s -0.96s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(2) {
top: 17.04545px;
left: 17.04545px;
-webkit-animation: ball-spin-fade-loader 1s -0.84s infinite linear;
animation: ball-spin-fade-loader 1s -0.84s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(3) {
top: 0;
left: 25px;
-webkit-animation: ball-spin-fade-loader 1s -0.72s infinite linear;
animation: ball-spin-fade-loader 1s -0.72s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(4) {
top: -17.04545px;
left: 17.04545px;
-webkit-animation: ball-spin-fade-loader 1s -0.6s infinite linear;
animation: ball-spin-fade-loader 1s -0.6s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(5) {
top: -25px;
left: 0;
-webkit-animation: ball-spin-fade-loader 1s -0.48s infinite linear;
animation: ball-spin-fade-loader 1s -0.48s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(6) {
top: -17.04545px;
left: -17.04545px;
-webkit-animation: ball-spin-fade-loader 1s -0.36s infinite linear;
animation: ball-spin-fade-loader 1s -0.36s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(7) {
top: 0;
left: -25px;
-webkit-animation: ball-spin-fade-loader 1s -0.24s infinite linear;
animation: ball-spin-fade-loader 1s -0.24s infinite linear;
}
.ball-spin-fade-loader > div:nth-child(8) {
top: 17.04545px;
left: -17.04545px;
-webkit-animation: ball-spin-fade-loader 1s -0.12s infinite linear;
animation: ball-spin-fade-loader 1s -0.12s infinite linear;
}
.ball-spin-fade-loader > div {
background-color: #fff;
width: 15px;
height: 15px;
border-radius: 100%;
margin: 2px;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
position: absolute;
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.mds-drawer {
-webkit-box-sizing: border-box;
box-sizing: initial;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
color: rgba(0, 0, 0, 0.65);
background-color: #fff;
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
list-style: none;
-webkit-font-feature-settings: 'tnum';
font-feature-settings: 'tnum';
position: relative;
animation: HandleShow .3s;
}
.mds-drawer-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
background-color: rgba(0, 0, 0, 0.65);
animation: HandleShow .3s;
}
.mds-drawer-wrap {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: hidden;
outline: 0;
overflow-scrolling: touch;
animation: HandleShow .3s;
}
.mds-drawer-header {
display: flex;
padding: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.mds-drawer-close {
color: #1E2631;
padding: 4px;
cursor: pointer;
}
.mds-drawer-close:hover {
opacity: 0.65;
}
.mds-drawer-title {
flex: auto;
color: #333;
font-weight: 500;
font-size: 18px;
line-height: 22px;
}
.mds-drawer-body {
flex: 1;
padding: 20px;
font-size: 14px;
line-height: 1.5;
word-wrap: break-word;
overflow: auto;
}
.mds-drawer-footer {
border-top: 1px solid #F0F2F5;
height: 68px;
padding: 0 20px;
display: flex;
align-items: center;
justify-content: flex-end;
}
.mds-drawer-top {
position: absolute;
top: 0;
left: 0;
right: 0;
}
.mds-drawer-right {
position: absolute;
top: 0;
bottom: 0;
right: 0;
}
.mds-drawer-bottom {
position: absolute;
left: 0;
right: 0;
bottom: 0;
}
.mds-drawer-left {
position: absolute;
top: 0;
bottom: 0;
left: 0;
}
.mds-drawer-loading {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 99;
background: rgba(255, 255, 255, 0.9);
display: flex;
align-items: center;
justify-content: center;
}
.mds-drawer-loading .ball-spin-fade-loader {
transform: scale(0.7, 0.7);
}
.mds-drawer-loading .ball-spin-fade-loader > div {
background: #0364ff;
}
.demo-drawer-diy .mds-drawer-body {
padding: 0;
}
.demo-drawer-diy .mds-drawer-body .title {
padding-left: 20px;
color: #333;
font-weight: 500;
font-size: 18px;
line-height: 63px;
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.demo-drawer-diy .mds-drawer-body .content {
width: 100%;
padding: 20px;
}
.demo-drawer-diy .mds-drawer-body .content p {
color: #909399;
line-height: 40px;
}
.demo-drawer-diy .mds-drawer-body .content p span {
color: #606266;
}
.demo-drawer-diy .mds-drawer-body .content p .green {
color: #67C23A;
}
.demo-drawer-diy .mds-drawer-body .content p .image {
width: 100px;
height: 100px;
border-radius: 5px;
vertical-align: text-top;
}
@keyframes HandleShow {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */