You are here

comment.css in Open Social 8.5

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;
}

.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 {
  word-break: break-word;
}

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

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