/**
 * @Time 2019/10/25
 * @Author Wxy
 * @Description 考试模块 颜色混入修正页面
 * 此页面集成 颜色基础变量 + 未修正页面样式 + 已修正页面样式
 */
@import "../base/utils.scss";

@mixin setStyleAframeExercise($project) {
  .mta-exercise-control {

    .mta-head-area {
      display: flex;
      flex-direction: row;

      .head-area-item {
        flex-grow: 0.5
      }

      .text-a-r {
        text-align: right;
      }
    }

    .mta-mec-wrap {

      > div.mta-box {
        height: calc(100vh - 245px);
        overflow: auto;

        div.mta-scroll-box {
          display: flex;
          flex-direction: column;
          margin-right: 30px;

          //describe:IE样式-兼容性修改 author: TX date:2019-08-27
          .mta-test-attributes {
            display: block;
            flex-direction: column;
            height: 100%;

            .el-form {
              flex: 1;
            }

            .first-left-box {
              display: flex;
              justify-content: space-between;
              flex-direction: row;
              flex: 1;
              margin-top: 15px;

              .mta-two-left-box {
                margin-right: 20px;

                flex: 1;

                .mta-first-row {

                  .el-col {
                    display: flex;
                    justify-content: space-between;
                    flex-direction: row;

                    > div {
                      flex: 1;
                    }
                  }
                }

                .mta-two-row {
                  .el-col {
                    display: flex;
                    justify-content: space-between;
                    flex-direction: row;

                    > div {
                      flex: 1;

                      .el-select {
                        width: 100%;
                      }

                      .el-date-editor {
                        width: 100%;
                      }
                    }
                  }
                }
              }

              .two-right-box {
                display: flex;
                flex-direction: column;
                justify-content: flex-start;

                .el-button {
                  margin-top: 15px;
                }
              }
            }

          }

          .config-table-wrap {
            width: calc(100% - 0px);
            margin-left: 10px;
            margin-bottom: 20px;

            .mta-row-first {

              .el-col.first-row-col {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
              }
            }

            .mta-row-two {
              .el-pagination {
                margin-top: 10px;
              }
            }
          }

          .ksControl {
            margin: 30px 0;

            .el-col.first-row-col {

              display: flex;
              flex-direction: row;
              justify-content: space-between;
              padding-left: 40px;

              .el-switch {
                margin-top: 10px;
              }

              .time-control {
                display: flex;
                flex-direction: row;
                justify-content: flex-start;


                > span:first-child {
                  width: 100px;
                  line-height: 40px;
                }

                > span:last-child {
                  /*width: 180px;*/
                  margin-left: 10px;
                  line-height: 40px;

                  i {
                    font-size: 8px;
                    color: #CCC;
                  }
                }

                .el-input {
                  width: 80px;
                }
              }
            }

            .el-col.two-row-col {
              margin-top: 40px;
              display: flex;
              flex-direction: row;
              justify-content: flex-start;

              > div {
                margin-left: 40px;

                span {
                  margin-right: 10px;
                }
              }
            }
          }

          .results-release {
            margin: 20px 0;

            .first-row {
              margin-left: 40px;

              > span {
                margin-right: 10px;
              }

              .el-switch {
                margin-left: 20px;
              }
            }
          }

          .btn-area {
            text-align: center;
          }

          .mta-top {
            margin-top: 20px;
          }
        }
      }

      .mta-search-row {

        .el-col {
          display: flex;
          flex-direction: row;
          justify-content: space-between;

          .mta-serach-area {
            display: flex;
            flex-direction: row;
            justify-content: space-between;

            .mta-search-left {
              display: flex;
              justify-content: space-between;
              flex-direction: row;
              margin-right: 30px;

              > span {
                width: 70px;
                line-height: 30px;
                padding-right: 4px;
                color: #333;
              }
            }

            .el-input, .mta-select-input {
              width: 180px;
            }
          }
        }

        .mta-table-area {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          margin-top: 20px;

          .el-pagination {
            margin-top: 15px;
          }
        }
      }
      .examinetype-container{
        .response-tree-div{
          max-width: 100%;
          padding: 0;
        }
      }
    }

    .row-span.selectSpanlight {
      color: #2C3E50
    }

    .row-span {
      color: #CCC;
      cursor: pointer;
      @include setFontBase(-4);
    }

    .addshijuan,.addUserInfo {
      &-body {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        height: 492px;
        flex: 1;

        &-left {
          // min-width: 190px;
          border: 1px solid #CCC;
          border-radius: 8px;
          margin-right: 20px;
        }

        &-right {
          border: 1px solid #CCC;
          padding: 20px 30px;
          border-radius: 8px;
          overflow: auto;
          flex: 1;
          display: flex;
          flex-direction: column;
        }
      }
      .response-tree-div{
        padding: 15px 20px;
      }
    }

    .time-span{margin: 4px 10px}
    @media screen and (max-width: 1600px){
      //添加试卷
      .addshijuan,.addUserInfo {
        &-body {

          &-left {
            margin-right: 15px;
          }
          &-right {
            padding: 20px 20px;
          }
        }
      }
    }
    @media screen and (max-width: 1440px){
      //外框边距
      .mta-mec-wrap {

        > div.mta-box {
          height: calc(100vh - 235px);
        }
      }
      .mta-mec-wrap > div.mta-box div.mta-scroll-box .mta-test-attributes .first-left-box{margin-top: 10px;}
      //上传文件框大小
      .two-right-box{
        .uploadAlCloud .avatar-uploader-icon{
          width: 140px;
          height: 140px;
          line-height: 140px;
        }
        .uploadAlCloud .avatar{
          width: 140px; // 必须指定宽高
          height: 140px;
          line-height: 140px;
        }
        .uploadAlCloud .avatar-uploader .el-upload{
          width: 140px; // 必须指定宽高
          height: 140px;
          line-height: 140px;
        }
      }
      //行距
      .el-form-item {
        margin-bottom: 14px;
      }
      //提示文字
      .el-form-item__error{
        padding-top: 1px;
      }
      .first-row-col{
        >p{
          @include setFontBase(-4);
          margin: 10px 0;
        }
      }
      //添加试卷
      .addshijuan,.addUserInfo {
        &-body {
          height: 435px;
          .left-label{
            @include setFontBase(-7);
          }

          &-left {
            // min-width: 170px;
            margin-right: 10px;
          }

          &-right {
            padding: 15px;
          }
        }
        .response-tree-div{
          padding: 10px 15px;
        }
      }
      //至
      .time-span {
        margin: 2px 6px;
      }
    }
  }
  //练习页面
  .mta-exercise {
    .mta-e-wrap {
      position: relative;
      flex: 1;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
    }
  }

  /****** 添加课件 *****/
  .mta-kejian-add {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .top {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      height: 40px;
    }

    .main {
      width: 100%;
      height: calc(100vh - 300px);
      min-height: 470px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;

      .st-el-tabs {
        width: 100%;
      }

      .main-left {
        float: left;
        width: 47%;
        margin-right: 6%;
        background: #FFF;
        border-radius: 8px;

        .note-word {
          width: 20px;
          height: 20px;
          background-image: url("../../../assets/images/icons/note-word.svg");
          position: absolute;
          left: 110px;
          top: 10px;
          background-position: center;
          background-repeat: no-repeat;
        }
      }

      .main-right {
        float: left;
        width: 47%;
        background: #FFF;
        border-radius: 8px;

        .response-title {
          margin: 15px;
        }

        .content {
          margin-left: 15px;
          font-size: 14px;
          font-weight: normal;

          td {
            font-size: 14px;
            color: #666;
            letter-spacing: 0;
            margin-bottom: 10px;
            padding: 5px 0;
          }

          .circular {
            display: inline-block;
            height: 8px;
            width: 8px;
            border-radius: 50%;
            @include setThemeColorBase("background-color", 1);
            margin-right: 8px;
            margin-top: 5px;
            vertical-align: top;
          }

          .wj-span {
            width: 42px;
            display: inline-block;
            margin-right: 8px;
            font-size: 14px;
            color: #333;
          }

          .line-div {
            margin: 24px 0;
            height: 1px;
            background: #CCC;
          }
        }
      }
    }

    .btns {
      margin-top: 30px;
    }

    .el-tabs {
      height: 100%;

      .st-el-tabs {
        height: 100%;

        .st-el-tab-pane {
        }
      }
    }

    .el-tab-pane {
    }

    .el-tabs__content {
      overflow: inherit;
    }

    //input框
    .kejian-input {
      width: 76%;
    }

    .el-date-editor.el-input {
      width: 180px;
    }

    //按钮
    .dq-btn {
      margin-left: 10px;
    }

    .el-icon-plus {
      width: 16px;
      height: 16px;
      @include setThemeColorBase("color", 1);
      margin-left: 10px;
      margin-top: 12px;
    }

    .el-icon-plus:before {
      font-size: 16px;
    }

    .response-middle-btn {
      margin-right: 0;
      width: 120px;
    }

    .response-input {
      margin-right: 5px;
    }

    //文件上传
    .upload-item-box {
      .el-upload {
        display: flex;
      }

      .el-upload-list {
        float: left
      }

      .upload-status {
        display: none;
        margin-top: 6px;
      }
    }

    @media screen and (max-width: 1600px) {
      .main {
        .main-left {
          width: 48%;
          margin-right: 4%;
        }

        .main-right {
          width: 48%;
        }
      }
      //input框
      .kejian-input {
        width: 74%;
      }
      .el-date-editor.el-input {
        width: 170px;
      }
      .content {
        td {
          font-size: 13px;
        }
      }
    }
    @media screen and (max-width: 1440px) {
      .main {
        .main-left {
          width: 49%;
          margin-right: 2%;

          /*.note-word {
              margin-top: 10px;
              margin-left: 6px;
          }*/
        }

        .main-right {
          width: 49%;

          .content {
            font-size: 13px;

            td {
              font-size: 13px;
              padding: 2px 0;
            }
          }
        }

        .el-tabs__content {
          padding: 10px 15px;
        }
      }
      //input框
      .kejian-input {
        width: 70%;
      }
      .el-date-editor.el-input {
        width: 150px;
      }
      //读取按钮
      .dq-btn {
        padding: 10px 20px;
        font-size: 13px;
      }
      //+号
      .el-icon-plus {
        margin-left: 8px;
        margin-top: 10px;
      }
    }
    .el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active,.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{
      @include setThemeColorBase("color", 1);
    }
  }

  /****** 资源管理 *****/
  .mta-ziyuanku-add {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    .top {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      height: 40px;
    }

    .main {
      width: 100%;
      height: calc(100vh - 300px);
      min-height: 470px;
      padding: 30px 30px 15px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      background: #fff;
      box-sizing: border-box;
      border-radius: 8px;

      .st-el-tabs {
        width: 100%;
      }

      .main-left {
        float: left;
        width: 47%;
        margin-right: 6%;
        background: #FFF;
        border-radius: 8px;

        .note-word {
          width: 20px;
          height: 20px;
          background-image: url("../../../assets/images/icons/note-word.svg");
          position: absolute;
          left: 110px;
          top: 10px;
          background-position: center;
          background-repeat: no-repeat;
        }
      }

      .main-right {
        float: left;
        width: 47%;
        background: #FFF;
        border-radius: 8px;
        p{
          font-size: 14px;
          color: #666;
          letter-spacing: 0;
          margin-bottom: 10px;
          padding: 5px 0;
          line-height: 20px;
        }
        .circular {
          display: inline-block;
          height: 8px;
          width: 8px;
          border-radius: 50%;
          @include setThemeColorBase("background-color", 1);
          margin-right: 8px;
          margin-top: 5px;
          vertical-align: top;
        }
      }
    }

    .btns {
      margin-top: 30px;
    }

    .el-tabs {
      height: 100%;

      .st-el-tabs {
        height: 100%;

        .st-el-tab-pane {
        }
      }
    }

    .el-tab-pane {
    }

    .el-tabs__content {
      overflow: inherit;
    }

    //input框
    .kejian-input {
      width: 76%;
    }

    .el-date-editor.el-input {
      width: 180px;
    }

    //按钮
    .dq-btn {
      margin-left: 10px;
    }

    .el-icon-plus {
      width: 16px;
      height: 16px;
      @include setThemeColorBase("color", 1);
      margin-left: 10px;
      margin-top: 12px;
    }

    .el-icon-plus:before {
      font-size: 16px;
    }

    .response-middle-btn {
      margin-right: 0;
      width: 120px;
    }

    .response-input {
      margin-right: 5px;
    }

    //文件上传
    .upload-item-box {
      .el-upload {
        display: flex;
      }

      .el-upload-list {
        float: left
      }

      .upload-status {
        display: none;
        margin-top: 6px;
      }
    }
    //文件名
    .el-upload-list__item-name{
      max-width:300px;
      margin-right: 40px;
    }
    @media screen and (max-width: 1600px) {
      .main {
        padding: 20px 20px 15px;
        .main-left {
          width: 48%;
          margin-right: 4%;
        }

        .main-right {
          width: 48%;
        }
      }
      //input框
      .kejian-input {
        width: 74%;
      }
      .el-date-editor.el-input {
        width: 170px;
      }
      .content {
        td {
          font-size: 13px;
        }
      }
    }
    @media screen and (max-width: 1440px) {
      .main {
        padding: 15px;
        .main-left {
          width: 62%;
          margin-right: 2%;

          /*.note-word {
              margin-top: 10px;
              margin-left: 6px;
          }*/
        }

        .main-right {
          width: 36%;

          .content {
            font-size: 13px;

            td {
              font-size: 13px;
              padding: 2px 0;
            }
          }
        }

        .el-tabs__content {
          padding: 10px 15px;
        }
      }
      //label
      .el-form-item__label{
        line-height: 36px;
      }
      //input框
      .kejian-input {
        width: 70%;

        .el-input {
          font-size: 13px;
        }

        .el-input__inner {
          height: 36px;
          line-height: 36px;
          font-size: 13px;
        }

        .el-input {
          //图标
          .el-range-separator, .el-range__icon, .el-date-editor .el-range__close-icon, .el-input__icon, .el-select__caret {
            line-height: 28px;
          }

          .el-input__clear {
            margin-top: 2px
          }
        }
      }
      .el-date-editor.el-input {
        width: 150px;
      }
      //读取按钮
      .dq-btn {
        padding: 10px 20px;
        font-size: 13px;
      }
      //+号
      .el-icon-plus {
        margin-left: 8px;
        margin-top: 10px;
      }
    }
  }

  /****** 发布课程 *****/
  .my-collapse {
    &.father {
      border-radius: 8px;
      overflow: hidden;
      border: 1px solid #CCC;
    }

    .my-collapse-item {
      .my-collapse-input {
        margin-left: 20px;
        color: #303133;
      }

      .el-collapse-item__header {
        padding: 0 10px;
      }

      &.collapse-zhang {
        margin: 0;

        .el-collapse-item__header {
          @include setThemeColorBase("background", -4);
        }
      }

      &.collapse-jie {
        margin: 0 30px;

        .el-collapse-item__header {
          background: #FFF!important;
        }
      }
    }

    .my-collapse-title {
      margin-left: 10px;
      font-size: 14px;
      color: #303133;
    }

    .kj-btn-add {
      .el-button {
        font-size: 14px;
        cursor: pointer;
        @include setThemeColorBase("color", 0);
      }

      .el-button:hover, .el-button:active, .el-button:focus {
        @include setThemeColorBase("color", 0);
      }

      &.father {
        padding: 0 10px;
        @include setThemeColorBase("background-color", -4);
      }

      &.child {
        padding: 0 46px;
        background: #FFF;
      }
    }

    .box {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-content: center;

      .box-content {
        flex: 1;
      }

      .box-delete {
        margin: 4px 20px 0 0;

        i {
          font-size: 16px;
        }
      }
    }

    .el-collapse-item__header {
      height: 40px;
      line-height: 40px;
    }

    .el-collapse {
      border-bottom: 0;
    }
  }
}
