skeleton.scss 1.2 KB
Newer Older
L
update  
lifeifan 已提交
1 2 3 4 5 6 7
.vue-skeleton-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-mask;
L
v2 init  
lifeifan 已提交
8
    font-size: 12px;
L
update  
lifeifan 已提交
9 10 11 12 13 14 15 16
    background: #fff;
    @keyframes backpos {
        from {
            background-position-x: -200px;
        }
        to {
            background-position-x: calc(200px + 100%);
        }
L
v2 init  
lifeifan 已提交
17 18
    }
    .skeleton-bac-animation {
L
update  
lifeifan 已提交
19 20 21 22 23 24
        position: absolute;
        z-index: auto;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
        background-size: 30% 100%;
L
v2 init  
lifeifan 已提交
25 26 27 28 29 30 31 32 33
        background-repeat: no-repeat;
        -webkit-animation: backpos 0.9s ease-in-out 0s infinite;
        animation: backpos 0.9s ease-in-out 0s infinite;
    }
    .skeleton-bac-content{
        overflow: hidden;
    }
}

L
update  
lifeifan 已提交
34
.vue-skeleton-column {
L
v2 init  
lifeifan 已提交
35 36 37
    display: flex;
    flex-direction: column;
    justify-content: center;
W
wangnan 已提交
38
    align-items: center;
L
v2 init  
lifeifan 已提交
39 40
}

L
update  
lifeifan 已提交
41
.vue-skeleton-row {
L
v2 init  
lifeifan 已提交
42 43 44
    display: flex;
    flex-direction: row;
    align-items: center;
W
wangnan 已提交
45
    justify-content: center;
L
v2 init  
lifeifan 已提交
46 47
}

L
update  
lifeifan 已提交
48
.vue-skeleton-square-wrap {
L
v2 init  
lifeifan 已提交
49 50 51
    justify-content: center;
    display: flex;
    flex-direction: column;
L
update  
lifeifan 已提交
52 53
    .vue-skeleton-square {
        width: 100%;
L
v2 init  
lifeifan 已提交
54 55
    }
}