CommentEditor.module.scss 1002 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. .comment-form {
  7. position: relative;
  8. // background
  9. .bg-comment {
  10. @extend %bg-comment
  11. }
  12. // user icon
  13. .picture {
  14. @extend %picture;
  15. }
  16. }
  17. }
  18. // adjust height
  19. .comment-editor-styles :global {
  20. .cm-editor {
  21. min-height: comment-inheritance.$codemirror-default-height !important;
  22. max-height: #{2 * comment-inheritance.$codemirror-default-height};
  23. }
  24. .cm-gutters {
  25. min-height: comment-inheritance.$codemirror-default-height !important;
  26. }
  27. .comment-preview-container {
  28. min-height: page-editor-inheritance.$navbar-editor-height
  29. + comment-inheritance.$codemirror-default-height;
  30. padding-top: 0.5em;
  31. }
  32. }
  33. // border-radius
  34. .comment-editor-styles :global {
  35. .cm-editor, .cm-scroller {
  36. border-radius: var(--bs-border-radius);
  37. }
  38. }