free-courses.scss 1.8 KB
Newer Older
zhanghaozhe committed
1
@import "src/assets/css/variable";
zhanghaozhe committed
2 3 4 5 6
.free-courses {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
xuzhenghua committed
7 8 9 10 11 12 13
    .course-base-item{
        margin-top: 0;
        margin-bottom: 15px;
        img{
            border-radius: 3px;
        }
    }
zhanghaozhe committed
14 15 16 17 18 19 20

    .top {
        position: absolute;
        top: 10px;
        left: 0;
    }

zhanghaozhe committed
21
    .tag-soon {
zhanghaozhe committed
22 23 24
        background: $red;
        color: $white;
    }
xuzhenghua committed
25
    .tag-playing {
zhanghaozhe committed
26 27 28
        background: $active;
        color: $white;
    }
zhanghaozhe committed
29 30 31 32 33 34 35 36 37 38 39 40 41

    .tag-category {
        background: #E0B97B;
        color: $white;
    }

    .course-item {
        margin-top: 0;
        margin-bottom: 16px;

        .course-title {
            margin-top: 0;
            line-height: 34px;
zhanghaozhe committed
42 43 44 45
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
xuzhenghua committed
46
            text-align: justify;
zhanghaozhe committed
47 48 49 50 51 52 53
        }

        .bottom {
            display: flex;
            justify-content: space-between;
        }
    }
zhanghaozhe committed
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94

    .live {
        .bottom {
            display: flex;
            justify-content: flex-start;
            color: $active;
        }
    }

    .animation-box {
        width: 14px;
        height: 12px;
        display: flex;
        justify-content: space-between;
        margin-right: 5px;

        .column {
            width: 2px;
            height: 12px;
            transform-origin: bottom center;
            animation: scaleY 1.1s ease-out infinite;
            background-color: $bg_active;
            @for $i from 1 to 4 {
                &-#{$i} {
                    animation-delay: $i * 0.2s;
                }
            }
        }
    }
}

@keyframes scaleY {
    from {
        transform: scaleY(0);
    }
    50% {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
zhanghaozhe committed
95
}