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

pull/28217/head
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
1 changed files with 5 additions and 5 deletions

View File

@ -88,17 +88,17 @@ 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 {
border: unset;
padding: unset;
&:empty {
border: unset;
padding: unset;
}
}
}