pen-comments.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. #comments {
  2. background: rgba(255,255,255,0.95);
  3. color: #333;
  4. font-size: 0.857em;
  5. list-style: none;
  6. overflow: hidden;
  7. margin: 0;
  8. padding: 2em;
  9. position: relative;
  10. }
  11. body.pen_drop_shadow #comments {
  12. box-shadow: 0 5px 10px rgba(0,0,0,0.4), 0 0 5px rgba(0,0,0,0.4);
  13. }
  14. body.pen_round_corners #comments {
  15. border-radius: 5px;
  16. }
  17. #comments h2 {
  18. font-weight: bold;
  19. padding: 0 0 1em;
  20. }
  21. #comments ol.comment-list,
  22. #comments ol.children,
  23. #comments ol.comment-list li {
  24. float: left;
  25. list-style: none;
  26. margin: 0;
  27. padding: 0;
  28. width: 100%;
  29. }
  30. #comments ol.comment-list li {
  31. min-height: 48px;
  32. }
  33. #comments ol.comment-list > li {
  34. background: rgba(170,170,170,0.1);
  35. box-shadow: 0 0 7px rgba(0,0,0,0.2);
  36. float: left;
  37. margin: 0 0 2em;
  38. position: relative;
  39. padding: 2em;
  40. width: 100%;
  41. }
  42. body.pen_round_corners #comments ol.comment-list > li {
  43. border-radius: 3px;
  44. }
  45. #comments ol.comment-list > li:last-child {
  46. margin: 0;
  47. }
  48. #comments ol.comment-list ol.children {
  49. margin: 3em 0 0;
  50. }
  51. #comments ol.comment-list div.comment-author {
  52. float: left;
  53. margin: 0;
  54. width: 100%;
  55. }
  56. #comments ol.comment-list div.comment-author .photo {
  57. background: #fff;
  58. box-shadow: 0 0 7px rgba(0,0,0,0.2);
  59. float: left;
  60. height: 70px;
  61. margin: -40px 1em 1em;
  62. overflow: hidden;
  63. position: relative;
  64. width: 70px;
  65. }
  66. body.pen_round_corners #comments ol.comment-list div.comment-author .photo {
  67. border-radius: 50%;
  68. }
  69. #comments ol.comment-list div.comment-author cite {
  70. clear: left;
  71. float: left;
  72. font-style: normal;
  73. }
  74. #comments ol.comment-list div.comment-author .says {
  75. margin: 0 0 0 5px;
  76. }
  77. #comments ol.comment-list div.comment-author b {
  78. clear: left;
  79. }
  80. #comments ol.comment-list div.comment-author b,
  81. #comments ol.comment-list div.comment-author .says {
  82. float: left;
  83. }
  84. #comments ol.comment-list div.comment-meta {
  85. float: left;
  86. margin: 0 0 1em;
  87. padding: 0;
  88. width: 100%;
  89. }
  90. #comments ol.comment-list div.comment-meta a {
  91. float: left;
  92. margin: 0 1em 0 0;
  93. padding-bottom: 0.25em;
  94. padding-top: 0.25em;
  95. }
  96. #comments ol.comment-list > li a.comment-edit-link {
  97. float: none !important;
  98. margin: 0 0 0 5px;
  99. padding-top: 5px !important;
  100. padding-bottom: 5px !important;
  101. }
  102. #comments ol.comment-list div.comment-content {
  103. float: left;
  104. margin: 1em 0;
  105. width: 100%;
  106. }
  107. #comments ol.comment-list .reply a {
  108. margin-bottom: 0 !important;
  109. padding-left: 4em !important;
  110. position: relative;
  111. text-align: left;
  112. }
  113. #comments ol.comment-list .reply a:before {
  114. content: "\f075";
  115. font-family: "FontAwesome";
  116. font-size: 1.429em;
  117. font-weight: normal;
  118. left: 1em;
  119. margin: 0 1em 0 0;
  120. position: absolute;
  121. top: 50%;
  122. transform: translateY(-50%);
  123. }
  124. #comments .no-comments,
  125. #comments .comment-awaiting-moderation {
  126. border: 1px solid rgba(170,170,170,0.3);
  127. float: left;
  128. margin: 1em 0;
  129. padding: 1em 1em 1em 2em;
  130. width: 100%;
  131. }
  132. body.pen_round_corners #comments .no-comments,
  133. body.pen_round_corners #comments .comment-awaiting-moderation {
  134. border-radius: 3px;
  135. }
  136. #comments .no-comments:before,
  137. #comments .comment-awaiting-moderation:before {
  138. content: "\f023";
  139. font-family: "FontAwesome";
  140. font-weight: normal;
  141. margin: 0 1em 0 0;
  142. }
  143. #comments .comment-awaiting-moderation:before {
  144. content: "\f017";
  145. }
  146. #pen_respond_wrapper {
  147. float: left;
  148. margin: 2em 0 0 !important;
  149. width: 100%;
  150. }
  151. #comments #pen_respond_wrapper:first-child:last-child {
  152. margin: 0;
  153. }
  154. #respond {
  155. margin: 0;
  156. position: relative;
  157. }
  158. #respond h3 {
  159. padding-left: 2em;
  160. position: relative;
  161. }
  162. #comments #pen_respond_wrapper:first-child:last-child h3 {
  163. margin-top: 0;
  164. }
  165. #respond h3:before {
  166. content: "\f075";
  167. font-family: "FontAwesome";
  168. font-size: 1.429em;
  169. font-weight: normal;
  170. left: 0;
  171. line-height: 1;
  172. position: absolute;
  173. top: 0;
  174. }
  175. #respond h3 #cancel-comment-reply-link {
  176. float: right;
  177. margin: 0;
  178. }
  179. #comments .comment-form-cookies-consent {
  180. float: left;
  181. margin-top: 1em;
  182. width: 100%;
  183. }
  184. @media only screen and (min-width:728px) {
  185. #comments a.post-edit-link,
  186. #comments .comment-list a.comment-edit-link,
  187. #comments .comment-list .reply a,
  188. #cancel-comment-reply-link {
  189. font-size: 0.857em !important;
  190. width: auto !important;
  191. }
  192. #respond .form-submit input {
  193. width: auto !important;
  194. }
  195. #comments ol.comment-list div.comment-metadata {
  196. position: absolute;
  197. right: 2em;
  198. top: 2em;
  199. }
  200. #comments .comment-form-author,
  201. #comments .comment-form-email,
  202. #comments .comment-form-url {
  203. float: left;
  204. margin-bottom: 0.5em;
  205. width: 28%;
  206. }
  207. #comments .comment-form-comment {
  208. float: right;
  209. width: 70%;
  210. }
  211. body.logged-in #comments .comment-form-comment {
  212. clear: both;
  213. width: 100%;
  214. }
  215. #comments .form-submit {
  216. float: left;
  217. margin: 1em 0 0;
  218. width: 100%;
  219. }
  220. }
  221. @media only screen and (max-width:728px) {
  222. #comments ol.comment-list div.comment-meta {
  223. width: 100%;
  224. }
  225. #comments ol.comment-list div.comment-meta a {
  226. padding: 0;
  227. }
  228. #respond h3 {
  229. font-size: 1.286em;
  230. padding-left: 0;
  231. padding-top: 2em;
  232. text-align: center;
  233. }
  234. #respond h3:before {
  235. left: 50%;
  236. top: 0;
  237. transform: translateX(-50%);
  238. }
  239. #respond h3 #cancel-comment-reply-link {
  240. margin: 1em 0;
  241. }
  242. }