123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- @keyframes dot {
- 0% { width: 0; margin-right: 1em; }
- 100% { width: 1em; margin-right: 0; }
- }
- .demo-image {
- .block {
- padding: 30px 0;
- text-align: center;
- border-right: solid 1px #eff2f6;
- display: inline-block;
- width: 20%;
- box-sizing: border-box;
- vertical-align: top;
- &:last-child {
- border-right: none;
- }
- }
- .demonstration {
- display: block;
- color: #8492a6;
- font-size: 14px;
- margin-bottom: 20px;
- }
- }
- .demo-image__placeholder, .demo-image__error {
- @extend .demo-image;
- .block {
- width: 49%;
- }
- .el-image {
- width: 300px;
- height: 200px;
- }
- .image-slot {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100%;
- background: #f5f7fa;
- color: #909399;
- 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;
- .el-image {
- display: block;
- min-height: 200px;
- margin-bottom: 10px;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
|