_coupons.css 5.73 KB
.me-coupons-page {
    font-size: 12px;

    .coupons > .title {
        font-size: 14px;
        font-weight: bold;
    }

    .coupons-wrap {
        width: 776px;
        border: 1px solid #e6e6e6;
        margin: 0 auto 10px;

        .coupons-header {
            height: 25px;
            padding: 0 20px;
            line-height: 25px;
            text-align: center;
            border-bottom: 1px solid #e6e6e6;
            background: #efefef;

            span {
                display: block;
                float: left;
            }

            span.coupons-name {
                width: 241px;
            }

            span.coupons-info {
                width: 388px;

                .coupons-text {
                    color: #000;
                    padding: 0 25px;
                    text-align: left;
                }
            }

            span.coupons-opt {
                width: 100px;
                color: #000;
            }
        }
    }

    .coupons-wrap .coupon {
        display: table;
        border-bottom: 1px solid #e6e6e6;
        width: 736px;
        margin: 0 auto;
        text-align: center;
        color: #666;
        padding: 15px 0;

        > * {
            display: table-cell;
            vertical-align: middle;
            line-height: 20px;
        }

        .coupons-img {
            border-left: none;
        }

        &:last-child {
            border-bottom: none;
        }

        .coupons-card {
            width: 221px;
            height: 80px;
            display: table;
            table-layout: fixed;
            text-align: left;
            padding: 0 10px;
            background-image: resolve(home/coupons1.png);
            background-repeat: no-repeat;

            .coupons-card-header {
                height: 20px;
                color: #fff;
                overflow: hidden;

                p.left-title {
                    width: 220px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    float: left;
                }

                p.right-title {
                    width: 61px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    float: right;
                }
            }

            .coupons-card-content {
                height: 60px;
                display: table;
                overflow: hidden;
            }

            .coupons-card-content .coupons-card-row {
                display: table-row;
            }

            .coupons-card-content .coupons-card-row .coupons-sht {
                display: table-cell;
                width: 65px;
                vertical-align: middle;
                text-align: center;
                font-size: 12px;

                p {
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    display: inline-block;
                    width: inherit;
                    vertical-align: bottom;
                }

                .coupons-price {
                    vertical-align: sub;
                    font-size: 24px;
                    font-weight: bold;
                }
            }

            .coupons-card-content .coupons-card-row .coupons-full {
                display: table-cell;
                vertical-align: middle;
            }

            .coupons-card-content .coupons-card-row .coupons-dtl {
                display: table-cell;
                padding-left: 10px;
                font-weight: bold;
                vertical-align: middle;
            }

            .red {
                color: red;
                font-weight: normal;
            }
        }

        .coupons-freight {
            background-image: resolve(home/coupons2.png);
        }

        .coupons-use {
            &:before {
                content: "";
                background-image: resolve(home/use.png);
                background-repeat: no-repeat;
                width: 55px;
                height: 48px;
                position: absolute;
                margin-left: 148px;
                margin-top: 25px;
            }
        }

        .coupons-invalid {
            background-image: resolve(home/coupons3.png);

            &:before {
                content: "";
                background-image: resolve(home/invalid.png);
                background-repeat: no-repeat;
                width: 55px;
                height: 48px;
                position: absolute;
                margin-left: 148px;
                margin-top: 25px;
            }
        }

        .coupons-info {
            width: 388px;
        }

        .coupons-opt {
            .btn {
                width: 90px;
                height: 30px;
                display: inline-block;
                line-height: 30px;
                float: left;
            }

            .use-btn {
                border: 1px solid;
                cursor: pointer;
            }

            .overtime-btn {
                background: #ccc;
                color: #fff;
            }
        }
    }

    .coupons-wrap .coupon .end-soon {
        color: #e8044f;
    }

    .coupons-wrap .un-use-coupons {
        .coupons-img {
            width: 20%;
        }

        .value {
            width: 18%;
        }

        .term-of-validity {
            width: 22%;

            span {
                display: none;
            }
        }

        .use-remark {
            width: 24%;
        }

        .status {
            width: 16%;
        }

        .end-soon span {
            display: inline;
            padding: 3px 10px;
            color: #fff;
            background: #e8044f;
        }
    }
}