_post-comments.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. .wp-block-post-comments {
  2. .reply {
  3. a {
  4. border-radius: var(--wp--custom--button--border--radius);
  5. font-size: var(--wp--preset--font-size--small);
  6. line-height: 1.5;
  7. padding: 23px 25px;
  8. &:not(.has-background):not(.has-text-color) {
  9. &:hover,
  10. &:focus,
  11. &.has-focus {
  12. padding: 23px 25px;
  13. }
  14. }
  15. }
  16. }
  17. #comments,
  18. #reply-title {
  19. font-size: var(--wp--preset--font-size--huge);
  20. font-style: italic;
  21. margin-bottom: var(--wp--custom--margin--vertical)
  22. }
  23. .comment-meta,
  24. .comment-author {
  25. font-size: var(--wp--preset--font-size--tiny);
  26. margin-left: 0;
  27. a {
  28. text-decoration: none;
  29. }
  30. }
  31. label {
  32. font-size: var(--wp--preset--font-size--small);
  33. margin-bottom: var(--wp--custom--margin--baseline);
  34. }
  35. input[type=checkbox] + label {
  36. margin-left: 0;
  37. }
  38. .commentlist {
  39. .comment {
  40. padding-left: 0;
  41. p {
  42. font-size: var(--wp--preset--font-size--normal);
  43. margin-bottom: var(--wp--custom--margin--vertical);
  44. margin-top: var(--wp--custom--margin--vertical);
  45. }
  46. }
  47. > li {
  48. margin-top: var(--wp--custom--margin--vertical);
  49. margin-bottom: var(--wp--custom--margin--vertical);
  50. &:not(first-child) {
  51. border-bottom: 1px solid var(--wp--custom--form--border--color);
  52. }
  53. }
  54. }
  55. .comment .comment-author {
  56. .avatar {
  57. border-radius: 1.5em;
  58. border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
  59. display: block;
  60. float: left;
  61. height: 42px;
  62. margin-right: 18px;
  63. width: 42px;
  64. }
  65. .fn {
  66. font-size: var(--global--font-size-xs);
  67. }
  68. }
  69. .comment-form {
  70. display: grid;
  71. column-gap: 1em;
  72. grid-template-rows: auto;
  73. grid-template-areas:
  74. "notes notes"
  75. "comment comment"
  76. "author email"
  77. "url url"
  78. "cookies-consent cookies-consent"
  79. "form-submit form-submit";
  80. p {
  81. margin-top: var(--wp--custom--margin--baseline);
  82. margin-bottom: var(--wp--custom--margin--baseline);
  83. }
  84. input[type="submit"] {
  85. border-radius: var(--wp--custom--button--border--radius);
  86. cursor: pointer;
  87. font-size: var(--wp--preset--font-size--normal);
  88. line-height: 1.5;
  89. padding: 23px 25px;
  90. &:not(.has-background):not(.has-text-color) {
  91. &:hover,
  92. &:focus,
  93. &.has-focus {
  94. padding: 23px 25px;
  95. }
  96. }
  97. }
  98. .comment-form-cookies-consent > label,
  99. .comment-notes {
  100. font-size: var(--wp--preset--font-size--tiny);
  101. }
  102. input:not([type=submit]):not([type=checkbox]),
  103. textarea {
  104. border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
  105. font-size: var(--wp--preset--font-size--small);
  106. width: 100%;
  107. &:focus {
  108. color: var(--wp--custom--form--color--text);
  109. outline-width: 1px;
  110. outline-style: dotted;
  111. outline-color: var(--wp--custom--form--color--text);
  112. }
  113. }
  114. }
  115. .comment-notes {
  116. grid-area: notes;
  117. }
  118. .comment-form-author {
  119. grid-area: author;
  120. }
  121. .comment-form-email {
  122. grid-area: email;
  123. }
  124. .comment-form-url {
  125. grid-area: url;
  126. }
  127. .comment-form-comment {
  128. grid-area: comment;
  129. }
  130. .comment-form-cookies-consent {
  131. grid-area: cookies-consent;
  132. }
  133. .form-submit {
  134. grid-area: form-submit;
  135. }
  136. }