comments-card.less 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .comments-card-item {
  2. padding-top: 32rpx;
  3. padding-bottom: 32rpx;
  4. display: flex;
  5. background-color: #fff;
  6. position: relative;
  7. &::after {
  8. content: '';
  9. position: absolute;
  10. bottom: 0rpx;
  11. width: 686rpx;
  12. height: 2rpx;
  13. background-color: #f5f5f5;
  14. }
  15. }
  16. .comments-card-item-userImg {
  17. display: flex;
  18. .userImg {
  19. width: 64rpx;
  20. height: 64rpx;
  21. border-radius: 50%;
  22. }
  23. }
  24. .comments-card-item-container {
  25. width: 100%;
  26. .comments-title {
  27. display: flex;
  28. align-items: center;
  29. position: relative;
  30. }
  31. .comments-card-reply {
  32. background-color: #f5f5f5;
  33. padding: 24rpx 16rpx;
  34. margin-top: 24rpx;
  35. .prefix {
  36. font-size: 26rpx;
  37. font-weight: bold;
  38. color: #666666;
  39. }
  40. .content {
  41. font-size: 26rpx;
  42. color: #666666;
  43. }
  44. }
  45. }
  46. .comments-card-item-container-name {
  47. display: flex;
  48. font-size: 28rpx;
  49. color: #333;
  50. font-weight: 600;
  51. align-items: center;
  52. .userName {
  53. margin-right: 12rpx;
  54. }
  55. }
  56. .comments-card-item-container-date {
  57. font-size: 22rpx;
  58. color: #999;
  59. margin-top: 4rpx;
  60. display: flex;
  61. }
  62. .comments-card-item-container-content {
  63. margin-top: 16rpx;
  64. position: relative;
  65. .content-text {
  66. font-size: 28rpx;
  67. white-space: normal;
  68. word-break: break-all;
  69. font-weight: normal;
  70. }
  71. .hide-text {
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. -webkit-line-clamp: 5;
  75. text-align: justify;
  76. display: -webkit-box;
  77. -webkit-box-orient: vertical;
  78. }
  79. .showMore {
  80. position: absolute;
  81. width: 112rpx;
  82. height: 36rpx;
  83. bottom: 0;
  84. right: 0;
  85. background: linear-gradient(
  86. to right,
  87. rgba(255, 255, 255, 0.2) 0,
  88. rgba(255, 255, 255, 0.45) 20%,
  89. rgba(255, 255, 255, 0.7) 25%,
  90. rgba(255, 255, 255, 0.9) 30%,
  91. rgba(255, 255, 255, 0.95) 35%,
  92. #ffffff 50%,
  93. #fff 100%
  94. );
  95. font-size: 26rpx;
  96. color: #fa550f;
  97. line-height: 36rpx;
  98. text-align: right;
  99. }
  100. }
  101. .comments-card-item-container-image {
  102. margin-top: 24rpx;
  103. display: flex;
  104. justify-content: space-between;
  105. flex-wrap: wrap;
  106. .commentImg {
  107. border-radius: 8rpx;
  108. margin-top: 12rpx;
  109. }
  110. .commentImg3 {
  111. width: 196rpx;
  112. height: 196rpx;
  113. }
  114. .commentImg2 {
  115. width: 300rpx;
  116. height: 300rpx;
  117. }
  118. .commentImg1 {
  119. width: 404rpx;
  120. height: 404rpx;
  121. }
  122. }
  123. .comments-title {
  124. .userName {
  125. font-size: 26rpx;
  126. color: #333333;
  127. margin-left: 24rpx;
  128. }
  129. .commentTime {
  130. font-size: 24rpx;
  131. color: #999999;
  132. position: absolute;
  133. right: 0;
  134. }
  135. }
  136. .comments-info {
  137. display: flex;
  138. margin-top: 18rpx;
  139. .rate {
  140. margin-right: 24rpx;
  141. }
  142. .goods-info-text {
  143. font-size: 24rpx;
  144. color: #999999;
  145. }
  146. }