@import "projects/exam/src/style/variables";
:host ::ng-deep {
  .ant-radio-checked .ant-radio-inner,
  .ant-input:focus,
  .ant-input:hover,
  .ant-radio-checked .ant-radio-inner:hover,
  .ant-radio-checked .ant-radio-inner:after,
  .ant-radio-checked:after,
  .ant-radio-wrapper:hover .ant-radio .ant-radio-inner,
  .ant-radio:hover .ant-radio-inner,
  .ant-radio-focused .ant-radio-inner,
  .ant-select-open .ant-select-selection,
  .ant-select-selection:hover {
    border-color: $primary-color;
  }
  .ant-radio-inner:after {
    background-color: $primary-color;
  }
  .ans-kong {
    .answer {
      .ant-select-selection {
        // border-bottom: none;
        border-radius: 0;
      }
      .ant-input {
        border-radius: 0;
      }
      .qrcode-btnlist {
        margin-top: 5px;
      }
    }
  }
  .custom-checkbox {
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    display: inline-block;
    line-height: 1;
    position: relative;
    vertical-align: text-bottom;
    margin-bottom: 1px;
    input[type="checkbox"] {
      position: absolute;
      left: 0;
      z-index: 1;
      cursor: pointer;
      opacity: 0;
      filter: alpha(opacity=0);
      top: 0;
      bottom: 0;
      right: 0;
      width: 100%;
      height: 100%;
    }
    span {
      position: relative;
      top: 0;
      left: 0;
      display: block;
      width: 14px;
      height: 14px;
      border: 1px solid #d9d9d9;
      border-radius: 2px;
      background-color: #fff;
      transition: all 0.3s;
    }
    input[type="checkbox"]:checked + span {
      background-color: $primary-color;
      border-color: $primary-color;
      &::before {
        -webkit-transform: rotate(45deg) scale(1);
        transform: rotate(45deg) scale(1);
        position: absolute;
        left: 4px;
        top: 1px;
        display: table;
        width: 5px;
        height: 8px;
        border: 2px solid #fff;
        border-top: 0;
        border-left: 0;
        content: " ";
        transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
        z-index: 9;
      }
      &::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 2px;
        border: 1px solid $primary-color;
        content: "";
        -webkit-animation: antCheckboxEffect 0.36s ease-in-out;
        animation: antCheckboxEffect 0.36s ease-in-out;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        visibility: hidden;
      }
    }
  }
  .box-one {
    .selectType {
      position: absolute;
      top: 40px;
      right: 10px;
      width: 100px;
    }
    label {
      font-weight: normal;
    }
    .ant-radio-wrapper {
      font-size: 14px;
    }
    .checkbox-label {
      display: block;
      cursor: pointer;
    }
    .qrcode {
      display: flex;
    }
    .qrcode-btnlist {
      width: 90px;
      margin-right: 5px;
      // .viewImg{
      //     margin-top: 5px;
      // }
    }
    .img-list-box {
      flex-grow: 1;
      height: 150px;
      line-height: 140px;
      border: 1px solid $primary-color;
      padding: 5px;
      white-space: nowrap;
      overflow-y: hidden;
      overflow-x: auto;
      position: relative;
      &:before {
        content: "已上传列表";
        position: absolute;
        font-size: 12px;
        background: $primary-color;
        color: #fff;
        height: 20px;
        line-height: 20px;
        text-align: center;
        width: 80px;
        transform: scale(0.7);
        left: -14px;
        z-index: 2;
        top: -4px;
      }
      .noImgTip {
        width: 100%;
        height: 100%;
        line-height: 140px;
        text-align: center;
        font-size: 20px;
        color: #eee;
      }
      .img-box {
        margin: 0 5px;
        width: 135px;
        height: 135px;
        position: relative;
        background: #f9f6f6;
        display: inline-block;
        text-align: center;
        overflow: hidden;
        .removeImg {
          position: absolute;
          right: 0;
          top: 0;
          font-size: 20px;
          color: red;
          display: inline-block;
          width: 20px;
          height: 20px;
          line-height: 20px;
          text-align: center;
          cursor: pointer;
        }
        img {
          max-width: 100%;
          max-height: 100%;
          // vertical-align: inherit;
          vertical-align: middle;
        }
      }
    }
    .qrcode-mob {
      .img-list-box {
        margin-top: 10px;
      }
      .uploadLabel {
        background: $primary-color;
        color: #fff;
        padding: 3px 10px;
      }
    }
  }
  .box-one-nopadding {
    padding-right: 0 !important;
    .selectType {
      position: static !important;
      width: 100px;
      margin: 5px 0 5px 20px;
    }
  }
}
