通用评论

index.css 2.3KB

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