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.

173 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.5em;
  27. padding-top: 0.5em;
  28. width: 100%;
  29. }
  30. .ui.comments .comment:first-child {
  31. margin-top: 0em;
  32. padding-top: 0em;
  33. }
  34. /*--------------------
  35. Avatar (Optional)
  36. ---------------------*/
  37. .ui.comments .comment .avatar {
  38. display: block;
  39. float: left;
  40. }
  41. .ui.comments .comment .avatar,
  42. .ui.comments .comment .avatar img {
  43. width: 3em;
  44. }
  45. .ui.comments .comment .avatar img {
  46. height: 3em;
  47. border-radius: 500px;
  48. }
  49. /*--------------
  50. Content
  51. ---------------*/
  52. .ui.comments .comment > .content,
  53. .ui.comments .comment > .avatar {
  54. display: block;
  55. }
  56. .ui.comments .comment .avatar ~ .content {
  57. padding: 0em 1em;
  58. }
  59. /* If there is an avatar move content over */
  60. .ui.comments .comment > .avatar ~ .content {
  61. margin-left: 3em;
  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: 0em 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.5em;
  98. width: 100%;
  99. max-width: 30em;
  100. }
  101. .ui.comments > .reply.form {
  102. margin-top: 1.5em;
  103. max-width: 40em;
  104. }
  105. .ui.comments .reply.form textarea {
  106. height: 12em;
  107. }
  108. /*--------------------
  109. Nested Comments
  110. ---------------------*/
  111. .ui.comments .comment .comments {
  112. margin-top: 0.25em;
  113. padding-top: 0.25em;
  114. }
  115. .ui.comments .comment .comments:before {
  116. position: absolute;
  117. top: 0px;
  118. left: 0px;
  119. }
  120. /* One Deep */
  121. .ui.comments > .comment .comments {
  122. margin-left: 2em;
  123. }
  124. /* Two Deep */
  125. .ui.comments > .comment > .comments > .comment > .comments {
  126. margin-left: 1.75em;
  127. }
  128. /* Three Deep */
  129. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments {
  130. margin-left: 1.5em;
  131. }
  132. /* Four Deep or more */
  133. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments > .comment .comments {
  134. margin-left: 0.5em;
  135. }
  136. /*******************************
  137. Variations
  138. *******************************/
  139. /*--------------------
  140. Threaded
  141. ---------------------*/
  142. .ui.threaded.comments .comment .comments {
  143. margin-left: 1.5em !important;
  144. padding-left: 1.5em !important;
  145. -webkit-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  146. -moz-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  147. box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  148. }
  149. /*--------------------
  150. Minimal
  151. ---------------------*/
  152. .ui.minimal.comments .comment .actions {
  153. opacity: 0;
  154. -webkit-transition: opacity 0.1s ease-out;
  155. -moz-transition: opacity 0.1s ease-out;
  156. -o-transition: opacity 0.1s ease-out;
  157. -ms-transition: opacity 0.1s ease-out;
  158. transition: opacity 0.1s ease-out;
  159. -webkit-transition-delay: 0.1s;
  160. -moz-transition-delay: 0.1s;
  161. -o-transition-delay: 0.1s;
  162. -ms-transition-delay: 0.1s;
  163. transition-delay: 0.1s;
  164. }
  165. .ui.minimal.comments .comment > .content:hover > .actions {
  166. opacity: 1;
  167. }
  168. /*--------------------
  169. Sizes
  170. ---------------------*/
  171. .ui.small.comments {
  172. font-size: 0.875em;
  173. }