瀏覽代碼

Apostrophe 2: Fix issues with widget block center alignments.

Laurel Fulford 6 年之前
父節點
當前提交
bdc2f3388b
共有 2 個文件被更改,包括 19 次插入0 次删除
  1. 11 0
      apostrophe-2/css/blocks.css
  2. 8 0
      apostrophe-2/css/editor-blocks.css

+ 11 - 0
apostrophe-2/css/blocks.css

@@ -386,6 +386,17 @@ hr.wp-block-separator {
 5.0 Blocks - Widget Blocks
 --------------------------------------------------------------*/
 
+/* General Widget styles */
+
+.wp-block-categories.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;
+}
+
 /* Latest Comments */
 
 .wp-block-latest-comments {

+ 8 - 0
apostrophe-2/css/editor-blocks.css

@@ -763,6 +763,14 @@
 6.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
+/* Categories & Archives */
+
+.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 */
 
 .editor-block-list__block .wp-block-latest-comments__comment-meta a {