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.

177 lines
3.9 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  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. }
  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.5em;
  116. padding-top: 0.5em;
  117. padding-bottom: 1em;
  118. }
  119. .ui.comments .comment .comments:before {
  120. position: absolute;
  121. top: 0px;
  122. left: 0px;
  123. }
  124. /* One Deep */
  125. .ui.comments > .comment .comments {
  126. margin-left: 2em;
  127. }
  128. /* Two Deep */
  129. .ui.comments > .comment > .comments > .comment > .comments {
  130. margin-left: 1.75em;
  131. }
  132. /* Three Deep */
  133. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments {
  134. margin-left: 1.5em;
  135. }
  136. /* Four Deep or more */
  137. .ui.comments > .comment > .comments > .comment > .comments > .comment > .comments > .comment .comments {
  138. margin-left: 0.5em;
  139. }
  140. /*******************************
  141. Variations
  142. *******************************/
  143. /*--------------------
  144. Threaded
  145. ---------------------*/
  146. .ui.threaded.comments .comment .comments {
  147. margin-left: 2em !important;
  148. padding-left: 2em !important;
  149. -webkit-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  150. -moz-box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  151. box-shadow: -1px 0px 0px rgba(0, 0, 0, 0.05);
  152. }
  153. /*--------------------
  154. Minimal
  155. ---------------------*/
  156. .ui.minimal.comments .comment .actions {
  157. opacity: 0;
  158. -webkit-transition: opacity 0.1s ease-out;
  159. -moz-transition: opacity 0.1s ease-out;
  160. -o-transition: opacity 0.1s ease-out;
  161. -ms-transition: opacity 0.1s ease-out;
  162. transition: opacity 0.1s ease-out;
  163. -webkit-transition-delay: 0.1s;
  164. -moz-transition-delay: 0.1s;
  165. -o-transition-delay: 0.1s;
  166. -ms-transition-delay: 0.1s;
  167. transition-delay: 0.1s;
  168. }
  169. .ui.minimal.comments .comment > .content:hover > .actions {
  170. opacity: 1;
  171. }
  172. /*--------------------
  173. Sizes
  174. ---------------------*/
  175. .ui.small.comments {
  176. font-size: 0.875em;
  177. }