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.

253 lines
5.0 KiB

  1. /*
  2. * Copyright (c) 2016
  3. *
  4. * This file is licensed under the Affero General Public License version 3
  5. * or later.
  6. *
  7. * See the COPYING-README file.
  8. *
  9. */
  10. #commentsTabView .comments,
  11. #commentsTabView .emptycontent {
  12. flex-grow: 1;
  13. }
  14. #commentsTabView .emptycontent {
  15. margin-top: 0;
  16. }
  17. #commentsTabView .newCommentForm {
  18. position: relative;
  19. }
  20. #commentsTabView .newCommentForm .message {
  21. width: calc(100% - 32px);
  22. margin-left: 36px;
  23. padding-right: 30px;
  24. display: block;
  25. }
  26. #commentsTabView .newCommentForm .submit {
  27. position: absolute;
  28. bottom: -4px;
  29. right: -8px;
  30. margin: 0;
  31. padding: 13px 22px;;
  32. background-color: transparent;
  33. border: none;
  34. opacity: .3;
  35. }
  36. #commentsTabView .newCommentForm .submit:hover,
  37. #commentsTabView .newCommentForm .submit:focus {
  38. opacity: 1;
  39. }
  40. #commentsTabView .newCommentForm .submitLoading {
  41. background-position: left;
  42. /* Match rules for '#commentsTabView .newCommentForm .submit' to place the
  43. loading icon at the same position as the confirm icon */
  44. position: absolute;
  45. bottom: 0px;
  46. right: 8px;
  47. width: 30px;
  48. margin: 0;
  49. padding: 7px 9px;
  50. /* Match rules for 'input[type="submit"]' to place the loading icon at the
  51. same position as the confirm icon */
  52. min-height: 34px;
  53. box-sizing: border-box;
  54. }
  55. #commentsTabView .newCommentForm .cancel {
  56. margin-right: 6px;
  57. }
  58. #commentsTabView .newCommentForm div.message {
  59. resize: none;
  60. }
  61. #commentsTabView .newCommentForm div.message:empty:before {
  62. content: attr(data-placeholder);
  63. color: grey;
  64. }
  65. #commentsTabView .comment {
  66. position: relative;
  67. margin-bottom: 30px;
  68. word-wrap: break-word;
  69. overflow-wrap: break-word;
  70. }
  71. #commentsTabView.oldestOnTopLayout .comment {
  72. margin-top: 30px;
  73. margin-bottom: 0;
  74. }
  75. #commentsTabView.oldestOnTopLayout .comment:first-child {
  76. margin-top: 0;
  77. }
  78. #commentsTabView .comment .avatar,
  79. .atwho-view-ul * .avatar{
  80. width: 32px;
  81. height: 32px;
  82. line-height: 32px;
  83. }
  84. #commentsTabView .comment .message .avatar,
  85. .atwho-view-ul * .avatar
  86. {
  87. display: inline-block;
  88. }
  89. #activityTabView li.comment.collapsed .activitymessage,
  90. #commentsTabView .comment.collapsed .message {
  91. white-space: pre-wrap;
  92. }
  93. #activityTabView li.comment.collapsed .activitymessage,
  94. #commentsTabView .comment.collapsed .message {
  95. max-height: 70px;
  96. overflow: hidden;
  97. }
  98. #activityTabView li.comment .message-overlay,
  99. #commentsTabView .comment .message-overlay {
  100. display: none;
  101. }
  102. #activityTabView li.comment.collapsed .message-overlay,
  103. #commentsTabView .comment.collapsed .message-overlay {
  104. display: block;
  105. position: absolute;
  106. z-index: 2;
  107. height: 50px;
  108. pointer-events: none;
  109. left: 0;
  110. right: 0;
  111. bottom: 0;
  112. background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  113. background: -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  114. background: -o-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  115. background: -ms-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  116. background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  117. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00FFFFFF', endColorstr='#FFFFFFFF');
  118. background-repeat: no-repeat;
  119. }
  120. #commentsTabView .authorRow>div {
  121. display: inline-block;
  122. vertical-align: middle;
  123. }
  124. #commentsTabView .authorRow>div.hidden {
  125. display: none !important;
  126. }
  127. #commentsTabView .comments li .message .avatar-name-wrapper,
  128. .atwho-view-ul * .avatar-name-wrapper,
  129. #commentsTabView .comment .authorRow {
  130. position: relative;
  131. }
  132. .atwho-view-ul * .avatar-name-wrapper {
  133. white-space: nowrap;
  134. }
  135. #commentsTabView .comment .author,
  136. #commentsTabView .comment .date {
  137. opacity: .5;
  138. }
  139. #commentsTabView .comment .author {
  140. margin-left: 5px;
  141. }
  142. #commentsTabView .comment .date {
  143. position: absolute;
  144. right: 0;
  145. top: 5px;
  146. }
  147. #commentsTabView .comments li .message {
  148. padding-left: 40px;
  149. }
  150. #commentsTabView .comment .action {
  151. opacity: 0;
  152. vertical-align: middle;
  153. display: inline-block;
  154. }
  155. #commentsTabView .comment:hover .action {
  156. opacity: 0.3;
  157. }
  158. #commentsTabView .comment .action:hover {
  159. opacity: 1;
  160. }
  161. #commentsTabView .comment .action.delete {
  162. position: absolute;
  163. right: 0;
  164. }
  165. #commentsTabView .comment.disabled {
  166. opacity: 0.3;
  167. }
  168. #commentsTabView .comment.disabled .action {
  169. visibility: hidden;
  170. }
  171. #commentsTabView .message.error {
  172. color: #e9322d;
  173. border-color: #e9322d;
  174. box-shadow: 0 0 6px #f8b9b7;
  175. }
  176. .app-files .action-comment {
  177. padding: 16px 14px;
  178. }
  179. #commentsTabView .comment.grouped .authorRow {
  180. display: none;
  181. }
  182. #commentsTabView .comment.grouped {
  183. margin-top: -20px;
  184. }
  185. #commentsTabView.oldestOnTopLayout .comment.grouped {
  186. margin-top: 10px;
  187. }
  188. #commentsTabView .comment.showDate {
  189. margin-top: 40px;
  190. border-top: 1px solid #dbdbdb;
  191. padding-top: 10px;
  192. }
  193. #commentsTabView .comment.showDate:before {
  194. content: attr(data-date);
  195. position: absolute;
  196. top: 0;
  197. left: 50%;
  198. transform: translateX(-50%) translateY(-50%);
  199. padding: 0 7px 0 7px;
  200. text-align: center;
  201. color: #878787;
  202. background-color: #fff;
  203. }
  204. #commentsTabView .comment.showDate .authorRow {
  205. display: block;
  206. }
  207. #commentsTabView .comment .mention-user {
  208. font-weight: bold;
  209. }