diff --git a/functions.php b/functions.php index 6b18e8c0..abc03b1e 100644 --- a/functions.php +++ b/functions.php @@ -34,7 +34,7 @@ function ucsc_setup() { /* * Load additional Core block styles. */ - $styled_blocks = array( 'core/button', 'core/columns', 'core/post-template', 'core/post-author', 'core/site-title', 'core/query-pagination', 'core/post-content', 'core/rss', 'core/post-title', 'core/post-comments', 'core/navigation', 'core/list', 'core/separator', 'core/latest-posts', 'core/quote', 'core/image', 'core/search', 'core/paragraph', 'ucscblocks/accordion', 'core/details' ); + $styled_blocks = array( 'core/button', 'core/columns', 'core/post-template', 'core/post-author', 'core/site-title', 'core/query-pagination', 'core/post-content', 'core/rss', 'core/post-title', 'core/post-comments', 'core/navigation', 'core/list', 'core/separator', 'core/latest-posts', 'core/quote', 'core/image', 'core/search', 'core/paragraph', 'ucscblocks/accordion', 'core/details','outermost/icon-block' ); foreach ( $styled_blocks as $block ) { $name = explode('/', $block); diff --git a/wp-blocks/icon-block.css b/wp-blocks/icon-block.css new file mode 100644 index 00000000..fc72ca1b --- /dev/null +++ b/wp-blocks/icon-block.css @@ -0,0 +1,3 @@ +.is-style-remove-hover a:hover { + transform: none; +} diff --git a/wp-blocks/styles.js b/wp-blocks/styles.js index 6bee4442..b8896a23 100644 --- a/wp-blocks/styles.js +++ b/wp-blocks/styles.js @@ -117,4 +117,9 @@ wp.domReady( () => { name: 'check', label: 'Check mark', } ); + // Style for outermost/icon-block + wp.blocks.registerBlockStyle( 'outermost/icon-block', { + name: 'remove-hover', + label: 'Remove hover', + } ); } );