Skip to content

Commit 2ee9a3f

Browse files
committed
Bundled Themes: Reverts [52549].
[52549] updated some default presets in use by default themes to the new format. However, this change would cause elements to lose their styling when active on an older version of WordPress. See #54782. git-svn-id: https://develop.svn.wordpress.org/trunk@52615 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 347cd20 commit 2ee9a3f

4 files changed

Lines changed: 20 additions & 20 deletions

File tree

src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,20 +351,20 @@ Inter variable font. Usage:
351351
}
352352

353353
.editor-styles-wrapper p.has-small-font-size {
354-
--wp--preset--font-size--small: 0.842em;
354+
font-size: 0.842em;
355355
}
356356

357357
.editor-styles-wrapper p.has-normal-font-size,
358358
.editor-styles-wrapper p.has-regular-font-size {
359-
--wp--preset--font-size--normal: 1em;
359+
font-size: 1em;
360360
}
361361

362362
.editor-styles-wrapper p.has-medium-font-size {
363-
--wp--preset--font-size--medium: 1.1em;
363+
font-size: 1.1em;
364364
}
365365

366366
.editor-styles-wrapper p.has-large-font-size {
367-
--wp--preset--font-size--large: 1.25em;
367+
font-size: 1.25em;
368368
}
369369

370370
.editor-styles-wrapper p.has-larger-font-size {

src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,21 +206,21 @@ Inter variable font. Usage:
206206
/* GENERAL COLORS */
207207

208208
.has-black-background-color {
209-
--wp--preset--color--black: #000;
209+
background-color: #000;
210210
color: #fff;
211211
}
212212

213213
.has-white-background-color {
214-
--wp--preset--color--white: #fff;
214+
background-color: #fff;
215215
color: #000;
216216
}
217217

218218
.has-black-color {
219-
--wp--preset--color--black: #000;
219+
color: #000;
220220
}
221221

222222
.has-white-color {
223-
--wp--preset--color--white: #fff;
223+
color: #fff;
224224
}
225225

226226

@@ -351,20 +351,20 @@ Inter variable font. Usage:
351351
}
352352

353353
.editor-styles-wrapper p.has-small-font-size {
354-
--wp--preset--font-size--small: 0.842em;
354+
font-size: 0.842em;
355355
}
356356

357357
.editor-styles-wrapper p.has-normal-font-size,
358358
.editor-styles-wrapper p.has-regular-font-size {
359-
--wp--preset--font-size--normal: 1em;
359+
font-size: 1em;
360360
}
361361

362362
.editor-styles-wrapper p.has-medium-font-size {
363-
--wp--preset--font-size--medium: 1.1em;
363+
font-size: 1.1em;
364364
}
365365

366366
.editor-styles-wrapper p.has-large-font-size {
367-
--wp--preset--font-size--large: 1.25em;
367+
font-size: 1.25em;
368368
}
369369

370370
.editor-styles-wrapper p.has-larger-font-size {

src/wp-content/themes/twentytwenty/style-rtl.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,21 +2836,21 @@ h2.entry-title {
28362836
/* Block Font Sizes -------------------------- */
28372837

28382838
.entry-content .has-small-font-size {
2839-
--wp--preset--font-size--small: 0.842em;
2839+
font-size: 0.842em;
28402840
}
28412841

28422842
.entry-content .has-normal-font-size,
28432843
.entry-content .has-regular-font-size {
2844-
--wp--preset--font-size--normal: 1em;
2844+
font-size: 1em;
28452845
}
28462846

28472847
.entry-content .has-medium-font-size {
2848-
--wp--preset--font-size--medium: 1.1em;
2848+
font-size: 1.1em;
28492849
line-height: 1.45;
28502850
}
28512851

28522852
.entry-content .has-large-font-size {
2853-
--wp--preset--font-size--large: 1.25em;
2853+
font-size: 1.25em;
28542854
line-height: 1.4;
28552855
}
28562856

src/wp-content/themes/twentytwenty/style.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2854,21 +2854,21 @@ h2.entry-title {
28542854
/* Block Font Sizes -------------------------- */
28552855

28562856
.entry-content .has-small-font-size {
2857-
--wp--preset--font-size--small: 0.842em;
2857+
font-size: 0.842em;
28582858
}
28592859

28602860
.entry-content .has-normal-font-size,
28612861
.entry-content .has-regular-font-size {
2862-
--wp--preset--font-size--normal: 1em;
2862+
font-size: 1em;
28632863
}
28642864

28652865
.entry-content .has-medium-font-size {
2866-
--wp--preset--font-size--medium: 1.1em;
2866+
font-size: 1.1em;
28672867
line-height: 1.45;
28682868
}
28692869

28702870
.entry-content .has-large-font-size {
2871-
--wp--preset--font-size--large: 1.25em;
2871+
font-size: 1.25em;
28722872
line-height: 1.4;
28732873
}
28742874

0 commit comments

Comments
 (0)