index.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. box-sizing: border-box;
  32. font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
  33. font-weight: 650;
  34. color: #333333;
  35. display: -webkit-box;
  36. -webkit-line-clamp: 2; /* 控制显示的行数 */
  37. -webkit-box-orient: vertical;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. }
  41. .item-content{
  42. box-sizing: border-box;
  43. font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
  44. font-weight: 650;
  45. color: #aaaaaa;
  46. font-size: 28rpx;
  47. }
  48. }
  49. }
  50. }