foot-print.scss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @import "../../../../themes/page.scss";
  2. @import "../../searc-list.scss";
  3. /* module/diet/pages/diet-info/diet-info.wxss */
  4. .footprint-scroll {
  5. background: #f7f7f7;
  6. padding: 0 0 40rpx 0;
  7. }
  8. .footprint-item {
  9. display: flex;
  10. align-items: flex-start;
  11. background: #fff;
  12. border-radius: 16rpx;
  13. margin: 10rpx 14rpx 0 24rpx;
  14. padding: 20rpx 0;
  15. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.03);
  16. gap: 20rpx;
  17. }
  18. .item-img-box {
  19. width: 120rpx;
  20. height: 120rpx;
  21. background: #f3f3f3;
  22. border-radius: 8rpx;
  23. display: flex;
  24. align-items: center;
  25. justify-content: center;
  26. flex-shrink: 0;
  27. margin-right: 10rpx;
  28. }
  29. .item-img {
  30. width: 100%;
  31. height: 100%;
  32. border-radius: 8rpx;
  33. object-fit: cover;
  34. }
  35. .item-content {
  36. flex: 1;
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: space-between;
  40. min-height: 120rpx;
  41. }
  42. .item-title {
  43. font-size: 30rpx;
  44. color: #222;
  45. font-weight: 500;
  46. line-height: 1.4;
  47. margin-bottom: 8rpx;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. display: -webkit-box;
  51. -webkit-line-clamp: 2; // 最多两行
  52. -webkit-box-orient: vertical;
  53. }
  54. .item-subtitle {
  55. font-size: 26rpx;
  56. color: #888;
  57. margin-bottom: 8rpx;
  58. overflow: hidden;
  59. text-overflow: ellipsis;
  60. white-space: nowrap;
  61. }
  62. .item-time {
  63. font-size: 24rpx;
  64. color: #bbb;
  65. margin-top: auto;
  66. }