Skip to content

Commit ac614e5

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@54340 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6c17b03 commit ac614e5

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

src/wp-content/themes/twentyeleven/blocks.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,14 @@ p.has-drop-cap:not(:focus)::first-letter {
219219
text-transform: uppercase;
220220
}
221221

222+
.rtl .wp-block-table th {
223+
padding: 6px 0 6px 10px;
224+
}
225+
226+
.wp-block-table .has-text-color th {
227+
color: currentColor;
228+
}
229+
222230
.wp-block-table td {
223231
border: 0;
224232
border-top: 1px solid #ddd;

src/wp-content/themes/twentyeleven/editor-blocks.css

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,14 @@ Description: Used to style blocks in the editor.
162162

163163
/* Captions */
164164

165-
[class^="wp-block-"] figcaption {
165+
[class^="wp-block-"] figcaption,
166+
[class*=" wp-block-"] figcaption {
166167
font-family: Georgia, serif;
167168
font-size: 12px;
168169
}
169170

170-
[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
171+
[class^="wp-block-"]:not(.wp-block-gallery) figcaption,
172+
[class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
171173
color: #666;
172174
margin-bottom: 1.625em;
173175
max-width: 96%;
@@ -177,7 +179,8 @@ Description: Used to style blocks in the editor.
177179
text-align: left;
178180
}
179181

180-
[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
182+
[class^="wp-block-"]:not(.wp-block-gallery) figcaption:before,
183+
[class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before {
181184
color: #666;
182185
content: '\2014';
183186
font-size: 14px;
@@ -189,13 +192,15 @@ Description: Used to style blocks in the editor.
189192
top: 0;
190193
}
191194

192-
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
195+
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption,
196+
.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption {
193197
padding-left: 0;
194198
padding-right: 40px;
195199
text-align: right;
196200
}
197201

198-
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before {
202+
.rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before,
203+
.rtl [class*=" wp-block-"]:not(.wp-block-gallery) figcaption:before {
199204
left: 0;
200205
margin-left: 5px;
201206
margin-right: 0;
@@ -355,9 +360,18 @@ p.has-drop-cap:not(:focus)::first-letter {
355360

356361
/* Table */
357362

358-
.editor-block-list__block .wp-block-table th,
359-
.editor-block-list__block .wp-block-table td {
360-
padding: 0;
363+
.editor-styles-wrapper .wp-block-table th,
364+
.editor-styles-wrapper .wp-block-table td {
365+
padding: 6px 10px 6px 0;
366+
}
367+
368+
.rtl .editor-styles-wrapper .wp-block-table th,
369+
.rtl .editor-styles-wrapper .wp-block-table td {
370+
padding: 6px 0 6px 10px;
371+
}
372+
373+
.wp-block-table .has-text-color th {
374+
color: currentColor;
361375
}
362376

363377
.wp-block-table__cell-content {

0 commit comments

Comments
 (0)