_index.scss 4.36 KB
$tip: sprite-map("passport/tip/*.png", $spacing: 10px);

@import "login", "register", "back", "welcome";

.passport-page {
    width: 1150px;
    margin-left: auto;
    margin-right: auto;

    .content {
        float: left;
        margin-top: 107px;
        padding-left: 85px;
    }

    .input {
        height: 43px;
        font-size: 16px;
        line-height: 1.2;
        line-height: 43px\9;
        width: 268px;
        border: 1px solid #dbdbdb;
        text-indent: 10px;
        color: #9a9a9a;
        color: rgba(0,0,0,.5);
    }

    .error {
        border-color: #f00 !important;
    }

    .btn {
        display: block;
        height: 46px;
        line-height: 46px;
        width: 100%;
        text-align: center;
        color: #fff;
        background-color: #ff1901;
        letter-spacing: 10px;
        font-size: 20px;
        cursor: pointer;
        
        &.disable {
            background-color: #555;
            cursor: default;
        }
    }

    .pwd-intensity-container {
        width: 270px;
        text-align: right;
        padding-top: 5px;

        &.red {
            .pwd-intensity {
                color: #ee0011;
            }
            .color {
                background: #ee0011;
                color: #fff;
            }
        }

        &.yellow {
            .pwd-intensity {
                color: #f6da1e;
            }
            .color {
                background: #f6da1e;
                color: #fff;
            }
        }

        &.green {
            .pwd-intensity {
                color: #3ee392;
            }
            .color {
                background: #3ee392;
                color: #fff;
            }
        }
        .pwd-intensity {
            height: 15px;
            font-size: 12px;
            background-color: #e8e8e8;
            padding: 0px 10px;
            text-align: center;
            color: #b9b9b9;
        }
    }

    .pwd-tips {
        position: absolute;
        top: -10px;
        left: 285px;
        width: 160px !important;
        height: 72px;
        padding-top: 7px;
        font-size: 12px;
        background: sprite($tip, block) no-repeat; 

        >div {
            position: relative;
            height: 22px;
            line-height: 22px;
            margin-left: 15px;
            padding-left: 15px;
            font-size: 12px;
            color: #b9b9b9;

            i {
                position: absolute;
                width: 14px;
                height: 14px;
                left: -2px;
                top: 50%;
                margin: -7px 0 0;
                background: sprite($tip, info);
            }

            &.no {
                color: red;
                i {
                    background: sprite($tip, error);
                }
                
            }

            &.yes {
                i {
                    background: sprite($tip, success);
                }
            }
        }
    }

    .tip-panel {
        position: absolute;
        display: none;
        width: 248px;
        padding: 0 10px;
        z-index: 100;
        background-color: #161616;
        border: 1px solid rgba(255, 255, 255, 0.7);
        margin-top: 5px;
        cursor: pointer;
        @include border-radius(5px);

        li {
            height: 20px;
            line-height: 20px;
            color: #b9b9b9;
        }
    }
    .err-tip {
        position: absolute;
        font-size: 14px;
        white-space: nowrap;
        top: 8px;
        left: 285px;
        padding: 6px 0;
        color: #f00;

        i {
            display: block;
            float: left;
            height: 14px;
            width: 14px;
            background: sprite($tip, error) no-repeat;
            margin-right: 5px;
        }
    }

    /*完善信息提示框*/
    .page-tip {
        display: block;
        width: 100%;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        color: #ccc;
        clear: both;
        margin-bottom: 15px;
    }
}

.passport-cover {
    float: left;
    margin: 107px 0;
    width: 575px;

    .cover-content {
        width: 100%;
        height: 318px;
        padding: 50px 0;
        border-right: 1px solid #dfdfdf;
    }

    .cover-img {
        display: block;
        width: 252px;
        height: 190px;
        margin: 0 auto;
        margin-top: 50px;
    }
}