comments.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 .emptycontent {
  11. margin-top: 0;
  12. }
  13. #commentsTabView .newCommentForm {
  14. position: relative;
  15. margin-bottom: 20px;
  16. }
  17. #commentsTabView .newCommentForm .message {
  18. width: calc(100% - 81px); /* 36 (left margin) + 30 (right padding) + 15 (right padding of surrounding box) */
  19. margin-left: 36px;
  20. padding-right: 30px;
  21. display: block;
  22. }
  23. #commentsTabView .newCommentForm .submit {
  24. position: absolute;
  25. bottom: 0px;
  26. right: 8px;
  27. width: 30px;
  28. margin: 0;
  29. padding: 7px 9px;
  30. background-color: transparent;
  31. border: none;
  32. opacity: .3;
  33. }
  34. #commentsTabView .newCommentForm .submit:hover,
  35. #commentsTabView .newCommentForm .submit:focus {
  36. opacity: 1;
  37. }
  38. #commentsTabView .newCommentForm .submitLoading {
  39. background-position: left;
  40. }
  41. #commentsTabView .newCommentForm .cancel {
  42. margin-right: 6px;
  43. }
  44. #commentsTabView .newCommentForm textarea {
  45. resize: none;
  46. }
  47. #commentsTabView .comment {
  48. position: relative;
  49. z-index: 1;
  50. margin-bottom: 30px;
  51. }
  52. #commentsTabView .comment .avatar {
  53. width: 32px;
  54. height: 32px;
  55. line-height: 32px;
  56. }
  57. #commentsTabView .comment .message .avatar {
  58. display: inline-block;
  59. }
  60. #activityTabView li.comment.collapsed .activitymessage,
  61. #commentsTabView .comment.collapsed .message {
  62. white-space: pre-wrap;
  63. }
  64. #activityTabView li.comment.collapsed .activitymessage,
  65. #commentsTabView .comment.collapsed .message {
  66. max-height: 70px;
  67. overflow: hidden;
  68. }
  69. #activityTabView li.comment .message-overlay,
  70. #commentsTabView .comment .message-overlay {
  71. display: none;
  72. }
  73. #activityTabView li.comment.collapsed .message-overlay,
  74. #commentsTabView .comment.collapsed .message-overlay {
  75. display: block;
  76. position: absolute;
  77. z-index: 2;
  78. height: 50px;
  79. pointer-events: none;
  80. left: 0;
  81. right: 0;
  82. bottom: 0;
  83. background: -moz-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  84. background: -webkit-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  85. background: -o-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  86. background: -ms-linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  87. background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
  88. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00FFFFFF', endColorstr='#FFFFFFFF');
  89. background-repeat: no-repeat;
  90. }
  91. #commentsTabView .authorRow>div {
  92. display: inline-block;
  93. vertical-align: middle;
  94. }
  95. #commentsTabView .comment .authorRow {
  96. position: relative;
  97. }
  98. #commentsTabView .comment .author,
  99. #commentsTabView .comment .date {
  100. opacity: .5;
  101. }
  102. #commentsTabView .comment .author {
  103. margin-left: 5px;
  104. }
  105. #commentsTabView .comment .date {
  106. position: absolute;
  107. right: 0;
  108. top: 5px;
  109. }
  110. #commentsTabView .comments li .message {
  111. padding-left: 40px;
  112. }
  113. #commentsTabView .comment .action {
  114. opacity: 0;
  115. vertical-align: middle;
  116. display: inline-block;
  117. }
  118. #commentsTabView .comment:hover .action {
  119. opacity: 0.3;
  120. }
  121. #commentsTabView .comment .action:hover {
  122. opacity: 1;
  123. }
  124. #commentsTabView .comment .action.delete {
  125. position: absolute;
  126. right: 0;
  127. }
  128. #commentsTabView .comment.disabled {
  129. opacity: 0.3;
  130. }
  131. #commentsTabView .comment.disabled .action {
  132. visibility: hidden;
  133. }
  134. #commentsTabView .message.error {
  135. color: #e9322d;
  136. border-color: #e9322d;
  137. -webkit-box-shadow: 0 0 6px #f8b9b7;
  138. -moz-box-shadow: 0 0 6px #f8b9b7;
  139. box-shadow: 0 0 6px #f8b9b7;
  140. }
  141. .app-files .action-comment {
  142. padding: 16px 14px;
  143. }