CommentEditor.module.scss 872 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. }