// @import "../../../styles/learner/_common.scss";
@import "projects/exam/src/style/variables";
$radius: 5px;

:host ::ng-deep {
    .title{
        word-break: break-all;
        word-wrap: break-word;
    }
    .viewImgModal,.ant-modal,.ant-modal-content,.ant-modal-body,.ant-modal-body .back{
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        padding: 0;
    }
    
    .htmlInline{
        display: inline !important;
        &>p:first-child{
            display: inline;
        }
        img{
            max-width: 300px;
            max-height: 300px;
            cursor: pointer;
        }
    }
    .question-box {
        font-size: 14px;
        border: 1px solid $primary-color;
        padding: 50px 10px 10px;
        margin: 10px 15px 0;
        position: relative;
        min-height: 100px;
        background: #fff;
        &.active {
            border: 1px solid #f67920;
        }
        .question-body {
            a {
                display: block;
            }
        }
        .que-type {
            position: absolute;
            top: 10px;
            left: -10px;
            .type-cn-name {
                display: block;
                z-index: 2;
                position: relative;
                width: 80px;
                height: 30px;
                text-align: center;
                line-height: 30px;
                color: #fff;
                background: $primary-color;
            }
            i {
                position: absolute;
                width: 0;
                height: 0;
                border-width: 10px;
                border-style: solid;
                border-color: transparent $primary-color transparent transparent;
                left: -10px;
                top: 20px;
                z-index: 1;
            }
        }
        .box-one {
            position: relative;
            padding-right: 120px;
            padding-left: 20px;
            .title {
                padding-bottom: 10px;
            }
            .answer {
                margin-left: 20px;
                .ant-radio-wrapper,.checkbox-label{
                    white-space: normal;
                    word-break: break-all;
                    word-wrap: break-word;
                }
            }
            .sign {
                position: absolute;
                top: 0px;
                right: 10px;
                width: 100px;
                height: 30px;
                line-height: 30px;
                border: 1px solid $primary-color;
                border-radius: $radius;
                color: $primary-color;
                text-align: center;
                cursor: pointer;
                user-select: none;
                &.active {
                    color: #f67920;
                    border: 1px solid #f67920;
                }
            }
        }
        // .box-one-nopadding{
        //     padding-right: 0;
        // }
        .ant-input {
            resize: none;
        }
        /*单选题 判断*/
        .ans-radio,
        .ans-judge {
            .ant-radio-wrapper {
                display: block;
            }
        }
        /*多选题*/
        .ans-checkbox {
            .ant-checkbox-wrapper {
                display: block !important;
            }
        }
        /*填空题*/
        .ans-kong {
            .ant-input {
                margin-bottom: 10px;
            }
        }
        /*匹配题*/
        .ans-small {
            margin-left: 20px;
            display: flex;
            ul {
                flex: 1;
                li {
                    line-height: 30px;
                }
            }
        }
        .ans-match {
            .ans-only {
                margin-top: 5px;
            }
        }
        /*简答题*/
        .ans-short {}
        /*阅读理解*/
        .que-red {
            .special {
                padding: 10px 0;
                border: 1px dashed $primary-color;
                margin: 10px;
                &.active {
                    border: 1px dashed #f67920;
                }
                .title {
                    margin-left: 10px;
                    .childName {
                        color: $primary-color;
                        padding: 0 5px;
                    }
                }
            }
        }
    }
}
::ng-deep{
    .viewImgModal{
        text-align: center;
        z-index: 990;
        .ant-modal{
            top:0;
            .ant-modal-content{
                background: none;
            }
            .ant-modal-body{
                overflow: auto;
                position: fixed;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 100%;
                padding: 0;
                .modal-close{
                    position: fixed;
                    right: 20px;
                    top:20px;
                    color: #fff;
                    font-size: 30px;
                    cursor: pointer;
                }
                .back{
                    width: 100%;
                    height: 100%;
                    background: #000;
                    opacity: .5;
                }
                .showImgBox{
                    width: 100%;
                    height: 100%;
                    text-align: center;
                }
                .showImg{
                    position: absolute;
                    top: 0;
                    left: 0;
                    bottom: 0;
                    right: 0;
                    z-index: 2;
                    margin: auto;
                    max-width:90%;
                    max-height: 95%;
                    min-width:20px;
                    transition: transform .5s;
                }
                .rotateImg{
                    position: fixed;
                    left:0;
                    bottom: 0;
                    height: 40px;
                    width: 100%;
                    text-align: center;
                    font-size: 30px;
                    z-index: 3;
                    color:#fff;
                    // border-top: 1px dashed #d8d8d8;
                    i{
                        cursor: pointer;
                        margin-right: 5px;
                    }
                }
            }
        }
    }
}