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

.play {
4
    .video {
xuzhenghua committed
5
        width: 100%;
6 7 8
        height: 215px;
        background-color: $black;
        position: relative;
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
        .video-js {
            width: 100%;
            height: 100%;

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

            &.vjs-has-started{
                .vjs-custom-play-button-cover{
                    bottom: 2.9em;
                }
            }


            &.vjs-playing {
                .vjs-custom-play-button-cover {
                    display: none;
                }
            }
        }
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 89 90 91 92 93 94 95 96 97 98
        .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;
                display: flex;
                justify-content: space-around;
            }

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

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

100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
        .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;
            }
        }
121

122 123 124 125
        video {
            width: 100%;
            height: 100%;
        }
126
    }
zhanghaozhe committed
127

128 129 130 131 132 133 134 135 136
    .tab {
        height: $tabHeight;
        max-height: $tabHeight;
        line-height: $tabHeight;
        text-align: center;
        background: #fff;
        flex: 1 0 auto;
        display: flex;
        justify-content: center;
137

138 139
        & > div {
            flex: 1 0 auto;
140 141
        }

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

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

154 155
    .active {
        color: $active;
156

157 158
        .iconiconfront-74 {
            color: $color_555;
159
        }
160
    }
161

162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
    .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;
        }
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 208 209
        .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;
                }

                .number {
                    font-size: 15px;
                    color: #00656F;
                    text-align: center;

                    .num {
                        font-size: 33px;
                        color: #00656F;
                    }
                }
            }
        }
xuzhenghua committed
210

211 212 213 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 248 249 250 251 252 253 254 255 256 257 258 259
        .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;
                }

                &::after {
                    position: absolute;
                    top: 50%;
                    right: 30px;
                    transform: translateY(-50%);
                    content: '';
                    display: block;
                    width: 70px;
                    height: 1px;
                    background: #77c4bf;
                }
            }

            ul {
                display: flex;
                justify-content: space-around;
                padding: 0 20px;
                text-align: center;

                li {
                    font-size: 12px;
                    color: #00838F;

                    .iconfont {
                        font-size: 40px;
                        color: #00838f;
                    }
                }
            }
260
        }
xuzhenghua committed
261

262 263 264 265 266 267 268 269
        .close {
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -63px;
            color: #fff;
            font-size: 30px;
        }
xuzhenghua committed
270

271 272 273 274 275 276 277 278 279
        &-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
280

281
        }
282
    }
xuzhenghua committed
283
}