AEM Component Styles

Listed below are the styles that can applied to specific components in AEM.

To apply a style, type the style name into the CSS Class field when editing a component. Style names are case sensitive

Text styles

Apply these styles to the Text component in AEM.

View text style samples

button
Turns a hyperlinked paragraph text into a call-to-action button. The width of the button depends on the length of copy. On mouseover, the button goes from transparent with a red border to solid red. On red block the button is transparent with a white border and turns solid white on hover. 

button alt
Turns a hyperlinked paragraph text into a secondary call-to-action button. The width of the button depends on the length of copy. On mouseover, the button goes from solid red to transparent with a red border. On red block the button is solid white and turns trasparent with a white border on hover. 

button-full
Turns a hyperlinked paragraph text into a call-to-action button that stretches to the full width of the column. On mouseover, the button goes from transparent with a red border to solid red. On red block the button is transparent with a white border and turns solid white on hover. 

button-full alt
Turns a hyperlinked paragraph text into a secondary call-to-action button that stretches to the full width of the column. On mouseover, the button goes from solid red to transparent with a red border. On red block the button is solid white and turns trasparent with a white border on hover.

footnote
Reduces the font size to 12px and adds a dividing horizontal line above.

graphics
Displays text in light red brand colour #CC0633. Can be used with 1, 2 or 3 paragraphs:

  • First paragraph uses a large infographics font.
  • Second paragraph uses the H3 style.
  • Third paragraph uses the H3 style and is separated from the second paragraph by a line.2

graphics-red
Same as graphics but displays all fonts using dark red brand colour.2

graphics-mid
Displays text in light red brand colour #CC0633. Can be used with 2 or 3 paragraphs:

  • First paragraph uses the H3 style.
  • Second paragraph uses a large infographics font.
  • Third paragraph uses the H3 style.2

graphics-mid-red
Same as graphics-mid but displays all fonts using dark red brand colour.2

graphics-left 
Displays text in light red brand colour #CC0633. To be used with 2 paragraphs only:

  • First paragraph uses a large infographics font and displays on the left.
  • Second paragraph uses the H3 style and displays to the right of the first paragraph.
  • If the text can't fit side-by-side, it will stack.2

graphics-left-red
Same as graphics-left but displays all fonts using dark red brand colour.2

graphics-right 
Displays text in light red brand colour #CC0633. To be used with 2 paragraphs only:

  • First paragraph uses the H3 style and displays on the left.
  • Second paragraph uses a large infographics font and displays to the right of the first paragraph.
  • If the text can't fit side-by-side, it will stack.2

graphics-right-red 
Same as graphics-left but displays all fonts using dark red brand colour.2

hasFootnote
If added to a text component preceding the text component with a footnote, it will close the gap in the left vertical line when both of these components acts as toggleContent.

header-l
Increases the size of an H2 to 48px on a page using a home page template only.

header-xl
Increases the size of an H2 to 60px on a page using a home page template only.

intro
Increases the font size to 24px with a line-height of 36px. An ideal line length is less than 54 characters.

more
Decreases the font size of the last hyperlinked text that's in an individual paragraph, transforms it to upper case, turns it red and adds an arrow (→). 1

more-all
Decreases the font size of all hyperlinks that are in individual paragraphs, transforms it to upper case, turns it red and adds an arrow (→). 1

outline
Adds a thin border/frame around your copy.

quote
Adds a pull quote with a red background to your pages or news stories. Use paragraph text for the body of the quote and "Heading 5" for the name attribute, and apply bold treatment to the name. The pull quote can also be used with a red or grey block in a Column Control component.

quote-grey
Adds a pull quote with a grey background to your pages or news stories. Use paragraph text for the body of the quote and "Heading 5" for the name attribute, and apply bold treatment to the name. The pull quote can also be used with a red or grey block in a Column Control component.

relatedTopics
Can be applied to an unordered list within a Text component. Creates a list of items separated by a dividing line with a grey bar on the left side to separate it from the main content area.

col-2, col-3, col-4
Splits a bulleted /unordered list into columns on large screens. On small screens the list will be shown in one column by default. In addition, the following prefixes are available:
md, mds, sm - these must be used with one of the above classes, eg:
col-4 md-col-2 - will display 4 columns on large, 2 on medium, 1 on small

1 Also works in a Text & Image component.

2 If you're using any of the graphics CSS Classes, you can add align-bottom CSS Class to the Column Control component to bottom align your infographics in multiple columns.

Tip:  Within a text component, you can apply styles to individual elements such as headings, links and paragraphs. These styles can be applied by switching to HTML mode in the Text component box and adding a class attribute (e.g., <p class="intro">).

