Explorar el Código

Add wide/full support and front-end styles.

Caroline Moore hace 6 años
padre
commit
b15843befd
Se han modificado 2 ficheros con 13 adiciones y 3 borrados
  1. 6 1
      intergalactic-2/blocks.css
  2. 7 2
      intergalactic-2/functions.php

+ 6 - 1
intergalactic-2/blocks.css

@@ -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,

+ 7 - 2
intergalactic-2/functions.php

@@ -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',
 			)