comments.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /**
  2. * @file
  3. * Visual styles for comments in Bartik.
  4. */
  5. /* This is required to win over specificity of #content h2 */
  6. #content .comment-wrapper h2 {
  7. margin-bottom: 1em;
  8. }
  9. #content .comment-wrapper h2.comment-form__title {
  10. margin-bottom: 1em;
  11. }
  12. .field-node--comment {
  13. font-size: 0.934em;
  14. }
  15. .comment {
  16. margin-bottom: 19px;
  17. vertical-align: top;
  18. display: table;
  19. }
  20. [dir="rtl"] .comment {
  21. direction: rtl;
  22. }
  23. .comment__meta {
  24. padding: 0 30px 0 0; /* LTR */
  25. font-size: 1.071em;
  26. }
  27. [dir="rtl"] .comment__meta {
  28. padding: 0 0 0 30px;
  29. }
  30. .comment__attribution img {
  31. border: 1px solid #d3d7d9;
  32. }
  33. /* This is required to win over specificity of .field--type-image img */
  34. .comment .field--name-user-picture img {
  35. margin: 0;
  36. }
  37. .comment__author .username {
  38. white-space: nowrap;
  39. }
  40. .comment__author {
  41. margin: 4px 0;
  42. line-height: 1.2;
  43. }
  44. .comment__time {
  45. margin-bottom: 4px;
  46. color: #68696b;
  47. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  48. font-size: 0.733em;
  49. line-height: 1.2;
  50. }
  51. .comment__permalink {
  52. font-size: 0.733em;
  53. line-height: 1.2;
  54. }
  55. .comment__content {
  56. position: relative;
  57. display: table-cell;
  58. padding: 10px 25px 10px 25px;
  59. vertical-align: top;
  60. width: 100%;
  61. border: 1px solid #d3d7d9;
  62. font-size: 0.929em;
  63. line-height: 1.6;
  64. word-break: break-all;
  65. }
  66. .comment__content:before {
  67. content: '';
  68. position: absolute;
  69. right: 100%; /* LTR */
  70. top: 20px;
  71. border-top: 20px solid transparent;
  72. border-right: 20px solid #d3d7d9; /* LTR */
  73. border-bottom: 20px solid transparent;
  74. }
  75. [dir="rtl"] .comment__content:before {
  76. right: auto;
  77. left: 100%;
  78. border-right: none;
  79. border-left: 20px solid #d3d7d9;
  80. }
  81. .comment__content:after {
  82. content: '';
  83. position: absolute;
  84. right: 100%; /* LTR */
  85. top: 20px;
  86. border-top: 20px solid transparent;
  87. border-right: 20px solid #fff; /* LTR */
  88. border-bottom: 20px solid transparent;
  89. margin-right: -1px; /* LTR */
  90. }
  91. [dir="rtl"] .comment__content:after {
  92. right: auto;
  93. left: 100%;
  94. border-right: none;
  95. border-left: 20px solid #fff;
  96. margin-right: 0;
  97. margin-left: -1px;
  98. }
  99. .comment__content h3 {
  100. margin-top: 0.94em;
  101. margin-bottom: 0.45em;
  102. font-size: 1.171em;
  103. }
  104. .indented {
  105. margin-left: 40px; /* LTR */
  106. }
  107. [dir="rtl"] .indented {
  108. margin-right: 40px;
  109. margin-left: 0;
  110. }
  111. .comment .links {
  112. padding: 0 0 0.25em 0;
  113. }
  114. .comment .links li {
  115. padding: 0 0.5em 0 0; /* LTR */
  116. font-size: 1.08em;
  117. }
  118. [dir="rtl"] .comment .links li {
  119. padding: 0 0 0 0.5em;
  120. }
  121. .comment--unpublished {
  122. margin-right: 5px; /* LTR */
  123. padding: 5px 2px 5px 5px; /* LTR */
  124. background: #fff4f4;
  125. }
  126. [dir="rtl"] .comment--unpublished {
  127. margin-left: 5px;
  128. margin-right: 0;
  129. padding: 5px 5px 5px 2px;
  130. }
  131. /**
  132. * @todo: unpublished nodes have class .node--unpublished.
  133. * change this to .comment--unpublished.
  134. */
  135. .unpublished .comment-text .comment-arrow {
  136. border-left: 1px solid #fff4f4;
  137. border-right: 1px solid #fff4f4;
  138. }
  139. .unpublished {
  140. padding: 20px 15px 0;
  141. }
  142. .comment-footer {
  143. display: table-row;
  144. }
  145. .comment--unpublished .comment__text:after,
  146. .node--unpublished .comment__text:after {
  147. border-right-color: #fff4f4; /* LTR */
  148. }
  149. [dir="rtl"] .comment--unpublished .comment__content:after,
  150. [dir="rtl"] .node--unpublished .comment__content:after {
  151. border-left-color: #fff4f4;
  152. }