Skip to content

Commit

Permalink
fix: Adapt the editor background to color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Sep 12, 2023
1 parent a308460 commit 035a9b2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion assets/stylesheets/components/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,21 @@ legend {
}

.editor {
background-color: #fff;
background-color: var(--tinymce-background);
border: 0.25rem solid var(--color-grey8);
border-radius: 0.5rem;

transition: border-color 0.2s ease-in-out;
}

[data-color-scheme="light"] .editor {
--tinymce-background: #fff;
}

[data-color-scheme="dark"] .editor {
--tinymce-background: #222f3e;
}

.editor:hover,
.editor:focus-within {
border-color: var(--color-primary8);
Expand All @@ -268,6 +276,7 @@ legend {

.editor .tox-tinymce {
border: none;
border-radius: 0.5rem 0.5rem 0 0;
}

.form__caption {
Expand Down

0 comments on commit 035a9b2

Please sign in to comment.