index.scss 2.39 KB
Newer Older
xuzhenghua committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 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 86 87 88
.detail-box {
  position: relative;

  .toapp {
    position: absolute;
    right: 0;
    top: 117px;
    width: 82px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    background: linear-gradient(-90deg, $bg_active 0%, $bg_0078FF 100%);
    border-radius: 16px 0 0 16px;
    font-size: 12px;
    color: $white;
    z-index: 1;
  }
  .course-content {
    margin: 15px 12px 0 12px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;

    .cover {
      width: 42.2%;
      height: 108px;

      img {
        border-radius: 3px;
        width: 100%;
        height: 100%;
      }
    }

    .info {
      width: 52.3%;
      position: relative;
      display: block;

      .title {
        font-size: 16px;
        color: $color_333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .contact {
        font-size: 14px;
        color: $color_666;
        margin-top: 10px;
      }

      .des {
        position: absolute;
        bottom: 0;

        .course-price {
          .new {
            color: $red;
            font-size: 16px;
          }

          .old {
            color: $color_999;
            font-size: 12px;
            display: inline-block;
            margin-left: 15px;
            text-decoration: line-through;
          }
        }

        .isbuy {
          display: inline-block;
          width: 66px;
          height: 27px;
          background-color: $bg_ccc;
          color: $white;
          border-radius: 3px;
          font-size: 12px;
          text-align: center;
          line-height: 27px;
        }
      }
    }
  }

  .promise {
xuzhenghua committed
89
    padding: 15px 0;
xuzhenghua committed
90
    height: 66px;
xuzhenghua committed
91 92
    border-top: 1px solid #e7eaf1;
    margin: 0 12px;
xuzhenghua committed
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115

    label {
      float: left;
      display: block;
      text-align: center;
      font-size: 12px;
      width: 54px;
      height: 18px;
      background-color: $bg_333;
      color: $white;
      border-radius: 6px 0 6px 0;
    }

    p {
      width: 75%;
      float: left;
      margin-left: 15px;
      font-size: 12px;
      color: $color_333;
    }
  }

  .group, .vip {
xuzhenghua committed
116
    margin: 10px 12px 0 12px;
xuzhenghua committed
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
    padding: 10px 12px;
    text-align: center;
    color: $white;
    font-size: 12px;
    border-radius: 6px 6px 0 0;
  }

  .group {
    background-color: $bg_82BBFB;
  }

  .vip {
    background: linear-gradient(-90deg, $bg_EBA216 0%, $bg_EBC05A 100%);
  }

}