浏览代码

Altofocus: Fix issues with widget block centre alignments.

Laurel Fulford 6 年之前
父节点
当前提交
55af5a15ce
共有 2 个文件被更改,包括 15 次插入2 次删除
  1. 5 2
      altofocus/assets/stylesheets/blocks.css
  2. 10 0
      altofocus/assets/stylesheets/editor-blocks.css

+ 5 - 2
altofocus/assets/stylesheets/blocks.css

@@ -278,11 +278,14 @@ hr.wp-block-separator {
 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-latest-posts.aligncenter,
+.wp-block-latest-comments.aligncenter {
+	list-style-position: inside;
 	text-align: center;
 }
 

+ 10 - 0
altofocus/assets/stylesheets/editor-blocks.css

@@ -563,12 +563,22 @@ p.has-drop-cap:not(:focus)::first-letter {
 	list-style: disc;
 }
 
+.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;
+}
+
 .editor-styles-wrapper .wp-block-archives li,
 .editor-styles-wrapper .wp-block-categories li,
 .editor-styles-wrapper .wp-block-latest-posts li {
 	margin-bottom: 0;
 }
 
+.editor-styles-wrapper .wp-block-latest-posts.is-grid {
+	list-style: none;
+}
+
 /*--------------------------------------------------------------
 7.0 Blocks - Animations
 --------------------------------------------------------------*/