add arrow link style
This commit is contained in:
		@ -30,6 +30,19 @@ function lex_scotland_block_styles() {
 | 
				
			|||||||
        '
 | 
					        '
 | 
				
			||||||
    ) );
 | 
					    ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    register_block_style( 'core/paragraph', array(
 | 
				
			||||||
 | 
							'name'         => 'arrow-link',
 | 
				
			||||||
 | 
							'label'        => __( 'Arrow link', 'lex-scotland' ),
 | 
				
			||||||
 | 
					        'inline_style' => '
 | 
				
			||||||
 | 
					        p.is-style-arrow-link a:after {
 | 
				
			||||||
 | 
					            display: inline-block;
 | 
				
			||||||
 | 
					            content: "🡭";
 | 
				
			||||||
 | 
					            padding-inline-start: 0.25rem;
 | 
				
			||||||
 | 
					            vertical-align: middle;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        '
 | 
				
			||||||
 | 
					    ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    register_block_style( 'core/paragraph', array(
 | 
					    register_block_style( 'core/paragraph', array(
 | 
				
			||||||
		'name'         => 'constrained',
 | 
							'name'         => 'constrained',
 | 
				
			||||||
		'label'        => __( 'Constrained', 'lex-scotland' ),
 | 
							'label'        => __( 'Constrained', 'lex-scotland' ),
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user