seckill.scss 3.98 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;
        }

        .date {
            width: 100%;
            display: inline-block;
            font-size: 16px;
            transform: scale(0.9);
        }

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

    .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: 12px;
                position: absolute;
                bottom: 0;
                padding: 0 10px;
                box-sizing: border-box;
            }

            .seckill-status {
                width: 160px;
                height: 30px;
                color: #fff;
                background-size: cover;
                background-repeat: no-repeat;
                padding-left: 7px;
                box-sizing: border-box;
                overflow: hidden;
            }

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

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

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

            .price {
                font-size: 17px;
                float: left;
                width: 83px;
            }

            .market-price {
                font-size: 11px;
                text-decoration: line-through;
                transform: scale(0.75);
                display: inline-block;
                margin-left: -6px;
            }

            .status-type {
                width: 76px;
                text-align: center;
                display: inline-block;
                border: none;
                font-size: 15px;
                position: relative;
                top: 1px;
                left: -2px;
                transform: scale(0.9);
            }
        }
    }

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

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

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

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