ソースを参照

Photos: Fix issues with widget blocks centre alignments, and text alignments for full alignment. Add styles to the default placeholder.

Laurel Fulford 6 年 前
コミット
2162de1ff3
2 ファイル変更33 行追加5 行削除
  1. 14 1
      photos/blocks.css
  2. 19 4
      photos/editor-blocks.css

+ 14 - 1
photos/blocks.css

@@ -428,12 +428,25 @@ Widgets
 
 .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;
 	text-align: center;
 }
 
+.wp-block-categories.alignfull,
+.wp-block-archives.alignfull,
+.wp-block-latest-posts.alignfull {
+	text-align: left;
+}
+
+.rtl .wp-block-categories.alignfull,
+.rtl .wp-block-archives.alignfull,
+.rtl .wp-block-latest-posts.alignfull {
+	text-align: right;
+}
+
 /* Latest comments */
 
 .wp-block-latest-comments {

+ 19 - 4
photos/editor-blocks.css

@@ -15,10 +15,15 @@ Description: Gutenberg Block Editor Styles
 /*--------------------------------------------------------------
 1.0 General Typography
 --------------------------------------------------------------*/
+.block-editor .editor-styles-wrapper,
+.block-editor .editor-styles-wrapper p,
+.editor-default-block-appender textarea.editor-default-block-appender__content {
+	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
+}
+
 .block-editor .editor-styles-wrapper,
 .block-editor .editor-styles-wrapper p {
 	color: #111;
-	font-family: -apple-system, "SF Pro Text", BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;
 	font-size: 16px;
 	line-height: 1.5 !important;
 }
@@ -764,9 +769,9 @@ blockquote p:last-child {
 	padding-left: 1em;
 }
 
-[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;
 }
 
@@ -777,3 +782,13 @@ blockquote p:last-child {
 	padding-right: 1em;
 }
 
+/* Latest Comments */
+
+[data-align="full"] .wp-block-latest-comments {
+	text-align: left;
+}
+
+.rtl [data-align="full"] .wp-block-latest-comments.alignfull {
+	text-align: right;
+}
+