_third.css 4.8 KB
@import "config";

$big-font: 20px;
$small-font: 13px;
$btn-height: 50px;
$btn-width: 180px;

.bind-wrapper {
    .focus {
        border: 2px solid #000 !important;
    }

    .auth-page,
    .pwd-page,
    .relate-success-page {
        @mixin passport-page;

        .img-captcha-wrapper,
        .sms-captcha-wrapper {
            width: $captcha;
        }

        .pwd-wrapper,
        .repwd-wrapper {
            width: 100%;
        }
    }

    .bind-confirm-page {
        @mixin passport-page;

        width: 550px !important;

        .quick-link {
            margin: 0 150px;
        }
    }

    .relate-confirm-page {
        @mixin passport-page;

        width: 550px !important;

        .quick-btn {
            margin: 0 70px;
        }
    }

    .bind-success-page {
        @mixin passport-page;

        width: 680px !important;
    }

    .relate-success-page {
        @mixin passport-page;

        width: 400px !important;
    }

    li {
        @mixin li-setting;

        &.small {
            height: calc($item-height / 3);
        }

        &.big-width {
            height: 110px !important;
            margin: -10px 0;
        }
    }

    .title {
        font-size: $big-font;
        color: $theme-color;
        font-weight: bold;
        height: $item-height;
        line-height: @height;
    }

    .desc {
        font-size: $small-font;
        height: @font-size;
    }

    .center {
        text-align: center;
    }

    .underline {
        text-decoration: underline;
    }

    .input {
        @mixin input;

        font-weight: bold;
    }

    .bind-confirm-page {
        li {
            width: 530px !important;
            height: $item-height;
        }
    }
}

.btn-fixed-height {
    height: $btn-height;
    line-height: @height;
    width: $btn-width;
    margin: 0 auto;
}

.bottom {
    position: absolute;
    bottom: 0;
}

$captcha-input: 195px;
$captcha-margin: 20px;
$captcha-ctrl: calc($item-width - $captcha-input - $captcha-margin);
$captcha-img-width: 90px;
$captcha-btn-width: calc($captcha-ctrl - $captcha-img-width);

.img-captcha-component {
    .input {
        @mixin input;

        width: $captcha-input;
    }

    .refresh {
        background-color: $captcha-img-bg;
        margin-left: $captcha-margin;
        width: $captcha-ctrl;
        height: $item-height;

        .img-captcha {
            width: 90px;
            height: $item-height;
        }

        .ctrl {
            height: $item-height;
            width: $captcha-btn-width;
            line-height: @height;
            text-align: center;
            color: $captcha-btn-fg;
            cursor: pointer;
        }
    }
}

.sms-captcha-component {
    .input {
        @mixin input;

        width: $captcha-input;
    }

    .send {
        margin-left: $captcha-margin;
        width: $captcha-ctrl;
        height: $item-height;
        line-height: @height;
    }
}

$mobile-margin: 20px;
$mobile-region: 100px;
$mobile-code: 50px;
$mobile-mobile: calc($item-width - $mobile-margin - $mobile-region);
$mobile-phone: calc($item-width - $mobile-margin - $mobile-region - $mobile-code - 2px);

.mobile-input-component {
    .region {
        @mixin region;
    }

    .ctrl {
        border: 2px solid $bord-color;
        width: $mobile-mobile;
        margin-left: $mobile-margin;
        height: $item-height;

        .code {
            @mixin country-code;
        }

        .phone-num {
            width: calc($mobile-phone - 4px);
            height: calc($item-height - 4px);
            border: none !important;
            line-height: calc($item-height - 4px);
            font-size: 16px;
            padding: 0;
            color: #000;
            font-weight: bold;
        }
    }

    .country-select-list {
        position: absolute;
        top: $item-height;
        width: $item-width;
        background-color: #f8f8f8;
        border: 1px solid #eee;
        z-index: 100;
        font-size: 10px;

        .option {
            height: 20px;
            cursor: pointer;

            span {
                display: inline-block;
                height: 20px;
                line-height: @height;
            }
        }

        .option:hover {
            background-color: #666;
            color: white;
        }

        .small {
            font-size: 14px;
            margin: 0 3px;
            width: 15px;
        }
    }

    .country-select-header {
        height: $item-height;
        width: 100px;
        border: 2px solid #eee;
        font-size: 16px;
        float: left;
        cursor: pointer;

        .small {
            font-size: 14px;
            height: 40px;
            width: 20px;
            line-height: @height;
        }

        .name {
            display: inline-block;
            height: 40px;
            line-height: @height;
            margin-left: 10px;
        }
    }
}