@import '../../style/themes/index';
@import '../../style/mixins/index';

@yee-comment-prefix-cls: ~'@{yee-prefix}-comment';

.@{yee-comment-prefix-cls} {
  position: relative;

  &-inner {
    display: flex;
    padding: @yee-comment-padding-base;
  }

  &-avatar {
    position: relative;
    flex-shrink: 0;
    margin-right: 12px;
    cursor: pointer;
    img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
  }

  &-content {
    position: relative;
    flex: 1 1 auto;
    min-width: 1px;
    font-size: @yee-comment-font-size-base;
    word-wrap: break-word;

    &-author {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      margin-bottom: 4px;
      font-size: @yee-comment-font-size-base;
      & > a,
      & > span {
        padding-right: 8px;
        font-size: @yee-comment-font-size-sm;
        line-height: 18px;
      }

      &-name {
        color: @yee-comment-author-name-color;
        font-size: @yee-comment-font-size-base;
        transition: color 0.3s;
        > * {
          color: @yee-comment-author-name-color;
          &:hover {
            color: @yee-comment-author-name-color;
          }
        }
      }

      &-time {
        color: @yee-comment-author-time-color;
        white-space: nowrap;
        cursor: auto;
      }
    }

    &-detail p {
      white-space: pre-wrap;
    }
  }

  &-actions {
    margin-top: 12px;
    padding-left: 0;
    > li {
      display: inline-block;
      color: @yee-comment-action-color;
      > span {
        padding-right: 10px;
        color: @yee-comment-action-color;
        font-size: @yee-comment-font-size-sm;
        cursor: pointer;
        transition: color 0.3s;
        user-select: none;
        &:hover {
          color: @yee-comment-action-hover-color;
        }
      }
    }
  }

  &-nested {
    margin-left: @yee-comment-nest-indent;
  }
}
