_brand-coupon.css 2.01 KB
/*
    商品品牌券 CSS
*/

.good-detail-page {
    .coupon-drawer {
        &.open .coupon-drawer-mask {
            display: block;
        }

        &.open .coupon-drawer-dialog {
            bottom: 0;
        }
    }

    .coupon-drawer-mask {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.6);
    }

    .coupon-drawer-dialog {
        position: fixed;
        right: 0;
        bottom: -100%;
        left: 0;
        z-index: 11;
        transition: all 0.3s;
        background-color: #fff;

        .title {
            text-align: center;
            font-size: 28px;
            line-height: 88px;
            border-bottom: 1px solid #e0e0e0;
        }

        .body {
            height: 540px;
            border-bottom: 20px solid #fff;
            overflow: auto;
        }
    }

    /*-------------------------------------*\
        .coupon  单个优惠券
    \*-------------------------------------*/
    .coupon {
        min-height: 165px;
        margin-left: 30px;
        margin-right: 30px;
        padding-top: 30px;
        padding-bottom: 15px;
        border-bottom: 1px solid #e0e0e0;

        &:last-of-type {
            border-bottom: none;
        }
    }

    .coupon-btn {
        min-width: 130px;
        height: 55px;
        font-size: 28px;
        background-color: #fff;
        border-radius: 8px;
        margin-top: 20px;
        padding: 0;
        color: #b0b0b0;
        border: 1px solid #b0b0b0;
    }

    .coupon-btn-valid {
        color: #d0021b;
        border-color: #d0021b;
    }

    .coupon-intro {
        overflow: hidden;
        padding-right: 15px;
    }

    .coupon-price {
        font-size: 52px;
        line-height: 1;
        color: #d0021b;
    }

    .coupon-desc {
        font-size: 26px;
        color: #444;
    }

    .coupon-time {
        font-size: 18px;
        color: #b0b0b0;
    }
}

body.coupon-drawer-open {
    overflow: hidden;
}