From 377db68158e8f3632806f2f1e2201fddfbf03e5f Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 27 Sep 2022 21:55:11 +0000 Subject: [PATCH] Twenty Eleven: Improve text color consistency of Table Block heading cells and figcaption. This changeset ensures the text color selected for the text of the Table Block is reflected on the `thead` cells, on the figcaption and on the border below it. It also adds better consistency in headings cells padding. Props umesh84, mukesh27, multidots1896, sabernhardt. Fixes #56462. Built from https://develop.svn.wordpress.org/trunk@54340 git-svn-id: http://core.svn.wordpress.org/trunk@53899 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentyeleven/blocks.css | 8 +++++ .../themes/twentyeleven/editor-blocks.css | 30 ++++++++++++++----- wp-includes/version.php | 2 +- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/wp-content/themes/twentyeleven/blocks.css b/wp-content/themes/twentyeleven/blocks.css index ee0f5ad6ad..6d9b02947a 100644 --- a/wp-content/themes/twentyeleven/blocks.css +++ b/wp-content/themes/twentyeleven/blocks.css @@ -219,6 +219,14 @@ p.has-drop-cap:not(:focus)::first-letter { text-transform: uppercase; } +.rtl .wp-block-table th { + padding: 6px 0 6px 10px; +} + +.wp-block-table .has-text-color th { + color: currentColor; +} + .wp-block-table td { border: 0; border-top: 1px solid #ddd; diff --git a/wp-content/themes/twentyeleven/editor-blocks.css b/wp-content/themes/twentyeleven/editor-blocks.css index 2be3394ece..4b10bb4ade 100644 --- a/wp-content/themes/twentyeleven/editor-blocks.css +++ b/wp-content/themes/twentyeleven/editor-blocks.css @@ -162,12 +162,14 @@ Description: Used to style blocks in the editor. /* Captions */ -[class^="wp-block-"] figcaption { +[class^="wp-block-"] figcaption, +[class*=" wp-block-"] figcaption { font-family: Georgia, serif; font-size: 12px; } -[class^="wp-block-"]:not(.wp-block-gallery) figcaption { +[class^="wp-block-"]:not(.wp-block-gallery) figcaption, +[class*=" wp-block-"]:not(.wp-block-gallery) figcaption { color: #666; margin-bottom: 1.625em; max-width: 96%; @@ -177,7 +179,8 @@ Description: Used to style blocks in the editor. text-align: left; } -[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before { +[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before, +[class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before { color: #666; content: '\2014'; font-size: 14px; @@ -189,13 +192,15 @@ Description: Used to style blocks in the editor. top: 0; } -.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption { +.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption, +.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption { padding-left: 0; padding-right: 40px; text-align: right; } -.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before { +.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before, +.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before { left: 0; margin-left: 5px; margin-right: 0; @@ -355,9 +360,18 @@ p.has-drop-cap:not(:focus)::first-letter { /* Table */ -.editor-block-list__block .wp-block-table th, -.editor-block-list__block .wp-block-table td { - padding: 0; +.editor-styles-wrapper .wp-block-table th, +.editor-styles-wrapper .wp-block-table td { + padding: 6px 10px 6px 0; +} + +.rtl .editor-styles-wrapper .wp-block-table th, +.rtl .editor-styles-wrapper .wp-block-table td { + padding: 6px 0 6px 10px; +} + +.wp-block-table .has-text-color th { + color: currentColor; } .wp-block-table__cell-content { diff --git a/wp-includes/version.php b/wp-includes/version.php index 74f340a574..4c3ae47e95 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-beta2-54339'; +$wp_version = '6.1-beta2-54340'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.