浏览代码

Textbook: Fix issues with widget block centre alignment.

Laurel Fulford 6 年之前
父节点
当前提交
fc9763a325
共有 2 个文件被更改,包括 8 次插入6 次删除
  1. 3 2
      textbook/assets/css/blocks.css
  2. 5 4
      textbook/assets/css/editor-blocks.css

+ 3 - 2
textbook/assets/css/blocks.css

@@ -255,12 +255,13 @@ p.has-drop-cap:not(:focus)::first-letter {
 5.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
-/* Categories, Latest Posts & Archives */
+/* General Widget styles */
 
 .wp-block-categories.aligncenter,
 .wp-block-categories.aligncenter ul,
+.wp-block-archives.aligncenter,
 .wp-block-latest-posts.aligncenter,
-.wp-block-archives.aligncenter {
+.wp-block-latest-comments.aligncenter {
 	list-style-position: inside;
 	margin-left: 0;
 	margin-right: 0;

+ 5 - 4
textbook/assets/css/editor-blocks.css

@@ -554,14 +554,15 @@ p.has-drop-cap:not(:focus)::first-letter {
 6.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
-/* Categories, Latest Posts & Archives */
+/* General Widget styles */
 
-[data-align="center"] .wp-block-categories ul,
-[data-align="center"] .wp-block-latest-posts ul,
-[data-align="center"] .wp-block-archives ul {
+.edit-post-visual-editor [data-align="center"] .wp-block-categories__list,
+.edit-post-visual-editor [data-align="center"] .wp-block-archives,
+.edit-post-visual-editor [data-align="center"] .wp-block-lastest-posts {
 	list-style-position: inside;
 }
 
+
 /* Latest Comments */
 
 .wp-block-latest-comments {