@import "../../styles/themes/variable.scss";

@font-face {
  font-family: "xh-iconfont"; /* Project id 4043926 */
  src:
    url('./font/iconfont.woff2?t=1687140360510') format('woff2'),
    url('./font/iconfont.woff?t=1687140360510') format('woff'),
    url('./font/iconfont.ttf?t=1687140360510') format('truetype');
}

#{$xh-prefix}-list {
  display: flex;
  padding: 24px 0;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  font-size: 32px;
  line-height: 1.2;
  width: 100%;
  &.condensed {
    padding: 6px 0;
  }
  &.outline:active {
    background-color: #f0f0f0;
  }
  &.padding {
    padding: 24px 30px;
  }
  &.border {
    border-bottom: 1px solid #eee;
  }
  &-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    img {
      max-width: 100%;
      max-height: 100%;
    }
    image {
      max-width: 100%;
      max-height: 100%;
    }
  }
  &-main {
    display: flex;
    flex: 1;
    justify-content: space-between;
    overflow: hidden;
    &.ellipsis {
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    color: inherit;
    font-size: inherit;
    line-height: 1.5;
    flex-direction: column;
    &-title {
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &-description {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  &-extra {
    display: flex;
    align-items: center;
    // max-width: 280px;
    &-info {
      display: inline-block;
      margin-right: 10px;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    &-icon {
      display: inline-block;
      &-arrow {
        display: block;
        font-family: 'xh-iconfont';
        -webkit-font-smoothing: antialiased;
        font-size: 20PX;
        color: #c8c8c8;
        &:before {
          content: "\e603";
        }
      }
    }
  }
}
