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

.am-list-body {
  border-radius: 6px 6px 0 0!important;
  .am-list-item {
    border-radius: 6px 6px 0 0!important;
    .am-list-extra {
      .text-style(PingFangSC-Regular, 14px, #9da1a3, 16px, right);
    }
  }
}

@listPrefixCls: bs-number-boards;

.text-style(@fontFamily, @fontSize, @color, @lineHeight, @textAlign) {
  font-size: @fontSize;
  color: @color;
  line-height: @lineHeight;
  text-align: @textAlign;
}

.@{listPrefixCls} {
  margin: 0 12px;
  .@{listPrefixCls}-wrapper {
    background: #fff;
    // margin-left: 12px;
    // margin-right: 12px;
    border-radius: 6px;
    .@{listPrefixCls}-title-wrapper {
      width: 100%;
      height: 44px;
      border-radius: 6px 6px 0 0;
      .@{listPrefixCls}-title-content {
        border-bottom: 1px solid rgba(216, 216, 216, 0.5);
        .@{listPrefixCls}-title-icon-wrapper {
          background-image: linear-gradient(90deg, #ff8100 0%, #fa0 100%);
          border-radius: 50%;
          width: 20px;
          height: 20px;
        }
      }
    }
    .@{listPrefixCls}-boards-list-wrapper {
      height: 76px;
      display: flex;
      -webkit-align-items: center;
      align-items: center;
      -webkit-justify-content: center;
      justify-content: center;
      .@{listPrefixCls}-boards-list-content-active {
        opacity: 0.7;
      }
      .@{listPrefixCls}-boards-list-content {
        position: relative;
        display: inline-block;
        flex: 1;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        .@{listPrefixCls}-boards-list-content-red-spot {
          position: absolute;
          display: block;
          width: 5px;
          height: 5px;
          background-color: red;
          right: 10px;
          border-radius: 50%;
        }
        .@{listPrefixCls}-boards-list-content-number {
          .text-style(PingFangSC-Medium, 24px, #3a4247, 28px, center);
        }
        .@{listPrefixCls}-boards-list-content-text {
          margin-top: 5%;
          .text-style(PingFangSC-Regular, 12px, #6b7175, 14px, center);
        }
        .@{listPrefixCls}-boards-list-content-number-unit {
          font-size: 12px;
          margin-left: 2px;
        }
        .@{listPrefixCls}-boards-list-divide-line {
          position: absolute;
          background: #e6e7e8;
          width: 1px;
          height: 52px;
        }
        .@{listPrefixCls}-boards-list-only-one {
          div {
            display: inline-block;
          }
          .@{listPrefixCls}-boards-list-content-number {
            position: relative;
            .text-style(PingFangSC-Regular, 24px, #3a4247, 28px, center)
          }
          .@{listPrefixCls}-boards-list-content-number-unit {
            font-size: 12px;
            margin-left: 2px;
          }
          .@{listPrefixCls}-boards-list-content-text {
            position: relative;
            top: -3px;
            margin-right: 10px;
            .text-style(PingFangSC-Regular, 14px, #6b7175, 16px, center)
          }
          .@{listPrefixCls}-boards-list-content-extra {
            margin-left: 28px;
            vertical-align: bottom;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 148px;
            span {
              .text-style(PingFangSC-Regular, 14px, #6b7175, 28px, center)
            }
          }
        }
      }
    }
  }
}
