浏览代码

Gazette: Fix issues with widget block centre alignemnts.

Laurel Fulford 6 年之前
父节点
当前提交
0ff9f88b01
共有 2 个文件被更改,包括 11 次插入9 次删除
  1. 6 3
      gazette/css/blocks.css
  2. 5 6
      gazette/css/editor-blocks.css

+ 6 - 3
gazette/css/blocks.css

@@ -184,11 +184,14 @@ p.has-drop-cap:not(:focus)::first-letter {
 5.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
-/* Archives, Categories & Latest Posts */
+/* General Widget styles */
 
-.wp-block-archives.aligncenter,
 .wp-block-categories.aligncenter,
-.wp-block-latest-posts.aligncenter {
+.wp-block-categories.aligncenter ul,
+.wp-block-archives.aligncenter,
+.wp-block-latest-posts.aligncenter,
+.wp-block-latest-comments.aligncenter {
+	list-style-position: inside;
 	text-align: center;
 }
 

+ 5 - 6
gazette/css/editor-blocks.css

@@ -518,13 +518,12 @@ p.has-drop-cap:not(:focus)::first-letter {
 6.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
-/* Archives, Categories & Latest Posts */
+/* General Widget styles */
 
-.editor-styles-wrapper .wp-block-archives ul,
-.editor-styles-wrapper .wp-block-categories ul,
-.editor-styles-wrapper .wp-block-categories ul ul,
-.editor-styles-wrapper .wp-block-latest-posts ul {
-	list-style: square inside;
+.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 */