Skip to content

Commit

Permalink
[lexical-playground] Refactor: editor styles should in PlaygroundEdit…
Browse files Browse the repository at this point in the history
…orTheme.css (#6934)
  • Loading branch information
umaranis authored Dec 10, 2024
1 parent df15f53 commit dba2540
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packages/lexical-playground/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -1766,28 +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;
}
}

.dialog-dropdown {
background-color: #eee !important;
margin-bottom: 10px;
Expand Down
19 changes: 19 additions & 0 deletions packages/lexical-playground/src/themes/PlaygroundEditorTheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,25 @@
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;
}
@keyframes CursorBlink {
to {
visibility: hidden;
}
}
.PlaygroundEditorTheme__code {
background-color: rgb(240, 242, 245);
font-family: Menlo, Consolas, Monaco, monospace;
Expand Down

0 comments on commit dba2540

Please sign in to comment.