Add full and wide block support; Minor tweaks to classic editor styles.
This commit is contained in:
parent
977322308c
commit
987cd3aded
3 changed files with 19 additions and 2 deletions
|
@ -55,8 +55,8 @@ figure.alignfull,
|
|||
.wp-block-cover.alignfull,
|
||||
.wp-block-gallery.alignfull,
|
||||
.wp-block-embed.is-type-video.alignfull {
|
||||
width: 100vw;
|
||||
max-width: 100vw;
|
||||
width: calc(100vw - 40px); /* subtract 40px for body padding */
|
||||
max-width: calc(100vw - 40px);
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
position: relative;
|
||||
|
|
|
@ -459,6 +459,18 @@
|
|||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol {
|
||||
list-style: decimal;
|
||||
margin-left: 0;
|
||||
padding-left: 40px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.wp-block-freeform.block-library-rich-text__tinymce ol {
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-freeform.block-library-rich-text__tinymce blockquote {
|
||||
padding-left: 40px;
|
||||
margin: 0;
|
||||
|
|
|
@ -65,6 +65,11 @@ function illustratr_setup() {
|
|||
*/
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
/**
|
||||
* Gutenberg wide and full images support
|
||||
*/
|
||||
add_theme_support( 'align-wide' );
|
||||
|
||||
// Add custom colors to Gutenberg
|
||||
add_theme_support(
|
||||
'editor-color-palette', array(
|
||||
|
|
Loading…
Reference in a new issue