You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
4.0 KiB

  1. /*
  2. * # Semantic Comment View
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. * Released: April 17 2013
  11. */
  12. /*******************************
  13. Standard
  14. *******************************/
  15. /*--------------
  16. Comments
  17. ---------------*/
  18. .ui.comments {
  19. }
  20. .ui.comments a {
  21. cursor: pointer;
  22. }
  23. /*--------------
  24. Comment
  25. ---------------*/
  26. .ui.comments .comment {
  27. position: relative;
  28. margin-top: 0.5em;
  29. padding-top: 0.5em;
  30. }
  31. .ui.comments .comment:first-child {
  32. margin-top: 0em;
  33. padding-top: 0em;
  34. }
  35. /*--------------------
  36. Avatar (Optional)
  37. ---------------------*/
  38. .ui.comments .comment .avatar {
  39. display: block;
  40. float: left;
  41. width: 4em;
  42. }
  43. .ui.comments .comment .avatar img {
  44. display: block;
  45. margin: 0em auto;
  46. width: 3em;
  47. height: 3em;
  48. border-radius: 500px;
  49. }
  50. /*--------------
  51. Content
  52. ---------------*/
  53. .ui.comments .comment > .content,
  54. .ui.comments .comment > .avatar {
  55. display: block;
  56. }
  57. .ui.comments .comment .avatar ~ .content {
  58. padding: 0em 1em;
  59. }
  60. /* If there is an avatar move content over */
  61. .ui.comments .comment > .avatar ~ .content {
  62. padding-top: 0.25em;
  63. margin-left: 3.5em;
  64. }
  65. .ui.comments .comment .metadata {
  66. display: inline-block;
  67. margin-left: 0.3em;
  68. color: rgba(0, 0, 0, 0.4);
  69. }
  70. .ui.comments .comment .metadata > * {
  71. display: inline-block;
  72. margin: 0em 0.3em 0em 0em;
  73. }
  74. /*--------------------
  75. Comment Text
  76. ---------------------*/
  77. .ui.comments .comment .text {
  78. margin: 0.25em 0em 0.5em;
  79. word-wrap: break-word;
  80. }
  81. /*--------------------
  82. User Actions
  83. ---------------------*/
  84. .ui.comments .comment .actions {
  85. font-size: 0.9em;
  86. }
  87. .ui.comments .comment .actions a {
  88. display: inline-block;
  89. margin: 0em 0.3em 0em 0em;
  90. color: rgba(0, 0, 0, 0.3);
  91. }
  92. .ui.comments .comment .actions a.active,
  93. .ui.comments .comment .actions a:hover {
  94. color: rgba(0, 0, 0, 0.6);
  95. }
  96. /*--------------------
  97. Reply Form
  98. ---------------------*/
  99. .ui.comments .reply.form {
  100. margin-top: 0.75em;
  101. width: 100%;
  102. max-width: 30em;
  103. }
  104. .ui.comments .comment .reply.form {
  105. margin-left: 2em;
  106. }
  107. .ui.comments > .reply.form {
  108. margin-top: 1.5em;
  109. max-width: 40em;
  110. }
  111. .ui.comments .reply.form textarea {
  112. height: 12em;
  113. }
  114. /*--------------------
  115. Nested Comments
  116. ---------------------*/
  117. .ui.comments .comment .comments {
  118. margin-top: 0.5em;
  119. padding-top: 0.5em;
  120. padding-bottom: 1em;
  121. }
  122. .ui.comments .comment .comments:before{
  123. position: absolute;
  124. top: 0px;
  125. left: 0px;
  126. }
  127. /* One Deep */
  128. .ui.comments > .comment .comments {
  129. margin-left: 2em;
  130. }
  131. /* Two Deep */
  132. .ui.comments > .comment > .comments > .comment > .comments {
  133. margin-left: 1.75em;
  134. }
  135. /* Three Deep */
  136. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments {
  137. margin-left: 1.5em;
  138. }
  139. /* Four Deep or more */
  140. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments > .comment .comments {
  141. margin-left: 0.5em;
  142. }
  143. /*******************************
  144. Variations
  145. *******************************/
  146. /*--------------------
  147. Threaded
  148. ---------------------*/
  149. .ui.threaded.comments .comment .comments {
  150. margin-left: 2em !important;
  151. padding-left: 2em !important;
  152. -webkit-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  153. -moz-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  154. box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  155. }
  156. /*--------------------
  157. Minimal
  158. ---------------------*/
  159. .ui.minimal.comments .comment .actions {
  160. opacity: 0;
  161. -webkit-transition: opacity 0.1s ease-out;
  162. -moz-transition: opacity 0.1s ease-out;
  163. -o-transition: opacity 0.1s ease-out;
  164. -ms-transition: opacity 0.1s ease-out;
  165. transition: opacity 0.1s ease-out;
  166. -webkit-transition-delay: 0.1s;
  167. -moz-transition-delay: 0.1s;
  168. -o-transition-delay: 0.1s;
  169. -ms-transition-delay: 0.1s;
  170. transition-delay: 0.1s;
  171. }
  172. .ui.minimal.comments .comment > .content:hover > .actions {
  173. opacity: 1;
  174. }
  175. /*--------------------
  176. Sizes
  177. ---------------------*/
  178. .ui.small.comments {
  179. font-size: 0.875em;
  180. }