index.less 2.74 KB
Newer Older
周宏民's avatar
周宏民 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 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
@imgSrc: '@/assets/images/demonstration';

.video_list {
    width: 100%;
    padding: 0 30px;
    height: calc(100% - 25px);
    margin-top: 25px;
    background: url('@{imgSrc}/视频bg2.png') no-repeat center center;
    background-size: calc(100% - 30px) auto;
    position: relative;

    .swiper_btn {
        position: absolute;
        width: 36px;
        height: 40px;
        cursor: pointer;
        z-index: 100;

        img {
            width: 100%;
        }
    }

    .swiper_btn:active {
        opacity: 0.8;
    }

    .swiper_left {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);

    }

    .swiper_right {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);

    }

    .video_box {
        width: 100%;
        height: 450px;
        padding: 0 28px 20px;
        background: url('@{imgSrc}/视频bg.png') no-repeat center center;
        background-size: calc(100% - 56px) 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .video_wrap {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        border-radius: 10px;
        padding: 10px;

        video {
            object-fit: fill;
            width: 100%;
            height: 100%;
            border-radius: 10px;
        }
    }

    .video_tip {
        width: 123px;
        height: 32px;
        background: url('@{imgSrc}/供水产品标题.png') no-repeat center center;
        background-size: 100% 100%;
        padding: 5px 0 0 15px;
        font-weight: bold;
        position: absolute;
        left: 28px;
        top: 0;
        z-index: 12;


        span {
            display: inline-block;
            width: 10px;
            height: 10px;
            border: 3px solid #FFFFFF;
            box-shadow: 0px 2px 3px 0px rgba(9, 23, 55, 0.3);
            border-radius: 50%;
            margin-right: 10px;
        }
    }

    .video_tip[type='水利产品'] {
        background: url('@{imgSrc}/水利产品标题.png') no-repeat center center;
        background-size: 100% 100%;
    }

    .video_tip[type='排水产品'] {
        background: url('@{imgSrc}/排水产品标题.png') no-repeat center center;
        background-size: 100% 100%;
    }

    .video_tip[type='节水产品'] {
        background: url('@{imgSrc}/节水产品标题.png') no-repeat center center;
        background-size: 100% 100%;
    }

}

:global {
    .dt_video_list {
        .swiper-slide {
            width: 100%;

        }

        .swiper-container {
            width: 100%;
            height: 100%;
        }
    }
}