Skip to content

Commit

Permalink
editor styles should in PlaygroundEditorTheme.css
Browse files Browse the repository at this point in the history
  • Loading branch information
umaranis committed Dec 10, 2024
1 parent 09779cb commit 5a0c11d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
16 changes: 0 additions & 16 deletions packages/lexical-playground/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1766,22 +1766,6 @@ button.item.dropdown-item-active i {
z-index: 3;
}

.PlaygroundEditorTheme__blockCursor {
display: block;
pointer-events: none;
position: absolute;
}

.PlaygroundEditorTheme__blockCursor:after {
content: '';
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: CursorBlink 1.1s steps(2, start) infinite;
}

@keyframes CursorBlink {
to {
visibility: hidden;
Expand Down
14 changes: 14 additions & 0 deletions packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@
text-decoration: underline;
cursor: pointer;
}
.PlaygroundEditorTheme__blockCursor {
display: block;
pointer-events: none;
position: absolute;
}
.PlaygroundEditorTheme__blockCursor:after {
content: '';
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: CursorBlink 1.1s steps(2, start) infinite;
}
.PlaygroundEditorTheme__code {
background-color: rgb(240, 242, 245);
font-family: Menlo, Consolas, Monaco, monospace;
Expand Down

0 comments on commit 5a0c11d

Please sign in to comment.