_comments.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #comments {
  2. font-size: .95rem;
  3. margin-top: 3em;
  4. overflow-wrap: break-word;
  5. text-align: initial;
  6. }
  7. .comment-counter {
  8. margin-left: .5em;
  9. }
  10. .comment-form {
  11. margin-top: 1em;
  12. border: 3px double var(--c-txt-alt);
  13. padding: .5em;
  14. label {
  15. display: inline-block;
  16. width: 100%;
  17. margin-top: .5em;
  18. font-size: .9em;
  19. }
  20. button {
  21. width: 100%;
  22. margin-top: 1em;
  23. margin-bottom: .2em;
  24. line-height: 2;
  25. }
  26. .form-wrapper {
  27. display: flex;
  28. gap: .5em;
  29. }
  30. }
  31. .comment-preview {
  32. width: 100%;
  33. min-height: 1em;
  34. padding: 2px 6px;
  35. border: 1px dashed var(--c-txt-alt);
  36. }
  37. .comment-group {
  38. margin-top: 2em;
  39. article {
  40. display: flex;
  41. margin: 1em 0;
  42. padding-top: 1em;
  43. border-top: 1px solid var(--c-bg-alt);
  44. }
  45. }
  46. .comment-avatar {
  47. margin-right: .8em;
  48. > img {
  49. width: 40px;
  50. height: auto;
  51. border-radius: 50%;
  52. }
  53. }
  54. .comment-wrapper {
  55. position: relative;
  56. width: 100%;
  57. > header {
  58. font-size: .9em;
  59. .comment-date {
  60. color: var(--c-txt-alt);
  61. }
  62. }
  63. > main {
  64. margin: 1em 0;
  65. overflow-wrap: anywhere;
  66. }
  67. img {
  68. max-width: 100%;
  69. }
  70. }
  71. .reply-btn {
  72. position: absolute;
  73. top: 0;
  74. right: 0;
  75. font-size: .8em;
  76. }
  77. .replies {
  78. margin-left: calc(7% + 1em);
  79. }