question-detail.page.scss 5.74 KB
@import "~scss/layout/img-check";

body {
    background: #f0f0f0;
}

.nav-home {
    display: none !important;
}

.qs-detail-page {
    font-size: 28px;
    $borderColor: #ececec;

    .error-tip {
        width: 100%;
        background-color: #ff7e82;
        color: #fff;
        padding-left: 30px;
        line-height: 50px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
    }

    .qs-prompt {
        line-height: 1.4;
        font-size: 24px;
        background-color: #fefced;
        color: #ff8a46;
        padding: 10px 30px 10px 80px;
        position: relative;

        .iconfont {
            height: 40px;
            line-height: 40px;
            font-size: 40px;
            position: absolute;
            left: 30px;
            top: 50%;
            margin-top: -20px;
        }
    }

    .sub-title {
        line-height: 2;
        padding: 14px 20px;
        background: #fff;
        border-bottom: 1px solid $borderColor;
        text-align: center;
    }

    .guide-tip {
        line-height: 2;
        padding: 0 30px;
        color: #555;
    }

    .sub-qs-wrap {
        display: none;
        position: relative;
        z-index: 0;
    }

    .sub-qs-item,
    .qs-item {
        background: #fff;
        margin-bottom: 30px;
        padding-left: 30px;
        border-top: 1px solid $borderColor;
        border-bottom: 1px solid $borderColor;

        > * {
            line-height: 60px;
            padding: 10px 0;
        }

        > dd {
            border-top: 1px solid $borderColor;
            color: #b4b4b4;

            input {
                width: calc(100% - 60px);
                height: 50px;
                margin-left: 34px;
                border: 0;
                border: 1px solid $borderColor;
                color: #444;
            }

            &.on {
                color: #444;
            }
        }

        textarea {
            width: calc(100% - 26px);
            height: 100px;
            resize: none;
            border: 1px solid #ddd;
            display: block;
            color: #444;
        }

        .iconfont {
            display: inline-block;
            width: 34px;
            height: 34px;
            line-height: 34px;
            border: 1px solid #b4b4b4;
            vertical-align: middle;
            font-size: 18px;
            text-align: center;
            color: #fff;
            position: absolute;
            margin-top: 13px;
        }

        .option-box {
            padding-left: 40px;

            img {
                display: inline-block;
                vertical-align: middle;
            }
        }

        .radio-option .iconfont {
            border-radius: 17px;
            overflow: hidden;
        }

        .on .iconfont {
            border-color: #444;
            background-color: #444;
        }
    }

    .user-mobile {
        line-height: 60px;
        padding: 10px 0;
        background: #fff;
        margin-bottom: 30px;
        padding-left: 30px;

        > input {
            width: calc(100% - 130px);
            height: 60px;
            line-height: 60px;
            margin-left: 20px;
            padding: 0 10px;
            border: 1px solid $borderColor;
            color: #444;
            box-sizing: border-box;
        }
    }

    .submit {
        padding: 0 20px;

        .submit-btn {
            width: 100%;
            height: 80px;
            background: #3e3e3e;
            color: #fff;
            border: 0;
            border-radius: 4px;
            margin-bottom: 20px;
            outline: none;
        }
    }

    .detail-wrap + .qs-err {
        display: none;
    }

    .qs-err {
        &:before {
            content: "";
            width: 300px;
            height: 190px;
            background: url("img/3party/qs-lose.jpg") no-repeat;
            display: block;
            margin: 120px auto 0;
            background-size: 100%;
        }

        .err-text {
            width: 56%;
            line-height: 1.5;
            color: #444;
            margin: 0 auto;
            padding-bottom: 50px;
            display: block;
            text-align: center;
        }

        a {
            width: 60%;
            height: 80px;
            line-height: 80px;
            margin: 0 auto;
            background: #3e3e3e;
            color: #fff;
            display: block;
            text-align: center;
            border-radius: 4px;
        }
    }

    .tip-dialog {
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 10;

        &:before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: -1;
        }

        .dg-wrap {
            width: 70%;
            background: #fff;
            border-radius: 6px;
            position: absolute;
            left: 15%;
            top: 50%;
            margin-top: -95px;
        }

        .dg-content {
            height: 140px;
            line-height: 140px;

            > p {
                width: 100%;
                line-height: 1.4;
                display: inline-block;
                text-align: center;
                vertical-align: middle;
            }
        }

        .dg-btns {
            border-top: 1px solid #efefef;

            > * {
                width: 50%;
                line-height: 60px;
                text-align: center;
                display: block;
                float: left;
                cursor: pointer;
                box-sizing: border-box;
            }
        }

        .continue-btn {
            border-left: 1px solid #efefef;
            box-sizing: border-box;
            color: #d90005;
        }
    }
}