index.wxss 3.0 KB

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