chore: fix super block cursor
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import type { EditorThemeClasses } from 'lexical'
|
import type { EditorThemeClasses } from 'lexical'
|
||||||
|
|
||||||
const BlocksEditorTheme: EditorThemeClasses = {
|
const BlocksEditorTheme: EditorThemeClasses = {
|
||||||
|
blockCursor: 'Lexical__blockCursor',
|
||||||
characterLimit: 'Lexical__characterLimit',
|
characterLimit: 'Lexical__characterLimit',
|
||||||
code: 'Lexical__code',
|
code: 'Lexical__code',
|
||||||
codeHighlight: {
|
codeHighlight: {
|
||||||
|
|||||||
@@ -246,3 +246,23 @@
|
|||||||
.Lexical__embedBlockFocus {
|
.Lexical__embedBlockFocus {
|
||||||
outline: 2px solid var(--sn-stylekit-info-color);
|
outline: 2px solid var(--sn-stylekit-info-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.Lexical__blockCursor {
|
||||||
|
display: block;
|
||||||
|
pointer-events: none;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.Lexical__blockCursor:after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
position: absolute;
|
||||||
|
top: -2px;
|
||||||
|
width: 20px;
|
||||||
|
border-top: 1px solid var(--sn-stylekit-editor-foreground-color);
|
||||||
|
animation: CursorBlink 1.1s steps(2, start) infinite;
|
||||||
|
}
|
||||||
|
@keyframes CursorBlink {
|
||||||
|
to {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user