通用评论

index.css 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. .comment-item-box {
  2. margin: 10px 0 0 0;
  3. padding: 15px 5px 0 5px;
  4. border-top: 1px solid #eee;
  5. }
  6. .comment-item-left {
  7. display: inline-block;
  8. vertical-align: top;
  9. width: 40px;
  10. }
  11. .comment-item-right {
  12. display: inline-block;
  13. width: 90%;
  14. margin-left: 20px;
  15. margin-bottom: 20px;
  16. }
  17. .comment-item-avatar {
  18. width: 40px;
  19. height: 40px;
  20. border-radius: 20px;
  21. background-position: center;
  22. background-size: cover;
  23. cursor: pointer;
  24. }
  25. .comment-item-name {
  26. font-size: 16px;
  27. }
  28. .comment-item-content {
  29. margin: 10px 0;
  30. font-size: 16px;
  31. word-break: break-all;
  32. }
  33. .comment-item-speak {
  34. margin-top: 4px;
  35. }
  36. .comment-item-speak-message {
  37. font-size: 14px;
  38. color: #71c135;
  39. }
  40. .comment-item-speak-audio-wrapper {
  41. margin-top: 8px;
  42. width: 350px;
  43. height: 44px;
  44. }
  45. .comment-item-bottom {
  46. display: flex;
  47. justify-content: flex-end;
  48. margin: 20px auto;
  49. line-height: 18px;
  50. }
  51. .comment-item-bottom-left {
  52. float: left;
  53. user-select: none;
  54. }
  55. .comment-item-bottom-right {
  56. cursor: pointer;
  57. }
  58. .comment-item-divider {
  59. width: 2px;
  60. height: 24px;
  61. background: #c6c6c6;
  62. margin-top: -2px;
  63. }
  64. .comment-item-delete,
  65. .comment-item-edit,
  66. .comment-item-like,
  67. .comment-item-unlike {
  68. display: inline-block;
  69. background: url(../../assert/icon_delete.png);
  70. width: 18px;
  71. height: 18px;
  72. background-size: 100% 100%;
  73. cursor: pointer;
  74. }
  75. .comment-item-delete {
  76. margin-right: 18px;
  77. }
  78. .comment-item-edit {
  79. background: url(../../assert/icon_answer@2x.png);
  80. background-size: 100% 100%;
  81. margin-right: 18px;
  82. /* margin-left: 10px; */
  83. }
  84. .comment-item-like {
  85. background: url(../../assert/icon_like_fill.png);
  86. background-size: 100% 100%;
  87. margin-left: 15px;
  88. margin-right: 2px;
  89. }
  90. .comment-item-unlike {
  91. background: url(../../assert/icon_like_line.png);
  92. background-size: 100% 100%;
  93. margin-left: 15px;
  94. margin-right: 2px;
  95. }
  96. .comment-item-reply {
  97. margin-left: 20px;
  98. cursor: pointer;
  99. color: #3c9cfe;
  100. }
  101. .comment-item-bottom-left {
  102. color: #71c135;
  103. margin-right: 20px;
  104. }
  105. .comment-favor {
  106. font-size: 20px;
  107. }
  108. .comment-favored {
  109. color: #c00;
  110. }
  111. .comment-item-image {
  112. margin-left: -5px;
  113. width: 400px;
  114. max-width: 100%;
  115. }
  116. .comment-item-image .comment-item-image-wrapper {
  117. float: left;
  118. width: 25%;
  119. box-sizing: border-box;
  120. padding: 5px;
  121. }
  122. .comment-item-image .comment-item-image-wrapper .comment-img-thumbnail {
  123. background-position: center;
  124. background-size: cover;
  125. display: inline-block;
  126. width: 100%;
  127. height: 0;
  128. padding-bottom: 100%;
  129. border-radius: 5px;
  130. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/QPI84fxmD.undefined"),
  131. auto;
  132. }
  133. .comment-item-image .comment-item-image-wrapper .comment-img-divider {
  134. display: inline-block;
  135. width: 100%;
  136. height: 0;
  137. padding-bottom: 100%;
  138. border-radius: 5px;
  139. }
  140. .comment-item-image .comment-img {
  141. margin-right: 10px;
  142. }
  143. .avatar-hover-card-overlay {
  144. padding-top: 0;
  145. }
  146. .avatar-hover-card-overlay .ant-popover-inner-content {
  147. padding: 0;
  148. }
  149. .avatar-hover-card-overlay .ant-popover-arrow {
  150. display: none;
  151. }
  152. @media screen and (max-width: 616px) and (min-width: 449px) {
  153. .comment-item-right {
  154. display: inline-block;
  155. width: 85%;
  156. margin-left: 10px;
  157. }
  158. .comment-item-speak-audio-wrapper {
  159. width: 350px;
  160. }
  161. }
  162. @media screen and (max-width: 449px) and (min-width: 365px) {
  163. .comment-item-right {
  164. display: inline-block;
  165. width: 80%;
  166. margin-left: 10px;
  167. }
  168. .comment-item-speak-audio-wrapper {
  169. width: 266px;
  170. }
  171. }
  172. @media screen and (max-width: 365px) {
  173. .comment-item-right {
  174. display: inline-block;
  175. width: 75%;
  176. margin-left: 10px;
  177. }
  178. .comment-item-speak-audio-wrapper {
  179. width: 218px;
  180. }
  181. }
  182. @media (max-width: 575px) {
  183. .comment-item-avatar {
  184. width: 32px;
  185. height: 32px;
  186. border-radius: 16px;
  187. }
  188. .comment-item-name {
  189. font-size: 14px;
  190. }
  191. .comment-item-content {
  192. font-size: 14px;
  193. margin: 4px 0;
  194. }
  195. .comment-item-date {
  196. font-size: 12px;
  197. }
  198. }