Merge pull request #2623 from Automattic/fix/2561

Spearhead: Fixes the code and verse blocks in the editor
This commit is contained in:
Ben Dwyer 2020-10-19 12:27:45 +01:00 committed by GitHub
commit ba7bf7c169
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 12 deletions

View file

@ -509,6 +509,17 @@ div[data-type="core/button"] {
color: var(--global--color-foreground);
}
.wp-block-code {
color: var(--global--color-foreground);
font-size: var(--global--font-size-sm);
padding: var(--global--spacing-unit);
border-color: var(--global--color-border);
}
.wp-block-code pre {
color: var(--global--color-foreground);
}
.wp-block-cover,
.wp-block-cover-image {
background-color: var(--cover--color-foreground);
@ -1230,6 +1241,8 @@ table th,
}
pre.wp-block-verse {
color: var(--global--color-foreground);
font-family: var(--entry-content--font-family);
padding: 0;
}

File diff suppressed because one or more lines are too long

View file

@ -6,7 +6,7 @@
@import "button/editor";
@import "calendar/style";
@import "code/editor";
@import "code/style";
@import "cover/editor";
@import "file/editor";
@import "gallery/editor";
@ -28,5 +28,5 @@
@import "slideshow/editor";
@import "subscription/editor";
@import "table/editor";
@import "verse/editor";
@import "verse/style";
@import "utilities/editor"; // Import LAST to cascade properly

View file

@ -1,3 +0,0 @@
pre.wp-block-verse {
padding: 0;
}

View file

@ -1,3 +1,5 @@
.wp-block-verse {
pre.wp-block-verse {
color: var(--global--color-foreground);
font-family: var(--entry-content--font-family);
padding: 0;
}

View file

@ -2451,8 +2451,10 @@ table th,
word-break: break-all;
}
.wp-block-verse {
pre.wp-block-verse {
color: var(--global--color-foreground);
font-family: var(--entry-content--font-family);
padding: 0;
}
.wp-block-video figcaption {

View file

@ -2451,8 +2451,10 @@ table th,
word-break: break-all;
}
.wp-block-verse {
pre.wp-block-verse {
color: var(--global--color-foreground);
font-family: var(--entry-content--font-family);
padding: 0;
}
.wp-block-video figcaption {

File diff suppressed because one or more lines are too long