Twenty Twenty: Fixes The design of the ordered and unordered lists within editor.

There wasn't enough padding and the spacing was deteriorating the more depth there was. This reflects the front now and respects background coloring. Impacts both types of lists although original reporting was just on one.

Props aezazshekh, krupalpanchal, multidots1896, kajalgohel, sabernhardt.
Fixes #56083.

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


git-svn-id: http://core.svn.wordpress.org/trunk@57396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Tammie Lister 2024-03-28 16:59:14 +00:00
parent 92daa4fe72
commit fa34e40c7b
3 changed files with 21 additions and 5 deletions

View File

@ -1121,8 +1121,8 @@ hr.wp-block-separator.is-style-dots::before {
/* Block: List ------------------------------- */
.editor-styles-wrapper ul.block-editor-block-list__block,
.editor-styles-wrapper ol.block-editor-block-list__block,
.editor-styles-wrapper ul.block-editor-block-list__block:where(:not(.has-background)),
.editor-styles-wrapper ol.block-editor-block-list__block:where(:not(.has-background)),
.editor-styles-wrapper ul ul,
.editor-styles-wrapper ol ul {
padding-right: 1.3em;
@ -1132,6 +1132,14 @@ hr.wp-block-separator.is-style-dots::before {
padding-right: 0;
}
.wp-block-list li {
margin-top: 0.5rem;
}
.wp-block-list.has-background > .wp-block-list-item {
margin-right: 2rem;
}
/* Block: Post Template ---------------- */
.editor-styles-wrapper ul.wp-block-post-template {

View File

@ -1125,8 +1125,8 @@ hr.wp-block-separator.is-style-dots::before {
/* Block: List ------------------------------- */
.editor-styles-wrapper ul.block-editor-block-list__block,
.editor-styles-wrapper ol.block-editor-block-list__block,
.editor-styles-wrapper ul.block-editor-block-list__block:where(:not(.has-background)),
.editor-styles-wrapper ol.block-editor-block-list__block:where(:not(.has-background)),
.editor-styles-wrapper ul ul,
.editor-styles-wrapper ol ul {
padding-left: 1.3em;
@ -1136,6 +1136,14 @@ hr.wp-block-separator.is-style-dots::before {
padding-left: 0;
}
.wp-block-list li {
margin-top: 0.5rem;
}
.wp-block-list.has-background > .wp-block-list-item {
margin-left: 2rem;
}
/* Block: Post Template ---------------- */
.editor-styles-wrapper ul.wp-block-post-template {

View File

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