@import '../../../assets/variable.less';
.module-user-group-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  &-head {
    display: flex;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
    &-title {
      color: @titleOneColor;
      font-weight: 500;
      font-size: 18px;
    }
    &.tag {
      .module-user-group-list-head-title {
        padding-top: @padding-lg;
        padding-left: @padding-xs;
      }
    }
    &.group {
      align-items: center;
      margin-bottom: @margin-sm;
      border-bottom: 1px solid @themeColorOpacity6;
      .module-user-group-list-head-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        color: #ffffff;
        border-radius: @border-radius-small;
      }
    }
  }
  &-ul {
    flex: 1;
    overflow-y: auto;
    .module-user-group-list-li {
      height: 40px;
      margin-bottom: 4px;
      cursor: pointer;
      .module-user-group-name {
        display: inline-block;
        min-width: 0;
        max-width: 244px;
        margin: 8px 19px 0 16px;
        padding: 2px 8px;
        overflow: hidden;
        color: #fff;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-radius: @border-radius-small;
      }
    }
    &.tag {
      padding: 0 16px;
      .module-user-group-list-li {
        padding: 0 7px;
        overflow: hidden;
        color: @titleOneColor;
        line-height: 40px;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-radius: 10px;
        &:hover {
          color: @primary-color;
          background-color: @themeColorOpacity6;
        }
        &.current {
          color: #fff;
          background: @primary-color;
        }
      }
    }
    &.group {
      .module-user-group-list-li {
        &.current {
          background-color: @Gray8;
        }
      }
    }
  }
}
