aist-share.scss 4.35 KB
Newer Older
1
.aist-share {
zhanghaozhe committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_717/m/aist/aist-bg.png");
  background-repeat: no-repeat;
  background-position: bottom;
  -webkit-background-size: contain;
  background-size: contain;
  background-color: #a4ffe7;
  overflow: hidden;

  .content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 343px;
    height: 494px;
    padding: 18px 12px;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.1);
24
    overflow: hidden;
zhanghaozhe committed
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
    border-radius: 5px;
  }

  .user {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-bottom: 18px;

    img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      margin-bottom: 8px;
    }

    .username {
      font-size: 17px;
      line-height: 24px;
      color: #111;
    }

    .time {
      font-size: 12px;
      color: #666;
      line-height: 17px;
    }
  }

  .course {
    display: flex;
    padding: 10px;
    margin-bottom: 27px;
    box-shadow: 0 4px 8px hsla(185, 100%, 28%, 0.1);
    border-radius: 1px;

    &-cover {
      width: 86px;
      margin-right: 10px;

      img {
        width: 100%;
        height: 62px;
      }
    }

    &-info {
      text-align: left;
      width: 204px;

      .title {
        color: #111;
        font-size: 16px;
        line-height: 23px;
      }
80

zhanghaozhe committed
81 82 83
      .des {
        width: 100%;
        white-space: nowrap;
84
        overflow: hidden;
zhanghaozhe committed
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207
        text-overflow: ellipsis;
        font-size: 12px;
        color: #666;
        line-height: 17px;
      }
    }
  }

  .progress {
    position: relative;
    display: flex;
    width: 300px;
    margin: 0 auto 27px;
    list-style: none;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
    background-clip: padding-box;

    &::before {
      content: "";
      display: block;
      width: 36px;
      height: 36px;
      position: absolute;
      bottom: -18px;
      left: -44px;
      background-color: #c1fded;
      border-radius: 50%;
      box-shadow: 0 4px 4px 1px rgba(0, 0, 0, 0.1) inset;
    }

    &::after {
      content: "";
      display: block;
      width: 36px;
      height: 36px;
      position: absolute;
      bottom: -18px;
      right: -44px;
      background-color: #c1fded;
      border-radius: 50%;
      box-shadow: 0 4px 4px 1px rgba(0, 0, 0, 0.1) inset;
    }

    li {
      height: 57px;
      flex: 1;
    }

    & li:nth-child(1) {
      border-right: 1px solid #ddd;
    }

    .title {
      margin-bottom: 8px;
      font-size: 14px;
      color: #111;
      line-height: 20px;
      text-align: center;
    }

    &-value {
      display: flex;
      justify-content: center;
      align-items: flex-end;
      & > div {
        font-size: 15px;
        line-height: 34px;
        color: #000;
      }

      .num {
        font-size: 33px;
        color: #111;
        line-height: 1em;
      }
    }
  }

  .recommend-app {
    display: flex;
    box-sizing: border-box;
    padding: 0 10px;
    justify-content: space-between;

    .text {
      width: 180px;
      margin-right: 30px;
      text-align: left;
      display: flex;
      flex-flow: wrap;
    }

    .bold {
      font-size: 15px;
      color: #111;
      line-height: 21px;
      margin-bottom: 15px;

      & div:nth-child(1) {
        margin-bottom: 4px;
      }
    }

    .light {
      font-size: 14px;
      color: #999;
      line-height: 20px;
      align-self: flex-end;

      img {
        width: 15px;
        height: 15px;
        vertical-align: middle;
        margin-left: 6px;
      }
    }

    .qrcode {
      width: 90px;
      height: 90px;

      img {
208 209
        width: 100%;
        height: 100%;
zhanghaozhe committed
210 211 212
      }
    }
  }
213

zhanghaozhe committed
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: hidden;

    img {
      position: absolute;
      top: 11px;
      right: 22px;
      width: 111px;
      height: 82px;
    }

    .text {
      position: absolute;
      top: 105px;
      left: 50%;
      transform: translateX(-50%);
      width: 343px;
      height: 61px;
      background: #fff;
      font-size: 15px;
      color: #333;
      padding: 20px;
      text-align: center;
      box-sizing: border-box;
      border-radius: 4px;
    }
  }
}