_coupons.css 7.92 KB
.me-coupons-page {
    font-size: 12px;
    color: #444;

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

    .coupons:after {
        content: "";
        display: block;
    }

    .coupon-tabs {
        border-top: 1px solid #e0e0e0;
        margin-top: 16px;

        .tab-wrap {
            height: 40px;
            background-color: #f5f5f5;
            overflow: hidden;

            .code-input {
                width: 220px;
                height: 26px;
                margin-top: 7px;
                padding: 0 8px;
                border: 1px solid #e0e0e0;
                box-sizing: border-box;
            }

            .code-sure-btn {
                width: 40px;
                height: 26px;
                margin: 7px 15px 0 10px;
                background: #b0b0b0;
                color: #fff;
                padding: 0;
                border: 0;
                outline: none;
            }

            .sure-convert-btn {
                background: #444;
            }
        }

        .tabs {
            height: 100%;
            line-height: 40px;
            font-size: 14px;
            display: inline-block;
            margin: 0;
            padding: 0;
            background: none;

            li {
                min-width: 120px;
                height: 100%;
                padding: 0 10px;
                box-sizing: border-box;
                background: none;

                a {
                    color: #b0b0b0;
                }
            }

            .active {
                background: #fff;
                font-weight: bold;

                a {
                    color: #222;
                }
            }
        }

        .type-wrap {
            padding: 10px 15px;
            font-size: 0;
            border-bottom: 1px solid #e0e0e0;

            .type-item {
                min-width: 90px;
                height: 30px;
                line-height: 28px;
                font-size: 12px;
                text-align: center;
                padding: 0 10px;
                margin-left: 40px;
                box-sizing: border-box;
                border: 1px solid #e0e0e0;
                display: inline-block;
                cursor: pointer;
            }

            .type-item:first-child {
                margin-left: 0;
            }

            .active {
                color: #fff;
                background: #444;
                border-color: #444;
            }
        }
    }

    .coupons-wrap {
        min-height: 100px;
        margin: 17px 15px;
        background: #f5f5f5;
        padding-top: 20px;
        font-size: 0;
    }

    .empty-tip {
        font-size: 12px;
        color: #bbb;
        background: #fff;
        margin-top: -22px;

        &:before {
            content: "";
            width: 104px;
            height: 65px;
            background: resolve(home/coupon-empty.png);
            display: block;
            margin: auto;
            position: relative;
            top: -20px;
        }
    }

    .coupon-item {
        width: 354px;
        height: 100px;
        font-size: 12px;
        margin-left: 20px;
        margin-bottom: 15px;
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
        position: relative;
        user-select: none;
        box-sizing: border-box;
        display: inline-block;

        &:before {
            content: "";
            width: 8px;
            height: 100%;
            background: #222;
            position: absolute;
            left: 0;
        }

        &:after {
            content: "";
            width: 4px;
            height: 100%;
            background: resolve(home/coupon-hole.png);
            position: absolute;
            top: 0;
            left: 6px;
        }

        .due-tig {
            width: 42px;
            height: 42px;
            background: resolve(home/due-tig.png);
            position: absolute;
            top: 0;
            right: 0;
            z-index: 3;
        }

        .worth {
            width: 100px;
            line-height: 100px;
            border-right: 1px dashed #e0e0e0;
            text-align: center;
            position: absolute;
            left: 8px;

            > p {
                width: 90%;
                line-height: 1;
                display: inline-block;
                vertical-align: middle;
            }

            .price {
                font-size: 36px;
                font-weight: bold;
            }

            .conditions {
                line-height: 1.5;
                margin-top: 10px;
                display: block;
            }

            .freight {
                font-size: 24px;
                font-weight: bold;
                color: #222;
            }

            &:before,
            &:after {
                content: "";
                width: 12px;
                height: 12px;
                position: absolute;
                right: -7px;
                background: url(/home/grey-round.png);
            }

            &:before {
                top: -7px;
            }

            &:after {
                bottom: -7px;
            }
        }

        .coupon-info {
            padding: 12px 10px;
            margin-left: 108px;
            color: #b0b0b0;

            .name {
                max-width: 90%;
                height: 36px;
                line-height: 1.4;
                color: #444;
                overflow: hidden;
            }

            .type {
                font-weight: bold;
                margin-right: 4px;
            }

            .time {
                margin-bottom: 16px;
            }

            .explain-wrap {
                width: calc(100% - 119px);
                height: 98px;
                line-height: 1.4;
                position: absolute;
                top: 1px;
                left: 118px;
                color: #444;
                background: #fff;
                box-sizing: border-box;
                padding-top: 20px;
                padding-right: 20px;
                border-radius: 6px;
                z-index: 2;
                word-break: break-all;
                overflow: hidden;
                display: none;
            }

            .explain:hover .explain-wrap {
                display: block;
            }
        }

        .use-now-btn {
            width: 66px;
            height: 26px;
            line-height: 24px;
            border: 1px solid #444;
            border-radius: 13px;
            text-align: center;
            box-sizing: border-box;
            position: absolute;
            right: 10px;
            bottom: 10px;
            z-index: 1;
        }
    }

    .coupon-item-100 {
        $shopColor: #efaf46;

        &:before {
            background: $shopColor;
        }

        .worth {
            color: $shopColor;
        }

        .coupon-info .type {
            color: $shopColor;
        }
    }

    .coupon-item-200 {
        $activityColor: #fc5960;

        &:before {
            background: $activityColor;
        }

        .worth {
            color: $activityColor;
        }

        .coupon-info .type {
            color: $activityColor;
        }
    }

    .used,
    .over-time,
    .useless {
        * {
            color: #b0b0b0 !important;
        }

        &:before {
            background: #b0b0b0;
        }

        .coupon-info:after {
            content: "";
            width: 63px;
            height: 57px;
            position: absolute;
            right: 10px;
            bottom: 22px;
            background: resolve(home/used-tig.png);
        }

        .use-now-btn {
            display: none;
        }
    }

    .over-time .coupon-info:after {
        background: resolve(home/over-time-tig.png);
    }

    .useless .coupon-info:after {
        background: resolve(home/useless-tig.png);
    }
}

.coupon-code-confirm {
    .close,
    .confirm-cancel {
        display: none;
    }

    .content {
        min-width: 0;
        padding: 50px 0;
    }
}