通用评论

index.css 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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-favor {
  83. font-size: 20px;
  84. }
  85. .comment-favored {
  86. color: #c00;
  87. }
  88. .comment-item-image {
  89. margin-left: -5px;
  90. width: 400px;
  91. max-width: 100%;
  92. }
  93. .comment-item-image .comment-item-image-wrapper {
  94. float: left;
  95. width: 25%;
  96. box-sizing: border-box;
  97. padding: 5px;
  98. }
  99. .comment-item-image .comment-item-image-wrapper .comment-img-thumbnail {
  100. background-position: center;
  101. background-size: cover;
  102. display: inline-block;
  103. width: 100%;
  104. height: 0;
  105. padding-bottom: 100%;
  106. border-radius: 5px;
  107. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/QPI84fxmD.undefined"),
  108. auto;
  109. }
  110. .comment-item-image .comment-item-image-wrapper .comment-img-divider {
  111. display: inline-block;
  112. width: 100%;
  113. height: 0;
  114. padding-bottom: 100%;
  115. border-radius: 5px;
  116. }
  117. .comment-item-image .comment-img {
  118. margin-right: 10px;
  119. }
  120. .avatar-hover-card-overlay {
  121. padding-top: 0;
  122. }
  123. .avatar-hover-card-overlay .ant-popover-inner-content {
  124. padding: 0;
  125. }
  126. .avatar-hover-card-overlay .ant-popover-arrow {
  127. display: none;
  128. }
  129. @media screen and (max-width: 616px) and (min-width: 449px) {
  130. .comment-item-right {
  131. display: inline-block;
  132. width: 85%;
  133. margin-left: 10px;
  134. }
  135. }
  136. @media screen and (max-width: 449px) and (min-width: 365px) {
  137. .comment-item-right {
  138. display: inline-block;
  139. width: 80%;
  140. margin-left: 10px;
  141. }
  142. }
  143. @media screen and (max-width: 365px) {
  144. .comment-item-right {
  145. display: inline-block;
  146. width: 75%;
  147. margin-left: 10px;
  148. }
  149. }
  150. @media (max-width: 575px) {
  151. .comment-item-avatar {
  152. width: 32px;
  153. height: 32px;
  154. border-radius: 16px;
  155. }
  156. .comment-item-name {
  157. font-size: 14px;
  158. }
  159. .comment-item-content {
  160. font-size: 14px;
  161. margin: 4px 0;
  162. }
  163. .comment-item-date {
  164. font-size: 12px;
  165. }
  166. }