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

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

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

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

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

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

        .bottom {
            display: flex;
            justify-content: space-between;
        }
    }
zhanghaozhe committed
52 53 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

    .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
93
}