You are here

comments.css in AT Tools 8.2

/**
 * Comments
 *  - comment field (holds comment title, form, comments etc)
 *  - styles for comments
 ============================================================================ */
.comment {
  padding: 1rem 0;
  border-top: 1px solid;
}

.comment__title--visually-hidden {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

.comment__title--visually-hidden .permalink {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  padding: 0;
  word-wrap: normal;
  font: 0/0 a;
}

.comment__title--visually-hidden .marker {
  float: right;
  margin-left: 0.25rem;
}

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

.comment__meta {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 1rem 0;
}

.comment.has-title .comment__meta {
  margin: 1rem 0;
}

.comment__meta .comment__author:after {
  content: "-";
  display: inline-block;
}

.comment__meta--has-user-picture .comment__author:after {
  display: none;
}

.comment__meta--has-user-picture .comment__author,
.comment__meta--has-user-picture .comment__pubdate {
  margin: 0;
  display: block;
}

@media screen and (max-width: 60em) {
  .comment__meta .comment__author:after {
    display: none;
  }
  .comment__meta .comment__author,
  .comment__meta .comment__pubdate {
    margin: 0;
    display: block;
  }
}

.comment__meta .field-type-image {
  float: left;
  margin: 0 0.75rem 0 0;
}

.comment__meta .field-type-image img {
  width: auto;
  height: 3rem;
}

.comment__meta .field-type-image__figure {
  margin: 0;
  padding: 0;
}

.comment__meta article:empty {
  display: none;
}

.comment.preview {
  padding: 1rem;
  margin-bottom: 1rem;
}

.comment__links {
  clear: both;
}

.field-type-comment {
  margin: 1.25rem 0 0;
  clear: both;
}

.field-type-comment:before, .field-type-comment:after {
  content: " ";
  display: table;
}

.field-type-comment:after {
  clear: both;
}

.field-type-comment .indented {
  margin-left: 2.625rem;
}
/*# sourceMappingURL=comments.css.map */

File

at_theme_generator/starterkits/starterkit/styles/css/components/comments.css
View source
  1. /**
  2. * Comments
  3. * - comment field (holds comment title, form, comments etc)
  4. * - styles for comments
  5. ============================================================================ */
  6. .comment {
  7. padding: 1rem 0;
  8. border-top: 1px solid;
  9. }
  10. .comment__title--visually-hidden {
  11. margin: 0;
  12. padding: 0;
  13. font-size: 1rem;
  14. }
  15. .comment__title--visually-hidden .permalink {
  16. position: absolute !important;
  17. clip: rect(1px, 1px, 1px, 1px);
  18. overflow: hidden;
  19. height: 1px;
  20. width: 1px;
  21. padding: 0;
  22. word-wrap: normal;
  23. font: 0/0 a;
  24. }
  25. .comment__title--visually-hidden .marker {
  26. float: right;
  27. margin-left: 0.25rem;
  28. }
  29. .comment p:last-of-type {
  30. margin-bottom: 0;
  31. }
  32. .comment__meta {
  33. display: -webkit-flex;
  34. display: -ms-flexbox;
  35. display: flex;
  36. -webkit-align-items: center;
  37. -ms-flex-align: center;
  38. align-items: center;
  39. margin: 1rem 0;
  40. }
  41. .comment.has-title .comment__meta {
  42. margin: 1rem 0;
  43. }
  44. .comment__meta .comment__author:after {
  45. content: "-";
  46. display: inline-block;
  47. }
  48. .comment__meta--has-user-picture .comment__author:after {
  49. display: none;
  50. }
  51. .comment__meta--has-user-picture .comment__author,
  52. .comment__meta--has-user-picture .comment__pubdate {
  53. margin: 0;
  54. display: block;
  55. }
  56. @media screen and (max-width: 60em) {
  57. .comment__meta .comment__author:after {
  58. display: none;
  59. }
  60. .comment__meta .comment__author,
  61. .comment__meta .comment__pubdate {
  62. margin: 0;
  63. display: block;
  64. }
  65. }
  66. .comment__meta .field-type-image {
  67. float: left;
  68. margin: 0 0.75rem 0 0;
  69. }
  70. .comment__meta .field-type-image img {
  71. width: auto;
  72. height: 3rem;
  73. }
  74. .comment__meta .field-type-image__figure {
  75. margin: 0;
  76. padding: 0;
  77. }
  78. .comment__meta article:empty {
  79. display: none;
  80. }
  81. .comment.preview {
  82. padding: 1rem;
  83. margin-bottom: 1rem;
  84. }
  85. .comment__links {
  86. clear: both;
  87. }
  88. .field-type-comment {
  89. margin: 1.25rem 0 0;
  90. clear: both;
  91. }
  92. .field-type-comment:before, .field-type-comment:after {
  93. content: " ";
  94. display: table;
  95. }
  96. .field-type-comment:after {
  97. clear: both;
  98. }
  99. .field-type-comment .indented {
  100. margin-left: 2.625rem;
  101. }
  102. /*# sourceMappingURL=comments.css.map */