@import "../vars";

.ivu-dropdown-transfer {
  max-height: 300px;
}

.survey-creator-wrapper {
  font-size: @survey-creator-font-size;

  .icon-clipboard {
    color: @survey-creator-wrapper-question-border;
  }

  .title {
    font-weight: 500;
    padding-left: 10px;
    font-size: 16px;
    color: #515a6e;
  }

  .ivu-form-item-label:after {
    content: "";
  }

  .hover-able {
    &:hover {
      color: @survey-creator-primary-color;
    }
  }

  .edit-option {
    .count {
      color: @survey-creator-primary-color;
    }

    .max-score {
      color: @survey-creator-primary-color;
    }
  }

  .survey-operate {
    padding-bottom: 15px;
    border-bottom: 1px solid #e8eaec;
  }

  .question-content {
    .survey-editor-wrapper {
      .ivu-card-body {
        padding: 0;
      }

      .no-data {
        margin-top: 10%;
        display: block;
        text-align: center;

        .empty-desc {
          font-size: 24px;
          color: #515a6e;
        }
      }

      .questions-wrapper {
        padding-bottom: 20px;

        .question-row-active {
          border-left: 2px solid @survey-creator-wrapper-question-border;
        }
      }

      .question-row {
        padding: 16px 14px;

        .question-type-desc {
          font-size: @survey-creator-font-size-small;
        }

        &:hover {
          cursor: move;
          background-color: @survey-creator-wrapper-background;
        }

        .question-title {
          padding: 16px 0;
          display: flex;
          align-items: center;

          .star {
            color: red;
          }

          .number {
            color: @survey-creator-primary-color;
          }

          .content {
            font-size: @survey-creator-font-size-large;
            font-weight: @survey-creator-font-weight-500;
          }

          .options-explain {
            color: @survey-creator-help-color;
            font-size: @survey-creator-font-size-small;
          }
        }

        &.sortable-chosen {
          cursor: copy;
        }

        .ivu-divider {
          .ivu-divider-inner-text {
            font-weight: 100;
          }
        }

        .question-row-move {
          margin-bottom: 20px;
        }

        .question-row-content {
          flex-grow: 1;

          .sub-question-title {
            padding: 16px 0;

            .number {
              color: @survey-creator-primary-color;
            }

            .content {
              font-size: @survey-creator-font-size;
              font-weight: @survey-creator-font-weight-500;
            }

            .max-score {
              color: @survey-creator-help-color;
              font-size: @survey-creator-font-size-small;
            }
          }

          .question {
            .sub-question-title {
              .sub-max-score {
                color: @survey-creator-help-color;
                font-size: @survey-creator-font-size-small;
              }
            }

            .question-choice {
              .choice-title {
                font-size: @survey-creator-font-size;
              }

              .choice-score {
                font-size: @survey-creator-font-size-small;
                color: rgba(0, 0, 0, 0.45);
              }

              .jump-desc {
                font-size: @survey-creator-font-size;
                color: #FF7800;
              }
            }

            .question-choice-horizontal {
              width: fit-content;
              margin-bottom: 8px;
            }

            .question-choice-vertical {
              width: 100%;
              height: 50px;
              line-height: 50px;
            }
          }
        }
      }
    }
  }


  .col-padding {
    padding: 10px;

    .evaluation-cards-default {
      width: 200px;
      height: 200px;

      .card-title {
        text-align: center;

        .icon {
          color: #e8eaec;
        }
      }

      .card-content {
        text-align: center;

        .ivu-tooltip {
          display: unset;
        }

        .ivu-tooltip-rel {
          display: unset;
        }

        .text {
          font-weight: 500;
          font-size: 18px;
          padding: 10px;
          white-space: nowrap; /*把文本强制显示在一行*/
          overflow: hidden; /*隐藏超出部分的文字*/
          text-overflow: ellipsis; /*超出显示省略号*/
        }
      }
    }

  }

  .save-card {
    border-top: 1px solid #e8eaec;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

}
