free-courses.scss 1.6 KB
Newer Older
zhanghaozhe committed
1 2 3 4 5 6 7 8 9 10 11 12
.free-courses {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

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

zhanghaozhe committed
13
    .tag-soon {
zhanghaozhe committed
14 15 16
        background: $red;
        color: $white;
    }
zhanghaozhe committed
17 18 19 20
    .tag-soon {
        background: $active;
        color: $white;
    }
zhanghaozhe committed
21 22 23 24 25 26 27 28 29 30 31 32 33

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

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

        .course-title {
            margin-top: 0;
            line-height: 34px;
zhanghaozhe committed
34 35 36 37
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
zhanghaozhe committed
38 39 40 41 42 43 44
        }

        .bottom {
            display: flex;
            justify-content: space-between;
        }
    }
zhanghaozhe committed
45 46 47 48 49 50 51 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

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