_save.scss 12.4 KB
.order-save-page {
    width: 990px;
    margin: 40px auto;

    // 填写订单
    .order-edit {
        width: 100%;
        position: relative;
        margin-bottom: 35px;

        &:before {
            content: '';
            display: block;
            background: sprite($order, cart_logo) no-repeat;
            width: image-width(sprite-file($order, cart_logo));
            height: image-height(sprite-file($order, cart_logo));
        }

        .order-title {
            ul {
                display: block;
                background: sprite($order, cartnew_flow) no-repeat;
                width: image-width(sprite-file($order, cartnew_flow));
                height: image-height(sprite-file($order, cartnew_flow));
                position: absolute;
                right: 0;
                top: 0;

                li {
                    display: block;
                    width: 33.33333333%;
                    float: left;
                    font-size: 12px;
                    color: #999;
                    height: 50px;
                    line-height: 50px;

                    &.active {
                        color: #333;
                        text-align: center;
                        &:after {
                            display: block;
                            content: '';
                            background: sprite($order, cart_flow_black) no-repeat;
                            width: image-width(sprite-file($order, cart_flow_black));
                            height: image-height(sprite-file($order, cart_flow_black));
                            position: absolute;
                            left: 50%;
                            margin-left: image-width(sprite-file($order, cart_flow_black))/(-2);
                            top: 0;
                        }
                    }
                    &.end {
                        text-align: right;
                    }
                }
            }
        }

        .order-edit-main {
            border: 1px solid #ccc;
            margin-top: 30px;

            h2.title {
                height: 30px;
                line-height: 30px;
                background: #000000;
                color: #fff;
                font-size: 12px;
                text-indent: 15px;
            }

            .order-content {
                padding: 5px 30px;
                font-size: 12px;
                color: #333;


                //public
                .order-selection {

                    border-bottom: 1px dashed #ccc;
                    padding: 15px 0;

                    h2 {
                        font-size: 14px;
                        color: #000;

                        span {
                            color: #e8044f;
                            text-decoration: underline;
                            cursor: pointer;
                        }
                    }

                }
                //end

                .address-list {
                    ul {
                        padding: 15px 0;

                        li {
                            padding: 10px 0;

                            strong {
                                font-weight: bold;
                                margin-right: 15px;
                            }

                            input.radio {
                                margin: 0;
                                vertical-align: middle;
                            }

                        }
                        .order-modify-btn {
                            display: inline-block;
                            float: right;
                            color: #e8044f;
                            width: 80px;
                            padding-right: 20px;
                            height: auto;
                            overflow: hidden;

                            span {
                                text-decoration: underline;
                                cursor: pointer;

                                float: right;

                                &.address-modify {
                                    float: left;
                                }
                            }
                        }

                        &.exist-address-list {

                            li {
                                border: 1px solid #fff;
                                padding-left: 15px;

                                &.active {
                                    background: #dbedf7;
                                    border: 1px solid #8fb8e0;
                                }

                                &.has-exist-address {
                                    .default-address {
                                        color: #468fa2;
                                        text-decoration: underline;
                                        cursor: pointer;
                                    }
                                }
                            }
                        }
                    }
                }

                .address-manage {
                    border-top: 1px dashed #ccc;

                    li {

                        height: 25px;
                        line-height: 25px;

                        .address-legend {
                            width: 80px;
                            text-align: right;
                            display: inline-block;

                            color: #333;

                            i {
                                color: #e8044f;
                            }
                        }

                        .text-input {
                            height: 25px;
                            line-height: 25px;
                            width: 180px;
                            padding: 0;
                            border: 1px solid #ccc;
                            @include box-sizing();
                        }
                        select.text-input {
                            width: 100px;
                        }

                        .address-tel-input {
                            width: 180px;
                            text-align: center;
                            display: inline-block;
                            height: 25px;
                            line-height: 25px;

                            input {
                                text-align: left;
                                float: right;
                                width: 120px;

                                &.tel-lengend {
                                    float: left;
                                    width: 40px;
                                }
                            }
                        }
                    }
                }

                @each $class in save-btn, pay-btn {
                    .#{$class} {
                        background: sprite($order, $class) no-repeat;
                        width: image-width(sprite-file($order, $class));
                        height: image-height(sprite-file($order, $class));
                        line-height: image-height(sprite-file($order, $class));
                        display: block;
                        font-size: 14px;
                        color: #fff;
                        font-weight: bold;
                        text-indent: 25px;
                        cursor: pointer;


                    }
                }

                .pay-time {

                    ul {
                        padding: 15px;

                        li {
                            margin: 10px 0;

                            input.radio {
                                margin: 0;
                                vertical-align: middle;
                            }
                        }
                    }

                    .pay-time-modify {

                        h3 {
                            height: 25px;
                            line-height: 25px;
                            border: 1px solid #e6e6e6;
                            background: #efefef;
                            text-indent: 25px;
                            position: relative;

                            &:after {
                                content: '';
                                display: block;
                                width: 11px;
                                height: 11px;
                                background: image_url('order/roundgreybtn.gif');
                                position: absolute;
                                top: 7px;
                                left: 8px;
                            }
                        }

                        .pay-dashed-hr {
                            border-bottom: 1px dashed #ccc;
                            padding-bottom: 10px;
                        }

                        .pay-type-tips {
                            color: #999;
                        }

                        div.pay-type-legend {
                            width: 130px;
                            display: inline-block;
                            padding: 0;
                            text-indent: 0;
                        }
                        span.pay-type-legend {
                            margin: 0;
                            color: #468fa2;
                            cursor: pointer;

                            &:after {
                                content: '';
                                width: 12px;
                                height: 12px;
                                background: image_url('order/icon_arrow.png');
                                display: inline-block;
                                @include transition(transform .3s);
                            }

                            &.active {
                                &:after {
                                    @include rotate(180deg);
                                }
                            }
                        }

                        .support-type {
                            display: block;
                            margin-left: 130px;
                            border-left: 1px dashed #ccc;
                            font-size: 12px;

                            h4 {
                                padding: 10px 0 10px 15px;
                            }

                            ul {
                                height: auto;
                                overflow: hidden;
                                margin: 0;
                                padding: 0;

                                li {
                                    display: block;
                                    float: left;
                                    width: 105px;
                                    height: 30px;
                                    border: 1px solid #ccc;
                                    margin: 0 0 10px 15px;

                                    img {
                                        display: block;
                                        width: 100%;
                                        height: 100%;
                                        overflow: hidden;
                                    }
                                }
                            }
                        }

                        .pay-recommend {
                            font-size: 0;

                            .pay-type-legend, .support-type {
                                font-size: 12px;
                            }
                        }
                    }
                }

                .select-express {

                    border-bottom: none;

                    .express-list {
                        padding-left: 15px;
                        margin: 10px 0;

                        input.radio {
                            margin: 0;
                            vertical-align: middle;
                        }
                    }

                    .express-tips {
                        color: #999;
                    }
                }

            }
        }
    }

    //
    .order-pay {
        width: 100%;
    }
}