Add wide/full support and front-end styles.
This commit is contained in:
parent
c5e0ab87f3
commit
b15843befd
2 changed files with 13 additions and 3 deletions
|
@ -98,6 +98,12 @@ figure.alignfull,
|
|||
margin-left: auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery img.size-big,
|
||||
.wp-block-image img.size-big {
|
||||
margin: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Quote */
|
||||
|
||||
.wp-block-quote {
|
||||
|
@ -132,7 +138,6 @@ figure.alignfull,
|
|||
|
||||
.wp-block-quote.is-large,
|
||||
.wp-block-quote.is-style-large {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
.wp-block-quote.is-large,
|
||||
|
|
|
@ -50,6 +50,11 @@ function intergalactic_2_setup() {
|
|||
// Add support for responsive embeds.
|
||||
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(
|
||||
|
@ -79,12 +84,12 @@ function intergalactic_2_setup() {
|
|||
'color' => '#ffffff',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Blue', 'intergalactic-2' ),
|
||||
'name' => esc_html__( 'Purple', 'intergalactic-2' ),
|
||||
'slug' => 'blue',
|
||||
'color' => '#15b6b8',
|
||||
),
|
||||
array(
|
||||
'name' => esc_html__( 'Dark Blue', 'intergalactic-2' ),
|
||||
'name' => esc_html__( 'Dark Purple', 'intergalactic-2' ),
|
||||
'slug' => 'dark-blue',
|
||||
'color' => '#0c8384',
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue