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

This commit is contained in:
Laurel Fulford 2018-12-04 11:12:03 -08:00
parent bdc2f3388b
commit 13c6be77c5
2 changed files with 33 additions and 8 deletions

View file

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

View file

@ -21,7 +21,7 @@ Description: Gutenberg Block Editor Styles
.editor-styles-wrapper, .editor-styles-wrapper,
.editor-styles-wrapper p, .editor-styles-wrapper p,
.editor-styles-wrapper .mce-content-body { .editor-styles-wrapper .mce-content-body {
line-height: 1.6 !important; line-height: 1.6;
} }
.edit-post-visual-editor .editor-block-list__block, .edit-post-visual-editor .editor-block-list__block,
@ -41,13 +41,6 @@ Description: Gutenberg Block Editor Styles
margin-left: 24px; 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 */ /* Title */
.editor-post-title__block .editor-post-title__input { .editor-post-title__block .editor-post-title__input {
@ -512,6 +505,10 @@ pre.wp-block-verse {
outline: 5px solid #bbb; 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-file .wp-block-file__button,
.wp-block-button__link:not(.has-text-color), .wp-block-button__link:not(.has-text-color),
.wp-block-button__link:not(.has-text-color):active, .wp-block-button__link:not(.has-text-color):active,
@ -532,6 +529,7 @@ pre.wp-block-verse {
} }
/* Separator */ /* Separator */
.wp-block-separator { .wp-block-separator {
background-color: #f3f3f3; background-color: #f3f3f3;
height: 2px; height: 2px;
@ -544,3 +542,15 @@ pre.wp-block-verse {
.wp-block-separator.is-style-dots::before { .wp-block-separator.is-style-dots::before {
color: #ccc; 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;
}