seckill.scss 4.91 KB
.seckill {
    padding-left: 20px;

    .seckill-tab {
        width: 100%;
        overflow-x: scroll;
        white-space: nowrap;
        height: 58px;

        .tab-item {
            border-radius: 12px;
            display: inline-block;
            text-align: center;
            margin-right: 7px;
            height: 48px;
            padding: 5px 0;
            white-space: normal;
            width: 100px;
            line-height: 22px;
            font-weight: bold;
        }

        .date {
            width: 100%;
            display: inline-block;
            font-size: 16px;
        }

        .time {
            width: 100%;
            display: inline-block;
            font-size: 18px;
            position: relative;
            top: -2px;
        }
    }

    .out-seckill-tab {
        height: 48px;
        overflow: hidden;
    }

    .out-product-list {
        height: 248px;
        overflow: hidden;
        margin-top: 15px;
    }

    .product-list {
        overflow-x: scroll;
        white-space: nowrap;
        height: 258px;

        .product {
            width: 160px;
            margin-right: 17px;
            display: inline-block;

            .img-box {
                width: 160px;
                height: 216px;
                position: relative;
            }

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

            .product-brand {
                width: 100%;
                height: 40px;
                line-height: 40px;
                background: #25292c;
                color: #fff;
                text-align: center;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                font-size: 18px;
                position: absolute;
                bottom: 0;
                padding: 0 10px;
                box-sizing: border-box;
            }

            .seckill-status {
                width: 160px;
                height: 30px;
                color: #fff;
                padding-left: 5px;
                box-sizing: border-box;
                overflow: hidden;
                line-height: 31px;
                position: relative;
            }

            .status-bg {
                width: 101px;
                height: 30px;
                background-size: cover;
                background-repeat: no-repeat;
                position: absolute;
                right: 0;
                top: 0;
                z-index: 2;
            }

            .price-bg {
                width: 100%;
                height: 29px;
                position: absolute;
                top: 0;
                left: 0;
                z-index: 1;
            }

            .status-over {
                background-image: url("img/activity/seckill/seckill-1.png");
            }

            .status-wait {
                background-image: url("img/activity/seckill/seckill-2.png");
            }

            .status-go {
                background-image: url("img/activity/seckill/seckill-0.png");
            }

            .price {
                font-size: 17px;
                float: left;
                width: 83px;
                text-align: center;
                position: relative;
                z-index: 3;
            }

            .seckill-price {
                font-weight: bold;
            }

            .market-price {
                font-size: 11px;
                text-decoration: line-through;
                display: inline-block;
                margin-left: -3px;
            }

            .status-type {
                width: 76px;
                text-align: center;
                display: inline-block;
                border: none;
                font-size: 15px;
                position: relative;
                left: -2px;
                font-weight: bold;
                line-height: 30px;
                z-index: 3;
            }
        }
    }

    .less-than-3 {
        height: 280px;

        .product-list {
            height: 280px;
        }

        .product {
            width: 195px;
            margin-right: 7px;

            &:last-child {
                margin-right: 0;
            }

            .img-box {
                width: 195px;
                height: 244px;
            }

            .seckill-status {
                width: 195px;
                height: 37px;
                line-height: 37px;
            }

            .status-bg {
                height: 37px;
                width: 101px;
            }

            .price-bg {
                width: 100%;
                height: 34px;
            }

            .price {
                width: 105px;
                font-size: 20px;
            }

            .market-price {
                font-size: 13px;
            }

            .status-type {
                font-size: 18px;
                width: 85px;
                line-height: 37px;
            }
        }
    }
}