Fix block code styling in rich text editor (#10246)

This commit is contained in:
alunturner 2023-02-28 10:08:53 +00:00 committed by GitHub
parent 2c7dfb5401
commit 95223c87fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,19 +88,19 @@ limitations under the License.
border-radius: 2px;
}
code {
code:not(pre *) {
font-family: $monospace-font-family !important;
background-color: $inlinecode-background-color;
border: 1px solid $inlinecode-border-color;
border-radius: 4px;
padding: $spacing-2;
}
code:empty {
&:empty {
border: unset;
padding: unset;
}
}
}
.mx_WysiwygComposer_Editor_content_placeholder::before {
content: var(--placeholder);