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
  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. 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. width: 4em;
  41. }
  42. .ui.comments .comment .avatar img {
  43. display: block;
  44. margin: 0em auto;
  45. width: 3em;
  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. padding-top: 0.25em;
  62. margin-left: 3.5em;
  63. }
  64. .ui.comments .comment .metadata {
  65. display: inline-block;
  66. margin-left: 0.3em;
  67. color: rgba(0, 0, 0, 0.4);
  68. }
  69. .ui.comments .comment .metadata > * {
  70. display: inline-block;
  71. margin: 0em 0.3em 0em 0em;
  72. }
  73. /*--------------------
  74. Comment Text
  75. ---------------------*/
  76. .ui.comments .comment .text {
  77. margin: 0em 0em 0.5em;
  78. }
  79. /*--------------------
  80. User Actions
  81. ---------------------*/
  82. .ui.comments .comment .actions {
  83. font-size: 0.9em;
  84. }
  85. .ui.comments .comment .actions a {
  86. display: inline-block;
  87. margin: 0em 0.3em 0em 0em;
  88. color: rgba(0, 0, 0, 0.3);
  89. }
  90. .ui.comments .comment .actions a.active,
  91. .ui.comments .comment .actions a:hover {
  92. color: rgba(0, 0, 0, 0.6);
  93. }
  94. /*--------------------
  95. Reply Form
  96. ---------------------*/
  97. .ui.comments .reply.form {
  98. margin-top: 0.75em;
  99. width: 100%;
  100. max-width: 30em;
  101. }
  102. .ui.comments .comment .reply.form {
  103. margin-left: 2em;
  104. }
  105. .ui.comments > .reply.form {
  106. margin-top: 1.5em;
  107. max-width: 40em;
  108. }
  109. .ui.comments .reply.form textarea {
  110. height: 12em;
  111. }
  112. /*--------------------
  113. Nested Comments
  114. ---------------------*/
  115. .ui.comments .comment .comments {
  116. margin-top: 0.25em;
  117. padding-top: 0.25em;
  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. }