説明なし

comments.scss 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /**
  2. * Comments Wrapper
  3. */
  4. .comments-area {
  5. > * {
  6. margin-top: var(--global--spacing-vertical);
  7. margin-bottom: var(--global--spacing-vertical);
  8. &:first-child {
  9. margin-top: 0;
  10. }
  11. &:last-child {
  12. margin-bottom: 0;
  13. }
  14. }
  15. &.show-avatars {
  16. .avatar {
  17. border-radius: 50%;
  18. position: absolute;
  19. top: 10px;
  20. }
  21. .fn {
  22. display: inline-block;
  23. padding-left: 85px;
  24. }
  25. .comment-metadata {
  26. padding: 8px 0 9px 85px;
  27. }
  28. }
  29. }
  30. /**
  31. * Comment Title
  32. */
  33. .comments-title,
  34. .comment-reply-title {
  35. font-size: var(--heading--font-size-h2);
  36. letter-spacing: var(--heading--letter-spacing-h2);
  37. }
  38. .comment-reply-title {
  39. display: flex;
  40. justify-content: space-between;
  41. small {
  42. a {
  43. font-family: var(--global--font-secondary);
  44. font-size: var(--global--font-size-xs);
  45. font-style: normal;
  46. font-weight: normal;
  47. letter-spacing: normal;
  48. }
  49. }
  50. }
  51. /* Nested comment reply title*/
  52. .comment .comment-respond .comment-reply-title {
  53. font-size: var(--global--font-size-lg);
  54. }
  55. /**
  56. * Comment Lists
  57. */
  58. .comment-list {
  59. padding-left: 0;
  60. list-style: none;
  61. > li {
  62. margin-top: var(--global--spacing-vertical);
  63. margin-bottom: var(--global--spacing-vertical);
  64. }
  65. }
  66. .comment-list .children {
  67. list-style: none;
  68. padding-left: 0;
  69. > li {
  70. margin-top: var(--global--spacing-vertical);
  71. margin-bottom: var(--global--spacing-vertical);
  72. }
  73. }
  74. .comment-list .depth-2,
  75. .comment-list .depth-3 {
  76. @include media(mobile) {
  77. padding-left: calc(4 * var(--global--spacing-horizontal));
  78. }
  79. }
  80. /**
  81. * Comment Meta
  82. */
  83. .comment-meta {
  84. .comment-author {
  85. line-height: var(--global--line-height-heading);
  86. margin-bottom: calc(0.25 * var(--global--spacing-unit));
  87. @include media(mobile) {
  88. margin-bottom: 0;
  89. padding-right: 0;
  90. }
  91. .fn {
  92. font-family: var(--global--font-secondary);
  93. font-weight: normal;
  94. font-size: var(--global--font-size-lg);
  95. hyphens: auto;
  96. word-wrap: break-word;
  97. word-break: break-word;
  98. }
  99. }
  100. .comment-metadata {
  101. color: var(--global--color-primary);
  102. font-size: var(--global--font-size-xs);
  103. padding: 8px 0 9px 0;
  104. .edit-link {
  105. margin-left: var(--global--spacing-horizontal);
  106. }
  107. }
  108. @include media(mobile) {
  109. margin-right: inherit;
  110. .comment-author {
  111. max-width: inherit;
  112. }
  113. }
  114. }
  115. .reply {
  116. font-size: var(--global--font-size-sm);
  117. line-height: var(--global--line-height-heading);
  118. }
  119. .bypostauthor {
  120. display: block;
  121. }
  122. .says {
  123. display: none;
  124. }
  125. .pingback .url,
  126. .trackback .url {
  127. font-family: var(--global--font-primary);
  128. }
  129. // Comment body
  130. .comment-body {
  131. position: relative;
  132. margin-bottom: calc(1.7 * var(--global--spacing-vertical));
  133. > * {
  134. margin-top: var(--global--spacing-vertical);
  135. margin-bottom: var(--global--spacing-vertical);
  136. }
  137. .reply {
  138. margin: 0;
  139. }
  140. }
  141. .comment-content {
  142. word-wrap: break-word;
  143. }
  144. // Pingbacks & Trackbacks
  145. .pingback .comment-body,
  146. .trackback .comment-body {
  147. margin-top: var(--global--spacing-vertical);
  148. margin-bottom: var(--global--spacing-vertical);
  149. }
  150. .comment-respond {
  151. margin-top: var(--global--spacing-vertical);
  152. }
  153. .comment-respond > * {
  154. margin-top: var(--global--spacing-unit);
  155. margin-bottom: var(--global--spacing-unit);
  156. &:first-child {
  157. margin-top: 0;
  158. }
  159. &:last-child {
  160. margin-bottom: 0;
  161. &.comment-form {
  162. margin-bottom: var(--global--spacing-vertical);
  163. }
  164. }
  165. }
  166. .comment-author {
  167. padding-top: 3px;
  168. .url {
  169. color: currentColor;
  170. }
  171. }
  172. .comment-form {
  173. display: flex;
  174. flex-wrap: wrap;
  175. > * {
  176. flex-basis: 100%;
  177. }
  178. .comment-notes {
  179. font-size: var(--global--font-size-sm);
  180. }
  181. .comment-form-url,
  182. .comment-form-comment {
  183. width: 100%;
  184. }
  185. .comment-form-author,
  186. .comment-form-email {
  187. flex-basis: 0;
  188. flex-grow: 1;
  189. @include media(mobile-only) {
  190. flex-basis: 100%;
  191. }
  192. }
  193. .comment-form-cookies-consent > label,
  194. .comment-notes {
  195. font-size: var(--global--font-size-xs);
  196. font-weight: normal;
  197. }
  198. }
  199. .comment-form > p {
  200. margin-bottom: var(--global--spacing-unit);
  201. &:first-of-type {
  202. margin-top: 0;
  203. }
  204. &:last-of-type {
  205. margin-bottom: 0;
  206. }
  207. label,
  208. input[type="email"],
  209. input[type="text"],
  210. input[type="url"],
  211. textarea {
  212. display: block;
  213. font-size: var(--global--font-size-sm);
  214. margin-bottom: calc(.5 * var(--global--spacing-unit));
  215. width: 100%;
  216. font-weight: var(--form--label-weight);
  217. }
  218. &.comment-form-cookies-consent {
  219. display: flex;
  220. }
  221. @include media(mobile) {
  222. &.comment-form-author {
  223. margin-right: calc(1.5 * var(--global--spacing-horizontal));
  224. }
  225. &.comment-notes,
  226. &.logged-in-as {
  227. display: block;
  228. }
  229. }
  230. }