_order-detail.css 5.89 KB
$black: #000;
$white: #fff;

html,
body {
    height: 100%;
}

.main-wrap {
    height: 100%;
    background: #f6f6f6;
}

.order-detail {
    padding-bottom: 170px;

    > div {
        background: $white;
        padding: 0 30px;
    }

    .order-status {
        display: flex;
        height: 80px;
        line-height: 80px;
        color: $white;
        background: $black;

        p:first-of-type {
            flex: 1;
            font-size: 34px;
        }

        p {
            padding-left: 30px;
        }
    }

    .order-code {
        padding: 22px 30px;
        margin-bottom: 20px;

        p:first-of-type {
            font-size: 34px;
            font-weight: 600;
        }

        p:last-of-type {
            font-size: 28px;
            color: #b0b0b0;
        }
    }

    .order-address {
        position: relative;
        padding: 20px 30px 27px;
        margin-bottom: 20px;
        word-wrap: break-word;

        p:first-of-type {
            font-size: 32px;
            font-weight: 600;

            span {
                margin-right: 40px;
            }
        }

        p:last-of-type {
            font-size: 28px;
            color: #b0b0b0;
        }

        &:after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 12px;
            background: resolve("me/order-border.png") repeat-x;
            border-bottom: 1px solid #eee;
        }
    }

    .order-goods {
        padding-top: 20px;
        border-bottom: 1px solid #eee;

        .goods-info {
            display: flex;
            padding: 20px 0;
            border-bottom: 1px solid #eee;

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

            a {
                display: flex;
                width: 100%;
            }
        }

        .img-box {
            position: relative;
            width: 98px;
            height: 130px;
            overflow: hidden;

            label {
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 30px;
                line-height: 30px;
                background: rgba(0, 0, 0, 0.2);
                color: $white;
                text-align: center;

                &.price-gift {
                    background: #eb76aa;
                }
            }

            img {
                width: 100%;
                height: 100%;
            }
        }

        .goods-detail {
            flex: 1;
            margin: 0 20px;
            font-size: 24px;

            span {
                margin-right: 40px;
            }

            .name {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;
                height: 2.4em;
                line-height: 1.25;
                overflow: hidden;
                font-size: 28px;
            }

            .size {
                color: #b0b0b0;
            }
        }

        .goods-price {
            text-align: right;

            p:first-of-type {
                font-size: 28px;
            }

            p:last-of-type {
                font-size: 30px;
                color: #b0b0b0;
            }

            .goods-status {
                background-color: #4a90e2;
                color: #fffefe;
                font-size: 22px;
                border-radius: 15px;
                padding: 5px 10px;
            }
        }
    }

    .order-amount {
        padding: 26px 30px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        text-align: right;

        li {
            font-size: 28px;
            margin-left: 50%;

            label {
                display: inline-block;
                text-align: left;
                float: left;
                color: #b0b0b0;
            }

            span {
                display: inline-block;
                text-align: right;
            }

            &:last-of-type {
                font-size: 34px;

                label {
                    color: $black;
                }
            }
        }

        .sum {
            font-weight: bold;
        }
    }

    .order-button {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        padding: 30px 20px;
        border-top: 1px solid #eee;
        text-align: right;
        background-color: #fff;

        a {
            display: inline-block;
            padding: 0 20px;
            height: 68px;
            line-height: 68px;
            color: $black;
            text-align: center;
            -webkit-appearance: none;
            border: 0 none;
            background: $white;
            font-size: 28px;
            margin-right: 10px;
            width: 192px;
        }

        button {
            padding: 0 20px;
            height: 68px;
            line-height: 68px;
            color: $black;
            text-align: center;
            -webkit-appearance: none;
            border: 0 none;
            background: $white;
            font-size: 28px;
            margin-right: 10px;

            &.black {
                width: 192px;
                color: $white;
                background: $black;
            }

            &.countdown {
                color: $white;
                background: $black;
            }

            &.normal {
                width: 192px;
                padding: 0;
                border: 1px solid $black;
                color: $black;
            }

            &:focus {
                outline: none;
            }
        }

        .count-down {
            display: inline-block;
            width: 110px;
            text-align: left;
        }
    }
}

.select .overdue {
    color: #b0b0b0;
}

.cancel-reason {
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}