CommentEditor.module.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use './comment-inheritance';
  3. @use '../PageEditor/page-editor-inheritance';
  4. // display cheatsheet for comment form only
  5. .comment-editor-styles :global {
  6. .cm-editor {
  7. height: 300px !important;
  8. }
  9. .comment-form {
  10. position: relative;
  11. // background
  12. .bg-comment {
  13. @extend %bg-comment
  14. }
  15. // user icon
  16. .picture {
  17. @extend %picture;
  18. }
  19. // textarea
  20. .comment-form-preview {
  21. padding-top: 0.5em;
  22. }
  23. }
  24. .comment-write {
  25. .nav {
  26. --bs-nav-link-padding-x: 12px;
  27. --bs-nav-link-padding-y: 6px;
  28. }
  29. }
  30. }
  31. @include bs.color-mode(light) {
  32. .comment-editor-styles :global {
  33. .comment-write {
  34. .nav.nav-pills {
  35. background-color: white;
  36. &:hover {
  37. background-color: bs.$gray-100;
  38. }
  39. border: 2px solid bs.$gray-500;
  40. --bs-nav-link-color: #{ bs.$gray-500 };
  41. --bs-nav-link-hover-color: #{ bs.$gray-500 };
  42. --bs-nav-pills-link-active-bg: #{ bs.$gray-500 };
  43. }
  44. }
  45. }
  46. }
  47. @include bs.color-mode(dark) {
  48. .comment-editor-styles :global {
  49. .comment-write {
  50. .nav.nav-pills {
  51. // background-color: bs.$gray-600;
  52. &:hover {
  53. background-color: rgba(bs.$gray-600, 0.1);
  54. }
  55. border: 2px solid bs.$gray-800;
  56. --bs-nav-pills-link-active-color: #{ bs.$gray-400 };
  57. --bs-nav-link-color: #{ bs.$gray-400 };
  58. --bs-nav-link-hover-color: #{ bs.$gray-400 };
  59. --bs-nav-pills-link-active-bg: #{ bs.$gray-800 };
  60. }
  61. }
  62. }
  63. }