PageComment.module.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. .page-comment-styles :global {
  3. .page-comments {
  4. h4 {
  5. margin-bottom: 1em;
  6. }
  7. }
  8. // reply button
  9. .btn-comment-reply {
  10. backdrop-filter: blur(10px);
  11. }
  12. // TODO: Refacotr Soft-coding
  13. .page-comment-button-skeleton {
  14. width: 70.0167px;
  15. height: 26.3833px;
  16. margin-top: 0.5em;
  17. border: none;
  18. }
  19. }
  20. // // Light mode color
  21. @include bs.color-mode(light) {
  22. .page-comment-styles :global {
  23. .btn-comment-reply {
  24. --bs-btn-color: #{( bs.$gray-600 )};
  25. --bs-btn-hover-color: #{( bs.$gray-700 )};
  26. --bs-btn-bg: #{rgba( bs.$gray-200, 0.3 )};
  27. --bs-btn-hover-bg: #{( bs.$gray-200 )};
  28. --bs-btn-border-color: #{( bs.$gray-200 )};
  29. --bs-btn-hover-border-color: #{( bs.$gray-300 )};
  30. }
  31. }
  32. }
  33. // dark mode color
  34. @include bs.color-mode(dark) {
  35. .page-comment-styles :global {
  36. .btn-comment-reply {
  37. --bs-btn-color: #{( bs.$gray-500 )};
  38. --bs-btn-hover-color: #{( bs.$gray-400 )};
  39. --bs-btn-bg: #{rgba( bs.$gray-800, 0.3 )};
  40. --bs-btn-hover-bg: #{( bs.$gray-800 )};
  41. --bs-btn-border-color: #{( bs.$gray-700 )};
  42. --bs-btn-hover-border-color: #{( bs.$gray-600 )};
  43. }
  44. }
  45. }