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

zhanghaozhe committed
15 16 17 18 19
  .top {
    position: absolute;
    top: 10px;
    left: 0;
  }
zhanghaozhe committed
20

zhanghaozhe committed
21 22 23 24 25 26 27 28
  .tag-soon {
    background: $red;
    color: $white;
  }
  .tag-playing {
    background: $active;
    color: $white;
  }
zhanghaozhe committed
29

zhanghaozhe committed
30 31 32 33
  .tag-category {
    background: #e0b97b;
    color: $white;
  }
zhanghaozhe committed
34

zhanghaozhe committed
35 36 37
  .course-item {
    margin-top: 0;
    margin-bottom: 16px;
zhanghaozhe committed
38

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

zhanghaozhe committed
49 50 51
    .bottom {
      display: flex;
      justify-content: space-between;
zhanghaozhe committed
52
    }
zhanghaozhe committed
53
  }
zhanghaozhe committed
54

zhanghaozhe committed
55 56 57 58 59
  .live {
    .bottom {
      display: flex;
      justify-content: flex-start;
      color: $active;
zhanghaozhe committed
60
    }
zhanghaozhe committed
61
  }
zhanghaozhe committed
62

zhanghaozhe committed
63 64 65 66 67 68
  .animation-box {
    width: 14px;
    height: 12px;
    display: flex;
    justify-content: space-between;
    margin-right: 5px;
zhanghaozhe committed
69

zhanghaozhe committed
70 71 72 73 74 75 76 77 78
    .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;
zhanghaozhe committed
79
        }
zhanghaozhe committed
80
      }
zhanghaozhe committed
81
    }
zhanghaozhe committed
82
  }
zhanghaozhe committed
83 84 85
}

@keyframes scaleY {
zhanghaozhe committed
86 87 88 89 90 91 92 93 94 95
  from {
    transform: scaleY(0);
  }
  50% {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(0);
  }
}