From 5334a8dcca2704e800e11419de9c052db24d9ba8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 16 Feb 2021 19:09:55 +0000 Subject: [PATCH] Twenty Twenty: Make sure the RTL list styles are preserved after `npm run build`. Adjust the padding value for better consistency. Props desrosj, sabernhardt, ryelle, mukesh27. Fixes #52401. git-svn-id: https://develop.svn.wordpress.org/trunk@50359 602fd350-edb4-49c9-b593-d223f7449a82 --- .../twentytwenty/assets/css/editor-style-block-rtl.css | 2 +- .../themes/twentytwenty/assets/css/editor-style-block.css | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css index be90b267e7..488f8226fe 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block-rtl.css @@ -1081,7 +1081,7 @@ hr.wp-block-separator.is-style-dots::before { .editor-styles-wrapper ol.block-editor-block-list__block, .editor-styles-wrapper ul ul, .editor-styles-wrapper ol ul { - padding-right: 2em; + padding-right: 1.3em; } diff --git a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css index 1e334a4f07..66e662628e 100644 --- a/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css +++ b/src/wp-content/themes/twentytwenty/assets/css/editor-style-block.css @@ -1077,6 +1077,13 @@ 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 ul, +.editor-styles-wrapper ol ul { + padding-left: 1.3em; +} + /* X. Media Queries /* ------------------------------------------- */