You are here

comment.css in Open Social 8.8

a[id^="comment-"] {
  display: block;
  position: relative;
  top: -70px;
  visibility: hidden;
}

.comment {
  position: relative;
  margin-top: 1em;
  line-height: 1.2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
}

.comment:first-child {
  margin-top: 0;
}

.comment .form-actions .btn {
  margin-bottom: 0;
}

.comment__avatar {
  margin-right: 8px;
  width: 38px;
  height: 38px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.comment__content {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  overflow-x: auto;
}

.comment__author {
  color: #000000;
  padding-right: 30px;
}

.comment__metadata {
  display: inline-block;
  font-size: 0.75rem;
  color: #777777;
}

.comment__metadata > * {
  display: inline-block;
  margin-right: 0.5em;
}

.comment__text {
  margin: .25em 0 .5em;
  line-height: 1.3;
}

.comment__text p:last-of-type {
  margin-bottom: 0;
}

.comment__text p,
.comment__text ul,
.comment__text ul li,
.comment__text a {
  word-break: break-word;
}

.comment__text .badge {
  margin: 0;
  line-height: 1;
  padding: 2px 0.6em;
}

.comments {
  margin-bottom: 0.5em;
  padding: 1em 0.5em 1em 1em;
}

.comments .comment:first-of-type {
  margin-top: 0;
}

.comments .comment__avatar {
  width: 34px;
}

.comments .comment__avatar img {
  width: 34px;
  height: 34px;
}

.comment__actions {
  position: absolute;
  top: -8px;
  right: 0;
}

.comment__reply-btn {
  background-color: transparent;
  border-color: transparent;
  padding: 0;
  font-size: 0.75rem;
  margin-right: 10px;
}

.comment__avatar {
  display: none;
}

.comment-form .form-managed-file {
  padding-right: 40px;
}

.comment-form textarea.form-control {
  height: 38px;
}

/*
* Fix styles if last of page textarea is focused on mobile
* Only for page with textareas.
 */

.comment-attachments {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 100%;
          flex: 1 0 100%;
}

.comment-attachments .btn {
  margin-left: 0;
}

.comment-attachments:not([open]) > *:not(summary) {
  display: none;
}

.comment-attachments > summary:before {
  content: '';
  display: none;
}

.comment-attachments .btn-link {
  padding-left: 0;
  padding-right: 0;
}

.comment-attachments .btn-link svg {
  outline: none;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  vertical-align: bottom;
}

/* Hide the default marker. */
summary::-webkit-details-marker {
  display: none;
}

summary::-moz-list-bullet {
  list-style-type: none;
}

details .details__close-icon,
details[open] .details__open-icon {
  display: none;
}

details .details__open-icon,
details[open] .details__close-icon {
  display: inline-block;
}

.comment-unpublished img {
  opacity: 0.5;
}

.comment-unpublished .badge-default {
  background-color: #777777;
  color: white;
}

.comment-unpublished * {
  color: #9b9b9b;
}

/* Photoswipe gallery displayed in comments. */
.comment .photoswipe-gallery-custom {
  margin-top: .5rem;
}
@media (min-width: 600px) {
  .comment__avatar {
    margin-right: 12px;
  }
  .comment__avatar {
    display: block;
  }
  .comment-form .btn-icon {
    display: none;
  }
}
@media (min-width: 900px) {
  .comments {
    margin-left: 56px;
  }
}
@media (max-width: 599px) {
  .comment-form .btn--comment-submit {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 0;
  }
  .comment-form .btn--comment-submit .label {
    font-size: 0;
    text-indent: -9999px;
  }
  .main-container.open-keyboard {
    padding-bottom: 270px;
  }
}

File

themes/socialbase/assets/css/comment.css
View source
  1. a[id^="comment-"] {
  2. display: block;
  3. position: relative;
  4. top: -70px;
  5. visibility: hidden;
  6. }
  7. .comment {
  8. position: relative;
  9. margin-top: 1em;
  10. line-height: 1.2;
  11. display: -webkit-box;
  12. display: -ms-flexbox;
  13. display: flex;
  14. width: 100%;
  15. }
  16. .comment:first-child {
  17. margin-top: 0;
  18. }
  19. .comment .form-actions .btn {
  20. margin-bottom: 0;
  21. }
  22. .comment__avatar {
  23. margin-right: 8px;
  24. width: 38px;
  25. height: 38px;
  26. -ms-flex-negative: 0;
  27. flex-shrink: 0;
  28. }
  29. .comment__content {
  30. -webkit-box-flex: 1;
  31. -ms-flex: 1;
  32. flex: 1;
  33. overflow-x: auto;
  34. }
  35. .comment__author {
  36. color: #000000;
  37. padding-right: 30px;
  38. }
  39. .comment__metadata {
  40. display: inline-block;
  41. font-size: 0.75rem;
  42. color: #777777;
  43. }
  44. .comment__metadata > * {
  45. display: inline-block;
  46. margin-right: 0.5em;
  47. }
  48. .comment__text {
  49. margin: .25em 0 .5em;
  50. line-height: 1.3;
  51. }
  52. .comment__text p:last-of-type {
  53. margin-bottom: 0;
  54. }
  55. .comment__text p,
  56. .comment__text ul,
  57. .comment__text ul li,
  58. .comment__text a {
  59. word-break: break-word;
  60. }
  61. .comment__text .badge {
  62. margin: 0;
  63. line-height: 1;
  64. padding: 2px 0.6em;
  65. }
  66. .comments {
  67. margin-bottom: 0.5em;
  68. padding: 1em 0.5em 1em 1em;
  69. }
  70. .comments .comment:first-of-type {
  71. margin-top: 0;
  72. }
  73. .comments .comment__avatar {
  74. width: 34px;
  75. }
  76. .comments .comment__avatar img {
  77. width: 34px;
  78. height: 34px;
  79. }
  80. .comment__actions {
  81. position: absolute;
  82. top: -8px;
  83. right: 0;
  84. }
  85. .comment__reply-btn {
  86. background-color: transparent;
  87. border-color: transparent;
  88. padding: 0;
  89. font-size: 0.75rem;
  90. margin-right: 10px;
  91. }
  92. .comment__avatar {
  93. display: none;
  94. }
  95. .comment-form .form-managed-file {
  96. padding-right: 40px;
  97. }
  98. .comment-form textarea.form-control {
  99. height: 38px;
  100. }
  101. /*
  102. * Fix styles if last of page textarea is focused on mobile
  103. * Only for page with textareas.
  104. */
  105. .comment-attachments {
  106. -webkit-box-flex: 1;
  107. -ms-flex: 1 0 100%;
  108. flex: 1 0 100%;
  109. }
  110. .comment-attachments .btn {
  111. margin-left: 0;
  112. }
  113. .comment-attachments:not([open]) > *:not(summary) {
  114. display: none;
  115. }
  116. .comment-attachments > summary:before {
  117. content: '';
  118. display: none;
  119. }
  120. .comment-attachments .btn-link {
  121. padding-left: 0;
  122. padding-right: 0;
  123. }
  124. .comment-attachments .btn-link svg {
  125. outline: none;
  126. cursor: pointer;
  127. -webkit-user-select: none;
  128. -moz-user-select: none;
  129. -ms-user-select: none;
  130. user-select: none;
  131. vertical-align: bottom;
  132. }
  133. /* Hide the default marker. */
  134. summary::-webkit-details-marker {
  135. display: none;
  136. }
  137. summary::-moz-list-bullet {
  138. list-style-type: none;
  139. }
  140. details .details__close-icon,
  141. details[open] .details__open-icon {
  142. display: none;
  143. }
  144. details .details__open-icon,
  145. details[open] .details__close-icon {
  146. display: inline-block;
  147. }
  148. .comment-unpublished img {
  149. opacity: 0.5;
  150. }
  151. .comment-unpublished .badge-default {
  152. background-color: #777777;
  153. color: white;
  154. }
  155. .comment-unpublished * {
  156. color: #9b9b9b;
  157. }
  158. /* Photoswipe gallery displayed in comments. */
  159. .comment .photoswipe-gallery-custom {
  160. margin-top: .5rem;
  161. }
  162. @media (min-width: 600px) {
  163. .comment__avatar {
  164. margin-right: 12px;
  165. }
  166. .comment__avatar {
  167. display: block;
  168. }
  169. .comment-form .btn-icon {
  170. display: none;
  171. }
  172. }
  173. @media (min-width: 900px) {
  174. .comments {
  175. margin-left: 56px;
  176. }
  177. }
  178. @media (max-width: 599px) {
  179. .comment-form .btn--comment-submit {
  180. padding-left: 6px;
  181. padding-right: 6px;
  182. margin-bottom: 0;
  183. }
  184. .comment-form .btn--comment-submit .label {
  185. font-size: 0;
  186. text-indent: -9999px;
  187. }
  188. .main-container.open-keyboard {
  189. padding-bottom: 270px;
  190. }
  191. }