comments.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. .new-comment {
  2. position: relative;
  3. margin: 0 0 20px 38px;
  4. }
  5. .new-comment .member {
  6. opacity: 0.7;
  7. position: absolute;
  8. top: 1px;
  9. left: -38px;
  10. }
  11. .new-comment.is-open .member {
  12. opacity: 1;
  13. }
  14. .new-comment.is-open .helper {
  15. display: inline-block;
  16. }
  17. .new-comment.is-open textarea {
  18. min-height: 100px;
  19. color: #4d4d4d;
  20. cursor: auto;
  21. overflow: hidden;
  22. word-wrap: break-word;
  23. }
  24. .new-comment .too-long {
  25. margin-top: 8px;
  26. }
  27. .new-comment textarea {
  28. background-color: #fff;
  29. border: 0;
  30. box-shadow: 0 1px 2px rgba(0,0,0,0.23);
  31. height: 36px;
  32. margin: 4px 4px 6px 0;
  33. padding: 9px 11px;
  34. width: 100%;
  35. }
  36. .new-comment textarea:hover,
  37. .new-comment textarea:is-open {
  38. background-color: #fff;
  39. box-shadow: 0 1px 3px rgba(0,0,0,0.33);
  40. border: 0;
  41. cursor: pointer;
  42. }
  43. .new-comment textarea:is-open {
  44. cursor: auto;
  45. }
  46. .comment-item {
  47. background-color: #fff;
  48. border: 0;
  49. box-shadow: 0 1px 2px rgba(0,0,0,0.23);
  50. color: #8c8c8c;
  51. height: 36px;
  52. margin: 4px 4px 6px 0;
  53. width: 92%;
  54. }
  55. .comment-item:hover {
  56. background: #e0e0e0;
  57. }
  58. .comment-item.add-comment {
  59. display: flex;
  60. margin: 5px;
  61. }
  62. .comment-item.add-comment a {
  63. display: block;
  64. margin: auto;
  65. }
  66. .comments {
  67. clear: both;
  68. }
  69. .comments .comment {
  70. margin: 0.5px 0;
  71. padding: 6px 0;
  72. display: flex;
  73. }
  74. .comments .comment .member {
  75. width: 32px;
  76. height: 32px;
  77. }
  78. .comments .comment .comment-member {
  79. font-weight: 700;
  80. }
  81. .comments .comment .comment-desc {
  82. word-wrap: break-word;
  83. overflow: hidden;
  84. flex: 1;
  85. align-self: center;
  86. margin: 0;
  87. margin-left: 3px;
  88. overflow: hidden;
  89. word-break: break-word;
  90. }
  91. .comments .comment .comment-desc .comment-text {
  92. display: block;
  93. border-radius: 3px;
  94. background: #fff;
  95. text-decoration: none;
  96. box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  97. margin-top: 5px;
  98. padding: 5px;
  99. }
  100. .comments .comment .comment-desc .reactions {
  101. display: flex;
  102. margin-top: 5px;
  103. gap: 5px;
  104. }
  105. .comments .comment .comment-desc .reactions .open-comment-reaction-popup {
  106. display: flex;
  107. align-items: center;
  108. text-decoration: none;
  109. height: 24px;
  110. }
  111. .comments .comment .comment-desc .reactions .open-comment-reaction-popup i.fa.fa-smile-o {
  112. font-size: 17px;
  113. font-weight: 500;
  114. margin-left: 2px;
  115. }
  116. .comments .comment .comment-desc .reactions .open-comment-reaction-popup i.fa.fa-plus {
  117. font-size: 8px;
  118. margin-top: -7px;
  119. margin-left: 1px;
  120. }
  121. .comments .comment .comment-desc .reactions .reaction {
  122. cursor: pointer;
  123. border: 1px solid #808080;
  124. border-radius: 15px;
  125. display: flex;
  126. padding: 2px 5px;
  127. }
  128. .comments .comment .comment-desc .reactions .reaction.selected {
  129. background-color: #b0c4de;
  130. }
  131. .comments .comment .comment-desc .reactions .reaction:hover {
  132. background-color: #b0c4de;
  133. }
  134. .comments .comment .comment-desc .reactions .reaction .reaction-count {
  135. font-size: 12px;
  136. }
  137. .comments .comment .comment-desc .comment-meta {
  138. font-size: 0.8em;
  139. color: #999;
  140. }