@import "../mixin.less";

.account-section-container {
  > .form-label {
    min-height: 28px;

    > .normal-text {
      @apply first:mr-2 text-sm;
    }

    &.username-label {
      @apply w-full flex-wrap;

      > input {
        @apply grow-0 w-32 shadow-inner px-2 mr-2 text-sm border rounded leading-7 bg-transparent focus:border-black;
      }

      > .btns-container {
        @apply shrink-0 grow flex flex-row justify-start items-center;

        > .btn {
          @apply text-sm shadow px-2 leading-7 rounded border hover:opacity-80 bg-gray-50;

          &.cancel-btn {
            @apply shadow-none border-none bg-transparent;
          }

          &.confirm-btn {
            @apply bg-green-600 border-green-600 text-white;
          }
        }
      }
    }

    &.password-label {
      > .btn {
        @apply text-blue-600 text-sm ml-1 cursor-pointer hover:opacity-80;
      }
    }
  }
}

.openapi-section-container {
  > .value-text {
    @apply w-full font-mono text-sm shadow-inner border py-2 px-3 rounded leading-6 break-all whitespace-pre-wrap;
  }

  > .reset-btn {
    @apply mt-2 py-1 px-2 text-sm shadow bg-red-50 border border-red-500 text-red-600 rounded cursor-pointer select-none hover:opacity-80;
  }

  > .usage-guide-container {
    .flex(column, flex-start, flex-start);
    @apply mt-2 w-full;

    > .title-text {
      @apply my-2 text-sm;
    }

    > pre {
      @apply w-full bg-gray-100 shadow-inner py-2 px-3 text-sm rounded font-mono break-all whitespace-pre-wrap;
    }
  }
}
