Skip to content

Commit

Permalink
fix(canvas/text-highlights): correct processing gradients over previo…
Browse files Browse the repository at this point in the history
…us texts (#89, #86)

- Fix gradients over previous texts to ensure they look consistent and fit the theme for ProseMirror (Text Canvas) while processing the submited changes ("Add emoji", etc)

Changes summary:
    - Corrected processing gradients over previous texts to ensure consistency and theme fit for ProseMirror (Text Canvas).
  • Loading branch information
itsmartashub committed Dec 12, 2024
1 parent e42d14e commit b91faa3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sass/elements/_canvas.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
}

/* ______ CODE CANVAS: CM CodeMirror EDITOR */

.cm-editor {

// .ͼ1p.cm-focused .cm-selectionBackground, .ͼ1p .cm-line::selection, .ͼ1p .cm-selectionLayer .cm-selectionBackground, .ͼ1p .cm-content ::selection {
Expand Down Expand Up @@ -66,6 +67,18 @@
}
}

/* ______ TEXT CANVAS: ProseMirror EDITOR */
#prosemirror-editor-container {

& > div.bg-token-main-surface-primary.ProseMirror {
--main-surface-primary: var(--c-bg-cm) !important;
}

.from-token-main-surface-primary {
--main-surface-primary: var(--c-bg-cm) !important;
}
}

/* Canvas with CodeMirror (for code) and ProseMirror (for text) showed on the left (when open canvas)
- .fixed.inset-0.z-40.overflow-hidden is for smaller screens (width <= 1000px) */
.absolute.left-0.z-20.h-full.overflow-hidden,
Expand Down

0 comments on commit b91faa3

Please sign in to comment.