Skip to content

Commit

Permalink
fix(styles): 🐛 restore outline styles for images and videos when Focu…
Browse files Browse the repository at this point in the history
…s is disabled

link #412
  • Loading branch information
yikoyu committed Jan 4, 2025
1 parent a863862 commit 4688395
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/styles/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ $extra-light-primary-color: #ecf5ff;
}

.iframe-wrapper {
&.focus {
&.focus,
&.ProseMirror-selectednode {
> div {
outline: 4px solid $primary-color;
transition: outline 0.15s ease-in;
}
}
}
Expand Down Expand Up @@ -193,9 +195,11 @@ $extra-light-primary-color: #ecf5ff;
}
}

&.focus {
&.focus,
&.ProseMirror-selectednode {
img {
outline: 2px solid $primary-color;
transition: outline 0.15s ease-in;
}
}
}
Expand Down

0 comments on commit 4688395

Please sign in to comment.