.yaml-content {
  position: relative;
  display: block !important;

  .header {
    display: flex;
    justify-content: space-between;
    height: 40px;
    padding-right: 12px;
    padding-left: 12px;
    color: #e8dfdf;
    line-height: 40px;
    background-color: #333;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;

    &.hasValidator {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }

    .operate {
      display: flex;
      align-items: center;
      height: 100%;
      cursor: pointer;

      button {
        margin-left: 8px;
      }

      &>span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        margin-left: 16px;
        color: #fff;

        &.copy {
          font-size: 16px;
          line-height: 16px;
        }

        &.fullscreen {
          font-size: 17px;
          line-height: 17px;
        }

        &.exitFullscreen {
          .anticon {
            display: block;
            font-size: 15px;
            line-height: 25px;
          }
        }

        &.download {
          font-size: 13px;
          line-height: 17px;
        }

        .hc-icon {
          font-size: inherit;
        }
      }
    }
  }

  .codeBox {
    height: calc(100% - 40px);
    background-color: #1e1e1e;

    .cm-editor {
      height: 100%;
    }

    &.edit {
      height: calc(70% - 40px);
    }

    &.view {
      height: calc(100% - 75px);
    }
  }

  .validator {
    height: 30%;
    overflow: hidden;

    .v-header {
      display: flex;
      justify-content: space-between;
      height: 36px;
      padding-left: 10px;
      color: #bfbfbf;
      line-height: 36px;
      background-color: #333;

      .operate {
        display: flex;

        p {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 86px;
          height: 36px;
          margin: 0;
          font-size: 14px;
          text-align: center;

          &.normal {
            color: white;
            background-color: var(--ant-color-primary, #1677ff);
            cursor: pointer;
          }

          &.disable {
            background-color: #595959;
            cursor: not-allowed;
            opacity: 0.5;
          }

          .hc-icon {
            margin-right: 4px;
            font-size: 18px;
          }
        }
      }
    }

    ul {
      height: calc(100% - 40px);
      margin: 0;
      padding: 5px 20px 0;
      overflow-y: auto;
      background: #272822;

      li {
        margin-top: 12px;
        list-style: none;

        pre {
          margin: 0;
        }
      }

      .msg-time {
        color: #fff;
      }
    }
  }

  .operate-bar {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: 36px;
    // padding-left: 10px;
    color: #bfbfbf;
    line-height: 36px;
    background-color: #333;

    p {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 36px;
      margin: 0;
      padding: 0 16px;
      font-size: 14px;
      text-align: center;

      &.normal {
        color: white;
        background-color: var(--ant-color-primary, #1677ff);
        cursor: pointer;
      }

      .hc-icon {
        margin-right: 4px;
        font-size: 18px;
      }
    }
  }
}