Commit 03847656 authored by Michael Iseard's avatar Michael Iseard
Browse files

Add alignfull and alignwide theme support

parent a1afddbb
...@@ -80,6 +80,12 @@ add_action( 'after_setup_theme', ...@@ -80,6 +80,12 @@ add_action( 'after_setup_theme',
*/ */
add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'customize-selective-refresh-widgets' );
/**
* Enable align-wide image block support
* @link https://developer.wordpress.org/block-editor/developers/themes/theme-support/#wide-alignment
*/
add_theme_support( 'align-wide' );
/** /**
* Use main stylesheet for visual editor * Use main stylesheet for visual editor
* @see resources/assets/styles/layouts/_tinymce.scss * @see resources/assets/styles/layouts/_tinymce.scss
......
...@@ -37,6 +37,17 @@ h3, ...@@ -37,6 +37,17 @@ h3,
} }
} }
.alignfull {
width: 100vw;
margin-left: calc(50% - 50vw);
}
.alignwide {
width: calc(100% + 20vw);
position: relative;
left: -10vw;
}
svg, svg,
img, img,
embed, embed,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment