Twenty Sixteen: Fixes editor styles for table and calendar blocks and captions.

The table and calendar block font sizes were not as expected on front end within editor. This includes changes for header cells (th), removes redundant font size rules, corrects font-weight and updates figcaption selector along with editing text alignment and adding RTL font selection.

Props nidhidhandhukiya, sabernhardt, sheulyshila, iamfarhan09, bijit027, jannathsyeda, pooja1210, shailu25, hmbashar.
Fixes #58355.

Built from https://develop.svn.wordpress.org/trunk@58635


git-svn-id: http://core.svn.wordpress.org/trunk@58064 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-07-03 11:04:12 +00:00
parent 4d6f01b32d
commit e7370bd83b
3 changed files with 18 additions and 16 deletions

View File

@ -27,6 +27,10 @@ Description: Used to style blocks in the editor.
line-height: 1.75;
}
.rtl .editor-styles-wrapper {
font-family: Arial, Tahoma, sans-serif;
}
.edit-post-visual-editor .editor-block-list__block {
color: #1a1a1a;
}
@ -262,16 +266,12 @@ Description: Used to style blocks in the editor.
/* Captions */
[class^="wp-block-"] figcaption {
figure[class*="wp-block-"] > figcaption {
color: #686868;
font-style: italic;
line-height: 1.6153846154;
padding-top: 0.5384615385em;
text-align: left;
}
.rtl [class^="wp-block-"] figcaption {
text-align: right;
text-align: start;
}
/*--------------------------------------------------------------

View File

@ -313,19 +313,22 @@ table th,
.mce-item-table th,
table caption {
border-width: 0 1px 1px 0;
font-size: 16px;
font-weight: 700;
padding: 7px;
text-align: left;
text-align: start;
vertical-align: baseline;
}
table caption {
font-weight: normal;
}
table td,
.mce-item-table td {
border-width: 0 1px 1px 0;
font-size: 16px;
padding: 7px;
vertical-align: baseline;
text-align: start;
}
img {
@ -502,6 +505,11 @@ fieldset {
* 8.0 - RTL
*/
body.rtl,
[dir="rtl"] body {
font-family: Arial, Tahoma, sans-serif;
}
.rtl blockquote {
border: 0 solid #1a1a1a;
border-right-width: 4px;
@ -533,9 +541,3 @@ fieldset {
margin-right: 24px;
margin-left: auto;
}
.rtl table th,
.rtl .mce-item-table th,
.rtl table caption {
text-align: right;
}

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.7-alpha-58634';
$wp_version = '6.7-alpha-58635';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.