ソースを参照

Canard: Fix issues with widget block centre alignments.

Laurel Fulford 6 年 前
コミット
37a2058f71
2 ファイル変更19 行追加0 行削除
  1. 11 0
      canard/blocks.css
  2. 8 0
      canard/editor-blocks.css

+ 11 - 0
canard/blocks.css

@@ -281,6 +281,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 */
 
 .editor-block-list__block .wp-block-latest-comments__comment-meta a {

+ 8 - 0
canard/editor-blocks.css

@@ -787,6 +787,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 {