通用评论

index.css 3.7KB

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