add constrained paragraph style
This commit is contained in:
		@ -29,4 +29,14 @@ function lex_scotland_block_styles() {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        '
 | 
					        '
 | 
				
			||||||
    ) );
 | 
					    ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    register_block_style( 'core/paragraph', array(
 | 
				
			||||||
 | 
							'name'         => 'constrained',
 | 
				
			||||||
 | 
							'label'        => __( 'Constrained', 'lex-scotland' ),
 | 
				
			||||||
 | 
					        'inline_style' => '
 | 
				
			||||||
 | 
					            p.is-style-constrained {
 | 
				
			||||||
 | 
					                max-width: 50ch;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        '
 | 
				
			||||||
 | 
					    ) );
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user