通用评论

index.css 2.1KB

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