conpon-new.page.css 4.63 KB
body {
    background-color: #f0f0f0;
}

.coupon-new-page {
    .filter-box {
        height: 88px;
        display: flex;
        padding: 14px 0;
        box-shadow: 0 0 16px 0 #eee;
        background-color: #fff;
        position: relative;

        .no-used,
        .used,
        .invalid {
            flex: 1;
            line-height: 60px;
            text-align: center;
            color: #b0b0b0;
        }

        .no-used,
        .used {
            border-right: 1px solid #e0e0e0;
        }

        .show-filter-btn,
        .active {
            color: #444;
        }
    }

    .filter-item {
        display: flex;
        width: 100%;
        height: 130px;
        justify-content: space-around;
        align-items: center;
        background-color: #fff;

        button {
            width: 150px;
            height: 70px;
            background-color: #fff;
            color: #444;
            font-size: 28px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
        }
    }

    .exchange-box {
        height: 90px;
        padding: 16px 20px;
        background-color: #fff;

        input {
            width: 580px;
            height: 60px;
            margin-right: 12px;
            padding: 0 20px;
            background-color: #f0f0f0;
            border-radius: 4px;
            border: none;
        }

        button {
            width: 110px;
            height: 60px;
            border-radius: 4px;
            font-size: 28px;
            color: #fff;
            background-color: #444;
        }
    }

    .coupon-list {
        padding: 20px;

        .coupon-section {
            margin-bottom: 20px;
        }

        .coupon {
            position: relative;
            width: 710px;
            height: 200px;

            .coupon-left {
                width: 200px;
                height: 200px;
                background-image: resolve("home/coupon/bg_left@2x.png");
                background-size: 100% 100%;
                float: left;
                text-align: center;
                padding-top: 32px;
            }

            .coupon-left > p {
                color: #fc5960;
                font-size: 24px;
                font-weight: 300;

                &.value > span {
                    font-size: 60px;
                    font-weight: 600;
                }
            }

            .coupon-right {
                width: 510px;
                height: 200px;
                background-image: resolve("home/coupon/bg_right@2x.png");
                background-size: 100% 100%;
                float: left;
                padding: 22px;
                font-size: 22px;
                color: #b0b0b0;
                position: relative;

                .title {
                    font-size: 24px;
                    color: #444;
                    margin-bottom: 40px;
                }

                .time {
                    margin-bottom: 26px;
                }

                .use-now {
                    width: 130px;
                    height: 50px;
                    border: 1px solid #000;
                    border-radius: 25px;
                    background-color: #fff;
                    float: right;
                    margin-top: -20px;
                }

                .tip {
                    position: absolute;
                    top: 0;
                    right: 0;
                }
            }

            .stamp {
                position: absolute;
                width: 126px;
                height: 114px;
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
                background-image: resolve("home/coupon/timeout@2x.png");
                background-size: 100% 100%;
            }
        }

        .invalid-coupon {
            > .coupon-left > p {
                color: #b0b0b0;
            }

            > .coupon-right > .title {
                color: #b0b0b0;
            }
        }

        .coupon-intro {
            background: rgba(255, 255, 255, 0.7);
            margin-top: -12px;
            padding: 36px 44px 22px;
            list-style: disc;

            li {
                font-size: 22px;
                color: #444;
            }
        }
    }

    .no-conpon-now {
        text-align: center;
        padding-top: 262px;
        color: #b0b0b0;

        .icon-not {
            width: 208px;
            height: 130px;
            background-image: resolve("home/employ/not.png");
            background-size: 100% 100%;
            margin: auto auto 30px;
        }

        p {
            font-size: 28px;
        }
    }

    .hide {
        display: none;
    }
}