Преглед изворни кода

Button 2: Fix issues with widget block centre alignments. Set line height when editing buttons.

Laurel Fulford пре 6 година
родитељ
комит
13c6be77c5
2 измењених фајлова са 33 додато и 8 уклоњено
  1. 15 0
      button-2/blocks.css
  2. 18 8
      button-2/editor-blocks.css

+ 15 - 0
button-2/blocks.css

@@ -320,11 +320,26 @@ hr.wp-block-separator {
 5.0 Blocks - Widgets
 --------------------------------------------------------------*/
 
+/* 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:not(.alignfull):not(.alignwide) {
 	margin-left: auto;
 	margin-right: auto;
 }
 
+/* Latest Posts */
+
 .wp-block-latest-posts.is-grid {
 	margin: 0;
 }

+ 18 - 8
button-2/editor-blocks.css

@@ -21,7 +21,7 @@ Description: Gutenberg Block Editor Styles
 .editor-styles-wrapper,
 .editor-styles-wrapper p,
 .editor-styles-wrapper .mce-content-body {
-	line-height: 1.6 !important;
+	line-height: 1.6;
 }
 
 .edit-post-visual-editor .editor-block-list__block,
@@ -41,13 +41,6 @@ Description: Gutenberg Block Editor Styles
 	margin-left: 24px;
 }
 
-.wp-block-columns.alignfull,
-.wp-block-latest-comments.alignfull,
-.editor-block-list__layout .editor-block-list__block[data-align=full] {
-	padding-left: 1.5em;
-	padding-right: 1.5em;
-}
-
 /* Title */
 
 .editor-post-title__block .editor-post-title__input {
@@ -512,6 +505,10 @@ pre.wp-block-verse {
 	outline: 5px solid #bbb;
 }
 
+.wp-block-button .editor-rich-text__tinymce.mce-content-body {
+	line-height: 14px;
+}
+
 .wp-block-file .wp-block-file__button,
 .wp-block-button__link:not(.has-text-color),
 .wp-block-button__link:not(.has-text-color):active,
@@ -532,6 +529,7 @@ pre.wp-block-verse {
 }
 
 /* Separator */
+
 .wp-block-separator {
 	background-color: #f3f3f3;
 	height: 2px;
@@ -544,3 +542,15 @@ pre.wp-block-verse {
 .wp-block-separator.is-style-dots::before {
 	color: #ccc;
 }
+
+/*--------------------------------------------------------------
+5.0 Blocks - Widgets
+--------------------------------------------------------------*/
+
+/* Categories, Archives & Latest Posts */
+
+.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;
+}