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.

176 lines
3.9 KiB

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