index.less 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /* nova-shop/pages/shopping-cart/index.wxss */
  2. page {
  3. background: #f6f6f6;
  4. }
  5. .collect {
  6. .collect_info {
  7. width: 93%;
  8. background: #ffffff;
  9. border-radius: 12rpx;
  10. margin: 20rpx auto;
  11. display: flex;
  12. .left_info {
  13. width: 38%;
  14. display: flex;
  15. align-items: center;
  16. .image {
  17. width: 240rpx;
  18. height: 240rpx;
  19. border-radius: 16rpx;
  20. }
  21. }
  22. .right_info {
  23. width: 58%;
  24. .title {
  25. font-size: 28rpx;
  26. margin: 20rpx 0;
  27. font-weight: 700;
  28. overflow: hidden;
  29. display: -webkit-box;
  30. -webkit-box-orient: vertical;
  31. -webkit-line-clamp: 1;
  32. }
  33. .desc {
  34. font-size: 24rpx;
  35. margin-bottom: 20rpx;
  36. color: #c2c2c2;
  37. overflow: hidden;
  38. display: -webkit-box;
  39. -webkit-box-orient: vertical;
  40. -webkit-line-clamp: 2;
  41. }
  42. .down_info {
  43. padding: 16rpx 0;
  44. display: flex;
  45. align-items: center;
  46. justify-content: space-between;
  47. .price {
  48. font-size: 34rpx;
  49. color: #fd3030;
  50. font-weight: 700;
  51. }
  52. }
  53. }
  54. }
  55. .delete {
  56. background: #e42929;
  57. color: #fff;
  58. height: 100%;
  59. padding: 100rpx 34rpx;
  60. }
  61. .bottom {
  62. width: 100%;
  63. height: 100rpx;
  64. }
  65. .box {
  66. width: 93%;
  67. margin: 20rpx auto;
  68. background: #ffffff;
  69. display: flex;
  70. border-radius: 20rpx;
  71. position: relative;
  72. .image {
  73. width: 240rpx;
  74. height: 240rpx;
  75. margin-right: 20rpx;
  76. border-radius: 20rpx;
  77. }
  78. .right {
  79. width: 65%;
  80. .title {
  81. margin-top: 20rpx;
  82. overflow: hidden; //一定要写
  83. text-overflow: ellipsis; //超出省略号
  84. display: -webkit-box; //一定要写
  85. -webkit-line-clamp: 1; //控制行数
  86. -webkit-box-orient: vertical; //一定要写
  87. }
  88. .price {
  89. color: red;
  90. margin-top: 20rpx;
  91. }
  92. .time {
  93. color: #c1bcbc;
  94. margin-top: 10rpx;
  95. overflow: hidden; //一定要写
  96. text-overflow: ellipsis; //超出省略号
  97. display: -webkit-box; //一定要写
  98. -webkit-line-clamp: 2; //控制行数
  99. -webkit-box-orient: vertical; //一定要写
  100. }
  101. .lecturer {
  102. font-size: 28rpx;
  103. margin-top: 20rpx;
  104. }
  105. .collection {
  106. position: absolute;
  107. right: 30rpx;
  108. top: 160rpx;
  109. padding: 10rpx 20rpx;
  110. background: red;
  111. color: #ffffff;
  112. border-radius: 20rpx;
  113. }
  114. }
  115. }
  116. }