通用评论

index.css 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. margin: 20px auto;
  35. }
  36. .comment-item-bottom-left {
  37. float: left;
  38. user-select: none;
  39. }
  40. .comment-item-bottom-right {
  41. float: right;
  42. margin-left: 5px;
  43. cursor: pointer;
  44. }
  45. .comment-favor {
  46. font-size: 20px;
  47. }
  48. .comment-favored {
  49. color: #c00;
  50. }
  51. .comment-item-image {
  52. margin-left: -5px;
  53. width: 400px;
  54. max-width: 100%;
  55. }
  56. .comment-item-image .comment-item-image-wrapper {
  57. float: left;
  58. width: 25%;
  59. box-sizing: border-box;
  60. padding: 5px;
  61. }
  62. .comment-item-image .comment-item-image-wrapper .comment-img-thumbnail {
  63. background-position: center;
  64. background-size: cover;
  65. display: inline-block;
  66. width: 100%;
  67. height: 0;
  68. padding-bottom: 100%;
  69. border-radius: 5px;
  70. cursor: url("//links-comment.oss-cn-beijing.aliyuncs.com/comment/20180928/QPI84fxmD.undefined"),
  71. auto;
  72. }
  73. .comment-item-image .comment-item-image-wrapper .comment-img-divider {
  74. display: inline-block;
  75. width: 100%;
  76. height: 0;
  77. padding-bottom: 100%;
  78. border-radius: 5px;
  79. }
  80. .comment-item-image .comment-img {
  81. margin-right: 10px;
  82. }
  83. .avatar-hover-card-overlay {
  84. padding-top: 0;
  85. }
  86. .avatar-hover-card-overlay .ant-popover-inner-content {
  87. padding: 0;
  88. }
  89. .avatar-hover-card-overlay .ant-popover-arrow {
  90. display: none;
  91. }
  92. @media screen and (max-width: 616px) and (min-width: 449px) {
  93. .comment-item-right {
  94. display: inline-block;
  95. width: 85%;
  96. margin-left: 10px;
  97. }
  98. }
  99. @media screen and (max-width: 449px) and (min-width: 365px) {
  100. .comment-item-right {
  101. display: inline-block;
  102. width: 80%;
  103. margin-left: 10px;
  104. }
  105. }
  106. @media screen and (max-width: 365px) {
  107. .comment-item-right {
  108. display: inline-block;
  109. width: 75%;
  110. margin-left: 10px;
  111. }
  112. }
  113. @media (max-width: 575px) {
  114. .comment-item-avatar {
  115. width: 32px;
  116. height: 32px;
  117. border-radius: 16px;
  118. }
  119. .comment-item-name {
  120. font-size: 14px;
  121. }
  122. .comment-item-content {
  123. font-size: 14px;
  124. margin: 4px 0;
  125. }
  126. .comment-item-date {
  127. font-size: 12px;
  128. }
  129. }