/* #region "./apps/admin/src/ui/RichTextEditor/Editor.css" */
/*
- type: css
*/
/* This is not ideal, but there aren't many ways to modify the styles of the Editor itself consistently */
.rich-text-editor {
  padding: 16px;
}
.rich-text-editor:focus,
.rich-text-editor:focus-within {
  outline: none;
}
.rich-text-editor > :first-child {
  margin-top: 0;
}

.rich-text-editor code {
  font-family: monospace;
}

.rich-text-editor a.custom-link {
  color: var(--custom-link-color, inherit);
}

[data-type='mention'] {
  color: var(--mui-palette-rainbow-lavender-one, rgba(225, 190, 231, 1));
  font-size: 12px;
  font-weight: 500;
  font-family: 'Work Sans';
  line-height: 14px;
}

.light [data-type='mention'] {
  color: var(--mui-palette-rainbow-lavender-two, #8e24aa);
}
.rich-text-editor .incomplete-mention {
  color: var(--mui-palette-rainbow-pink-two, rgba(255, 165, 184, 1));
  border-bottom: 1px dashed
    var(--mui-palette-rainbow-pink-two, rgba(255, 165, 184, 1));
}

.light .rich-text-editor .incomplete-mention {
  color: var(--mui-palette-rainbow-pink-two, #ff114b);
  border-bottom: 1px dashed var(--mui-palette-rainbow-pink-two, #ff114b);
}

.incomplete-mention {
  color: #c5c6d0;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Work Sans';
  line-height: 14px;
}

.light .incomplete-mention {
  color: #45464f;
}

.ProseMirror.rich-text-editor {
  & img {
    display: block;
    height: auto;
    margin: 0;
    max-width: 100%;

    &.ProseMirror-selectednode {
      outline: 3px solid var(--custom-main-color);
    }
  }
}

.drop-cursor {
  color: var(--custom-main-color);
}

.ProseMirror-gapcursor:after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 2px !important;
  width: 50px !important;
  height: 3px !important;
  border: none !important;
  background-color: var(--custom-main-color) !important;
}

/* #endregion "./apps/admin/src/ui/RichTextEditor/Editor.css" */

