2020-08-13 15:18:26 +08:00
|
|
|
@keyframes dot {
|
2021-07-14 09:27:52 +08:00
|
|
|
0% {
|
|
|
|
width: 0;
|
|
|
|
margin-right: 1em;
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
width: 1em;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2020-08-13 15:18:26 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.demo-image {
|
|
|
|
.block {
|
|
|
|
padding: 30px 0;
|
|
|
|
text-align: center;
|
2021-08-26 09:57:56 +08:00
|
|
|
border-right: solid 1px var(--el-border-color-base);
|
2020-08-13 15:18:26 +08:00
|
|
|
display: inline-block;
|
|
|
|
width: 20%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
vertical-align: top;
|
|
|
|
&:last-child {
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.demonstration {
|
|
|
|
display: block;
|
2021-08-26 09:57:56 +08:00
|
|
|
color: var(--el-text-color-secondary);
|
2020-08-13 15:18:26 +08:00
|
|
|
font-size: 14px;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-14 09:27:52 +08:00
|
|
|
.demo-image__placeholder,
|
|
|
|
.demo-image__error {
|
2020-08-13 15:18:26 +08:00
|
|
|
@extend .demo-image;
|
|
|
|
|
|
|
|
.block {
|
|
|
|
width: 49%;
|
|
|
|
}
|
|
|
|
|
2021-02-04 16:29:23 +08:00
|
|
|
.#{$namespace}-image {
|
2020-08-13 15:18:26 +08:00
|
|
|
width: 300px;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-slot {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
background: #f5f7fa;
|
2021-08-26 09:57:56 +08:00
|
|
|
color: var(--el-text-color-secondary);
|
2020-08-13 15:18:26 +08:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.demo-image__placeholder {
|
|
|
|
.dot {
|
|
|
|
animation: dot 2s infinite steps(3, start);
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.demo-image__error {
|
|
|
|
.image-slot {
|
|
|
|
font-size: 30px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.demo-image__lazy {
|
|
|
|
height: 400px;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
2021-02-04 16:29:23 +08:00
|
|
|
.#{$namespace}-image {
|
2020-08-13 15:18:26 +08:00
|
|
|
display: block;
|
|
|
|
min-height: 200px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|