Column styles

Apply these styles to the Columns component in AEM.

View column style samples

red block / grey block / light-red block
Changes a background colour that extends across the entire width of the component.

To create columns with different background colours within one Column Control component, each column colour must be defined. To leave a column with a white background, you do not need to define it as it is by default white.

To define individual column colour add the following to your CSS Style field:

  • block
  • col-1-red (1 defines the order of column from the left - could be 1, 2, 3, or 4; red defines the colour - could be grey or light-red)

content-narrow 
Stretches the background full-width and keeps the content within the narrow non-full-width grid on large screens (1420px and up) when full-width is selected and block red/grey is used.

md-stack and mds-stack 
Stacks all columns on top of each other at the medium or medium-small screen size, respectively.

md-stack-first and mds-stack-first 
Stretches the first column to 100% of the screen width with the other two columns stacked underneath at 50% and 50% (side-by-side).

md-stack-last and mds-stack-last
Stretches the last column to 100% of the screen width with the other two columns stacked above at 50% and 50% (side-by-side).

md-stack-last-first and mds-stack-last-first
Stacks components from the last (second) column first, and components from the first column last when placed in a 2-column control component. These classes don’t work in a 1, 3 or 4 column layout.

Generic styles

These styles can be applied to most components in AEM.

margin-all
Adds a 50px margin to all four sides of the component.

margin-top
Adds a 50px margin above the component.

margin-bottom
Adds a 50px margin below the component.

margin-top-bottom
Adds a 50px margin above and below the component.

margin-left
Adds a 50px margin to the left of the component.**

margin-right
Adds a 50px margin to the right of the component.**

margin-left-right
Adds a 50px margin to the left and right of the component.  

pad-all
Adds a 50px padding to all four sides of the component.*

pad-top
Adds a 50px padding above the component.*

pad-bottom
Adds a 50px padding below the component.*

pad-top-bottom
Adds a 50px padding above and below the component.*

pad-left
Adds a 50px padding to the left of the component.*

pad-right
Adds a 50px padding to the right of the component.*

pad-left-right
Adds a 50px padding to the left and right of the component.*

* All pad styles can be used on specific screen sizes by adding lg-, md-, mds- or sm- in front of the CSS class, ie. lg-pad-left - adds 50px padding to the left of the component on large screens only. This cannot be applied to a Column Control component.

** Cannot be applied to a Column Control component that's not set to Full Width.

ruled
Places a grey border above the element (typically a paragraph or header)

ruled-below
Places a grey border below the element (typically a paragraph or header)

ruled-thin
Places a thin grey border above the element (typically a paragraph or header).

ruled-below-thin
Places a thin grey border below the element (typically a paragraph or header).

mobile
Displays the element on mobile-size screens only (up to 527px)

tablet
Displays the element on tablet-size screens only (528px to 979px)

desktop
Displays the element on desktop-size screens only (980px and above)

List styles

Apply these styles to the List component in AEM.

View list style samples

col-2
Splits the list into two columns on large screens.

col-3
Splits the list into three columns on large screens.

col-4
Splits the list into four columns on large screens.

Apply these styles to the Configurable View in the List component in AEM.

date-above
Displays the date above the title. 

date-overlay
Overlays the date on top of the image aligned to the bottom. It can also be used with the date-above class to align the date with the top of the image. 

stack
Stacks all fields on top of each other instead of showing the image and content side by side. The title and date are displayed above the image.

Text & Image styles

Apply these styles to the Text & Image component in AEM.

View Text & Image Style Samples

wrap-text
Wraps text around the image.

overlay
Sets the image to occupy 100% of the container width and overlays the text with a semi-transparent black background on the image. You can use Heading 2-Heading 5 or Paragraph to format the text.

overlay-banner
Creates a text overlay with a red background and white heading font. In addition to a heading, you can also display one paragraph and/or button alt.

overlay-banner text-right
Creates a text overlay with a red background which is aligned to the right of the image. See overlay-banner above for more details.

overlay-banner-white
Creates a text overlay with a white background and red heading font. In addition to a heading, you can also display one paragraph and/or button alt.

overlay-banner-white text-right
Creates a text overlay with a white background and red heading font which is aligned to the right of the image. See overlay-banner-white above for more details.

overlay-bottom
Adds a full-width, bottom-aligned red background with text over it. You can use Headings 1-5 or Paragraph to format the text.

overlay-full
Displays text on the left of the image in white font and no background. You can use Headings 1-H5 or Paragraph to format the text.

Note: When a URL is added to the Advanced Image Properties, the image will be clickable.