index.scss 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. .item-list-container {
  2. display: flex;
  3. align-items: center;
  4. justify-content: flex-start;
  5. flex-direction: column;
  6. .list-item {
  7. width: 100%;
  8. display: flex;
  9. align-items: center;
  10. justify-content: flex-start;
  11. margin-top: 20rpx;
  12. .list-item-img{
  13. width: 240rpx;
  14. height: 160rpx;
  15. border-radius: 8rpx;
  16. }
  17. .list-item-right{
  18. margin-left: 20rpx;
  19. display: flex;
  20. flex-grow: 1;
  21. flex-direction: column;
  22. align-items: center;
  23. justify-content: space-around;
  24. height: 160rpx;
  25. >view{
  26. width: 100%;
  27. text-align: left;
  28. }
  29. .item-title{
  30. height: 70rpx;
  31. line-height: 36rpx;
  32. box-sizing: border-box;
  33. font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
  34. font-weight: 650;
  35. color: #333333;
  36. display: -webkit-box;
  37. -webkit-line-clamp: 2; /* 控制显示的行数 */
  38. -webkit-box-orient: vertical;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. }
  42. .item-content{
  43. box-sizing: border-box;
  44. font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
  45. font-weight: 650;
  46. color: #aaaaaa;
  47. font-size: 28rpx;
  48. }
  49. }
  50. }
  51. }