video.scss 7.21 KB
Newer Older
1 2 3
$tabHeight: 44px;

.play {
zhanghaozhe committed
4 5 6 7 8
  .video {
    width: 100%;
    height: 215px;
    background-color: $black;
    position: relative;
9

zhanghaozhe committed
10 11 12
    .video-js {
      width: 100%;
      height: 100%;
13

zhanghaozhe committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
      .vjs-custom-play-button-cover {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.5);


        .vjs-custom-play-button {
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          width: 27px;
          height: 27px;
          background: url("./images/play.png") no-repeat;
          background-size: contain;
32
        }
zhanghaozhe committed
33
      }
34

zhanghaozhe committed
35 36 37
      &.vjs-has-started {
        .vjs-custom-play-button-cover {
          bottom: 2.9em;
38
        }
zhanghaozhe committed
39 40
      }

41

zhanghaozhe committed
42 43 44
      &.vjs-playing {
        .vjs-custom-play-button-cover {
          display: none;
45
        }
zhanghaozhe committed
46
      }
47
    }
zhanghaozhe committed
48

zhanghaozhe committed
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
    .purchase-box {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;

      .hint {
        font-size: $font_14;
        color: $white;
        margin-bottom: 20px;
      }

      @mixin button {
        display: block;
        -webkit-appearance: none;
        outline: none;
        border: none;
        background-color: transparent;
        border-radius: 5px;
        line-height: 30px;
        font-size: 13px;
        padding: 0 9px;
      }

      .btns {
        width: 100%;
        padding: 0 60px;
82
        display: flex;
zhanghaozhe committed
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
        justify-content: space-around;
      }

      .purchase-class {
        @include button;
        background-color: $white;
        color: $color_FF4000;
      }

      .purchase-episode {
        @include button;
        background-color: $bg_FF4000;
        color: $white;
      }
    }
98

zhanghaozhe committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
    .is-aist-box {
      width: 100%;
      height: 100%;
      position: absolute;
      left: 0;
      top: 0;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      flex-flow: column;
      justify-content: center;
      align-items: center;
      color: #fff;

      i {
        font-size: 34px;
      }

      .time {
        font-size: 16px;
      }
    }
120

zhanghaozhe committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
    video {
      width: 100%;
      height: 100%;
    }
  }

  .tab {
    height: $tabHeight;
    max-height: $tabHeight;
    line-height: $tabHeight;
    text-align: center;
    background: #fff;
    flex: 1 0 auto;
    display: flex;
    justify-content: center;

    & > div {
      flex: 1 0 auto;
    }
xuzhenghua committed
140

zhanghaozhe committed
141 142 143 144 145 146 147 148 149
    a {
      display: inline-block;
      height: $tabHeight;
      font-size: $font_16;
      border-bottom: 1px solid transparent;

      &.active {
        border-bottom: 1px solid $active;
      }
xuzhenghua committed
150
    }
zhanghaozhe committed
151
  }
152

zhanghaozhe committed
153 154
  .active {
    color: $active;
155

zhanghaozhe committed
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
    .iconiconfront-74 {
      color: $color_555;
    }
  }

  .progress-share-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 290px;
    height: 332px;
    padding: 18px 15px;
    background: url("./images/progress-share-bg.png");
    background-size: contain;

    & > .title {
      font-size: 21px;
      color: #00656F;
      line-height: 30px;
      text-align: center;
      margin-bottom: 20px;
178
    }
179

zhanghaozhe committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
    .progress-container {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;

      li {
        flex: 1;

        .title {
          font-size: 14px;
          color: #00838F;
          line-height: 20px;
          text-align: center;
          flex: 1;
          margin-bottom: 10px;
195
        }
196

zhanghaozhe committed
197 198 199 200 201 202 203 204 205
        .number {
          font-size: 15px;
          color: #00656F;
          text-align: center;

          .num {
            font-size: 33px;
            color: #00656F;
          }
206
        }
zhanghaozhe committed
207 208
      }
    }
xuzhenghua committed
209

zhanghaozhe committed
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
    .share-container {
      .title {
        position: relative;
        text-align: center;
        font-size: 14px;
        color: #00838F;
        margin-bottom: 25px;

        &::before {
          position: absolute;
          top: 50%;
          left: 30px;
          transform: translateY(-50%);
          content: '';
          display: block;
          width: 70px;
          height: 1px;
          background: #77c4bf;
228
        }
xuzhenghua committed
229

zhanghaozhe committed
230 231 232 233 234 235 236 237 238 239
        &::after {
          position: absolute;
          top: 50%;
          right: 30px;
          transform: translateY(-50%);
          content: '';
          display: block;
          width: 70px;
          height: 1px;
          background: #77c4bf;
240
        }
zhanghaozhe committed
241
      }
xuzhenghua committed
242

zhanghaozhe committed
243 244 245 246 247
      ul {
        display: flex;
        justify-content: space-around;
        padding: 0 20px;
        text-align: center;
xuzhenghua committed
248

zhanghaozhe committed
249 250 251 252 253 254 255 256
        li {
          font-size: 12px;
          color: #00838F;

          .iconfont {
            font-size: 40px;
            color: #00838f;
          }
257
        }
zhanghaozhe committed
258
      }
259
    }
zhanghaozhe committed
260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281

    .close {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: -63px;
      color: #fff;
      font-size: 30px;
    }

    &-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      touch-action: none;
      z-index: 100;

    }
  }
xuzhenghua committed
282
}
zhanghaozhe committed
283

zhanghaozhe committed
284 285 286 287 288 289 290 291 292 293 294

.limit-free-cover {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, .8);
  z-index: 999;
}

zhanghaozhe committed
295
.free-popup {
zhanghaozhe committed
296 297 298 299
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
zhanghaozhe committed
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
  width: 290px;
  height: 366px;
  border-radius: 5px !important;
  padding: 0 !important;
  background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/time_limited_free/M/popup-bg.png") !important;
  background-size: cover !important;

  .title {
    display: flex;
    align-items: center;
    height: 125px;
    padding: 0 20px;
    color: #fff !important;
    font-size: 15px;
  }

zhanghaozhe committed
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
  .des {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 20px;

    .qrcode {
      margin-bottom: 10px;
      width: 118px;
      height: 118px;
    }

    & > span:nth-of-type(1) {
      color: #666;
      font-size: 13px;
      margin-bottom: 10px;
    }

    & > span:nth-of-type(2) {
      color: #333;
      font-size: 15px;
      margin-bottom: 14px;
    }

    span span {
      color: #FF2121;
    }

    .no-prompt {
      label {
        position: relative;
        padding-left: 21px;
        height: 14px;
      }

      input, .checkbox-label {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        width: 13px;
        height: 13px;
        -webkit-appearance: none;
        outline: 0;
        background: #fff;
      }

      input {
        opacity: 0;
      }

      .checkbox-label {
        border: 1px solid rgba(84, 92, 100, .6);
        border-radius: 1px;
        left: -1px;
        box-sizing: border-box;

        .iconfont {
          color: #fff;
          font-size: 12px;
        }
      }

      span {
        color: #545C64;
        font-size: 13px;
        margin-bottom: 0;
        line-height: 14px;
      }

      .checked {
        background: #09f;
      }
    }
  }

  .close-btn {
    position: absolute;
    bottom: -44px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: #fff;
  }
zhanghaozhe committed
401 402
}