_comments.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. .comment-content a {
  2. word-wrap: break-word;
  3. }
  4. .bypostauthor {
  5. display: block;
  6. }
  7. .comments-area {
  8. border-top: 1px solid $color__border-transparent;
  9. outline: none;
  10. padding: 0;
  11. position: relative;
  12. z-index: 4;
  13. #content .hentry + & {
  14. clear: both;
  15. }
  16. ol, ul {
  17. list-style: none;
  18. }
  19. &:focus {
  20. outline: none;
  21. }
  22. }
  23. .comments-title {
  24. @include widget-title();
  25. color: $color__link-hover;
  26. margin: 0;
  27. padding: ($baseline) ($gutter * .5);
  28. width: 100%;
  29. }
  30. .comment-reply-title {
  31. @include widget-title();
  32. color: $color__link-hover;
  33. margin: 0 0 ($baseline * .5);
  34. }
  35. .comment-list {
  36. margin: 0;
  37. }
  38. .no-comments {
  39. border-top: 1px solid $color__border-transparent;
  40. @include gutter-width(100%);
  41. padding-top: $baseline;
  42. }
  43. .comment-body {
  44. border-top: 1px solid $color__border-transparent;
  45. padding: ($baseline * 1.5) 0 ($baseline * 1.5) 0;
  46. position: relative;
  47. .comment-meta {
  48. align-items: center;
  49. display: flex;
  50. justify-content: space-between;
  51. padding: 0 ($gutter * .5);
  52. margin-bottom: $baseline;
  53. width: 100%;
  54. }
  55. .comment-content {
  56. padding: 0 ($gutter * .5) 0 ($gutter * .5);
  57. width: 100%;
  58. ul,
  59. ol {
  60. margin: 0 0 $baseline $gutter;
  61. padding: 0;
  62. }
  63. ul {
  64. list-style: disc;
  65. }
  66. ol {
  67. list-style: decimal;
  68. }
  69. li > ul,
  70. li > ol {
  71. margin-bottom: 0;
  72. margin-left: 1.5em;
  73. }
  74. }
  75. .reply {
  76. clear: both;
  77. padding: 0 ($gutter * .5);
  78. text-align: left;
  79. width: 100%;
  80. }
  81. .comment-metadata {
  82. @include body-copy-small();
  83. display: block;
  84. padding: 0 0 0 ($gutter * .5);
  85. text-align: right;
  86. a {
  87. color: $color__link-hover;
  88. }
  89. .edit-link {
  90. margin-left: $gutter;
  91. }
  92. }
  93. .avatar {
  94. @include rounded(50%);
  95. box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.25);
  96. display: inline-block;
  97. margin-right: ($gutter * .5);
  98. vertical-align: middle;
  99. }
  100. .fn {
  101. @include widget-title();
  102. color: $color__text-main;
  103. display: inline-block;
  104. vertical-align: middle;
  105. word-wrap: break-word;
  106. }
  107. .says {
  108. display: none;
  109. }
  110. }
  111. .pingback .comment-body,
  112. .trackback .comment-body {
  113. border-top: 1px solid $color__border-transparent;
  114. display: block;
  115. padding: ($baseline * 1.5) ($gutter * .5);
  116. .edit-link {
  117. float: right;
  118. }
  119. }
  120. #respond,
  121. .comment-respond {
  122. border-top: 1px solid $color__border-transparent;
  123. display: flex;
  124. flex-wrap: wrap;
  125. margin: 0 !important;
  126. width: 100%;
  127. form {
  128. background: transparent !important;
  129. }
  130. .comment-reply-title {
  131. padding: 0 ($gutter * .5);
  132. width: 100%;
  133. small {
  134. font-family: $font__main;
  135. @include font-size(1);
  136. display: block;
  137. }
  138. }
  139. #commentform,
  140. .comment-form {
  141. padding: 0 ($gutter * .5);
  142. width: 100% !important;
  143. }
  144. p[class^="comment-form"] {
  145. label {
  146. @include list-header();
  147. color: $color__link-hover;
  148. }
  149. input {
  150. display: block;
  151. width: 100%;
  152. }
  153. }
  154. .comment-list & {
  155. width: 100%;
  156. margin-left: 0;
  157. }
  158. .comment-subscription-form {
  159. margin-bottom: ($baseline * .5);
  160. }
  161. .post-subscription-form {
  162. margin-bottom: 0;
  163. }
  164. }
  165. .page #respond {
  166. border-top-width: 0;
  167. margin-top: 0 !important;
  168. }
  169. .page .comment-list + #respond {
  170. border-top-width: 1px;
  171. margin-top: -1px !important;
  172. }
  173. @include breakpoint( mobileonly ) {
  174. .comment-body {
  175. .comment-author {
  176. flex: 0 1 65%;
  177. }
  178. .comment-metadata {
  179. flex: 0 1 35%;
  180. }
  181. .avatar {
  182. margin-bottom: #{ $mobile-baseline * .5 };
  183. }
  184. }
  185. #respond,
  186. .comment-respond {
  187. padding: $baseline 0;
  188. }
  189. }
  190. @include breakpoint( phablet ) {
  191. .comment-body {
  192. .comment-content {
  193. padding: 0 ($gutter * .5) 0 ($gutter * .5);
  194. width: calc((100% / 6) * 5);
  195. }
  196. }
  197. #respond,
  198. .comment-respond {
  199. padding: ($baseline * 1.5) 0 !important;
  200. }
  201. }
  202. @include breakpoint( tablet ) {
  203. .comments-title {
  204. padding: ($baseline * 1.5) ($gutter * .2) ($baseline * 1.5) ($gutter * .5);
  205. position: absolute;
  206. width: calc((100% / 8) * 2 - #{$gutter * 2});
  207. }
  208. .comment-body {
  209. margin-left: calc((100% / 8) * 2);
  210. }
  211. .comment .children {
  212. margin-left: 5%;
  213. }
  214. .comments-area {
  215. border-top: none;
  216. padding: 0 5%;
  217. & > ol > li:first-child > .comment-body {
  218. border-top: none;
  219. }
  220. .page .site-content & {
  221. @include non-border( 1px solid rgba(0, 0, 0, 0.2), top );
  222. &:before {
  223. margin-left: -50%;
  224. width: 200%;
  225. }
  226. }
  227. }
  228. .single .comment-list {
  229. border-top: 1px solid $color__border-transparent;
  230. }
  231. .no-comments {
  232. @include gutter-width(75%);
  233. margin-left: 25%;
  234. }
  235. #respond,
  236. .comment-respond {
  237. border-top: 1px solid $color__border-transparent;
  238. margin-top: -1px;
  239. .comment-reply-title {
  240. padding: 0 ($gutter * .5);
  241. width: calc((100% / 8) * 2);
  242. }
  243. #commentform,
  244. .comment-form {
  245. padding: 0 ($gutter * .5);
  246. width: calc((100% / 8) * 5) !important;
  247. }
  248. }
  249. }
  250. @include breakpoint( desktop ) {
  251. .comments-title {
  252. padding: ($baseline * 1.5) (64px + ($gutter * .2)) ($baseline * 1.5) ($gutter * .5);
  253. position: absolute;
  254. width: calc((100% / 8) * 2 - #{$gutter * 2});
  255. }
  256. .comment-body {
  257. margin-left: calc((100% / 8) * 2);
  258. .avatar {
  259. margin-right: 0;
  260. position: absolute;
  261. right: calc( 100% + #{ $gutter * .2 } );
  262. top: 20px;
  263. }
  264. }
  265. }