The available options and settings for Blocks don’t always allow you to create the appearance you’re after. Thankfully, Blocks include an Advanced panel which allows one or more CSS classes to be added to individual Blocks.

Classes can provide additional styling as defined in your theme. Having to remember class names and type them in isn’t ideal, but styling core Blocks can be a better option than installing a plethora of third party and custom blocks just to make styling modifications to core Blocks.
Where the same styling should be applied to every use of a Block, this can be set in the theme without the need for manually adding a class.
All Blocks
By default, all Blocks (excluding nested Blocks) have a margin added at the bottom. However, in some cases, eg, adjoining Group Blocks with colour backgrounds, you may want to remove the white spacing between blocks. To do this, you can add the class no-bottom-margin to the upper Block.
The LGD Callanish theme comes with several classes designed for optional styling of core Blocks. These are shown below.
Columns Block
By default, at narrow screen widths, columns will wrap so there are only 2 columns per row, with columns stacked in rows.
Where there are an odd number of columns, the block will by default span the final block over the 2 columns.
This can work well for text and some other content, but where, e.g., you have 3 columns each with a similar sized image, you end up with the third image being twice the width (and twice the height) of the other 2 images.
The theme accepts a custom class nocolspan for the Columns Block that can be added in the Advanced tab for the block. Make sure you apply the class to Columns, not an inner column or their content. This will keep the final column the same width as the others, but centred.

Media & Text Block
The Media & Text block has an image and text block side by side, with an option for the image to be on the left or right. To add some visual interest, we have several classes which can be applied to the block to give a sloping edge between the image and text.
clip10 & clip-10 : will add a sloping edge to images on the inner edge; note that as this is a percentage clip, the taller the image, the less the angle of the sloping edge; ensure that the class is applied to the outer block

← clip10

clip10 →

← clip-10

clip-10 →
skew10 & skew-10 : will add a sloping edge to images on the inner edge; note that as this is a skew, the taller the image, the more the image will be clipped; ensure that the class is applied to the outer block

← skew10

skew10 →

← skew-10

skew-10 →
Group Block or Cover Block Skew
The Group block is a container block for grouping together some standard blocks. The Group block can be given a colour background, as below. The Cover block contains a background image with overlaid text.
Adding the skew2 or skew-2 class to the Group block or Cover block gives it a sloping edge top and bottom.
skew2 : applied to the Group block or Cover block will apply a 2º slope to the top and bottom of the container
skew-2 : as skew2 but with the opposite slope
Any block containing one or more images
img-border : adds a thin border around images, useful where photos have near-white areas at the edge

Any block with text
text-shadow-black : adds a black text shadow to text, useful where large white text is overlaying an image; don’t use with smaller text

White text on light image with text-shadow-black
White text on light image without text-shadow-black
White text on light image with text-shadow-black
White text on light image without text-shadow-black
button-links : makes links within text style as buttons (for styling individual links see, General CSS Classes included with the theme).
All links within a block of text can be styled as small buttons using this class.
Cover Block
The Cover Block’s only height setting is for a minimum height in pixels, but you may want the block to fill the full screen height or half the height.
fullheight : sets the minimum height of the block to the screen height
halfheight : sets the minimum height of the block to half the screen height
Ensure that the class is applied to the outer block.

Full Height Cover Block

Half Height Cover Block with skew2
Wide and Full Width alignment of Paragraph blocks
The Wide and Full Width alignment options available for many blocks aren’t available for Paragraph blocks. However, the same effect can be achieved using the alignwide and alignfull classes. These styles aren’t reflected within the block editor but are applied in your web pages.
Wide Aligned paragraph
alignwide : will align paragraphs as the Wide Width setting does with other blocks; this will not be reflected in the editor due to limitations of the block editor
Full Width heading & paragraph
alignfull : will align paragraphs as the Full Width setting does with other blocks; this will not be reflected in the editor due to limitations of the block editor




