_post-comments.scss 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .wp-block-post-comments {
  2. #comments,
  3. #reply-title {
  4. font-style: italic;
  5. }
  6. .comment-meta,
  7. .comment-author {
  8. font-size: var(--wp--custom--font-sizes--x-small);
  9. a {
  10. text-decoration: none;
  11. }
  12. }
  13. form {
  14. label:not([for=wp-comment-cookies-consent]) {
  15. --wp--custom--form--label--typography--font-size: var(--wp--preset--font-size--small);
  16. --wp--custom--form--label--spacing--margin--bottom: 0;
  17. }
  18. }
  19. .commentlist {
  20. > li {
  21. margin-bottom: calc(1.5 * var( --wp--style--block-gap ));
  22. &:not(first-child) {
  23. border-bottom: 1px solid var(--wp--custom--form--border--color);
  24. }
  25. }
  26. .children {
  27. > li {
  28. padding-top: var(--wp--custom--gap--vertical);
  29. border-top: 1px solid var(--wp--custom--form--border--color);
  30. }
  31. }
  32. }
  33. .comment .comment-author {
  34. .avatar {
  35. border: var(--wp--custom--form--border--width) var(--wp--custom--form--border--style) var(--wp--custom--form--border--color);
  36. height: 42px;
  37. margin-right: 18px;
  38. width: 42px;
  39. }
  40. }
  41. form {
  42. p {
  43. --wp--custom--gap--vertical: var(--wp--custom--gap--baseline);
  44. margin-top: var(--wp--custom--gap--baseline);
  45. }
  46. input[type="submit"] {
  47. line-height: 1.5;
  48. padding: 23px 25px;
  49. &:not(.has-background):not(.has-text-color) {
  50. &:hover,
  51. &:focus,
  52. &.has-focus {
  53. padding: 23px 25px;
  54. }
  55. }
  56. }
  57. .comment-form-cookies-consent > label,
  58. .comment-notes {
  59. font-size: var(--wp--custom--font-sizes--x-small);
  60. }
  61. input:not([type=submit]):not([type=checkbox]),
  62. textarea {
  63. --wp--preset--font-size--medium: var(--wp--preset--font-size--small);
  64. &:focus {
  65. color: var(--wp--custom--form--color--text);
  66. outline-width: 1px;
  67. outline-style: dotted;
  68. outline-color: var(--wp--custom--form--color--text);
  69. }
  70. }
  71. }
  72. }