通用评论

index.css 3.5KB

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