The Aldrich templates include template includes a number of classes that are available for you to use in WYSIWYG content and in your customizations.
...
Info |
---|
Button classes can be applied to both button and link elements (<button> and <a>, respectively). |
Modifier class | What this does | Notes |
---|---|---|
button--outline | Button type modifier. Defines an outlined button. | Do not combine with other button type modifier classes. |
button--solid | Button type modifier. Defines a solid button. | Do not combine with other button type modifier classes. |
button--blue | Color modifier. Colors the button blue. | Do not combine with other color modifiers. |
button--gold | Color modifier. Colors the button gold. | Do not combine with other color modifiers. |
button--gray | Color modifier. Colors the button gray. | Do not combine with other color modifiers. |
Examples
...
Code Block |
---|
<button class="button button--outline button--blue">button</button> |
...
Code Block |
---|
<a href="..." class="button button--solid button--gold">link</a> |
...
Info |
---|
Image classes can be used with both image and figure elements (<img> and <figure>, respectively) |
Modifier class | What this does | Notes |
---|---|---|
image--align-center | Centers the image on its own line. | Do not combine with other alignment modifiers. |
image--align-left | Aligns the image left with surrounding content wrapping around the image’s right side. | Do not combine with other alignment modifiers. |
image--align-right | Aligns the image right with surrounding content wrapping around the image’s left side. | Do not combine with other alignment modifiers. |
Examples
...
Code Block |
---|
<img src="..." alt="..." class="image image--align-center"/> |
...
Note |
---|
When working with figure elements, things will turn out weird if the image classes are applied to the nested image element instead of the figure element itself. Be sure select the figure and not the image! → Details: Selecting elements in WYSIWYGs |
Lists
...
Want a stylized list? Simply add the list class to any list element (<ul> or <ol>).
...
Info |
---|
Lists can be tricky to select in WYSIWYGs. → Details: Selecting elements in WYSIWYGs |
Panels
Panels help content stand out by applying a border and background color. The base class panel is required here along with a color modifier class.
Modifier class | What this does | Notes |
---|---|---|
panel--gray | Colors the panel gray. | Do not combine with other color modifiers. |
panel--yellow | Colors the panel yellow. | Do not combine with other color modifiers. |
Examples
...
Code Block |
---|
<p class="panel panel--gray">...</p> |
...
Info |
---|
How do I select the blockquote element? → Details: Selecting elements in WYSIWYGs |
Separators
Separators are stylized horizontal rule elements and serve to break up content visually.
All separators require the base class separator combined with two modifier classes. One modifier class will define the separator alignment, and the second modifier class will define the color.
Modifier class | What this does | Notes |
---|---|---|
separator--left | Aligns the separator to the left. | Do not combine with other alignment modifier classes. |
separator--center | Centers the separator. | Do not combine with other alignment modifier classes. |
separator--blue | Color modifier. Colors the separator blue. | Do not combine with other color modifiers. |
separator--gold | Color modifier. Colors the separator gold. | Do not combine with other color modifiers. |
separator--gray | Color modifier. Colors the separator gray. | Do not combine with other color modifiers. |
Examples
...
Code Block |
---|
<hr class="separator separator--center separator--gold"/> |
...
Code Block |
---|
<table class="table table--sortable">
<thead>
<tr>
<th scope="col">...</th>
...
</tr>
</thead>
<tbody>
<tr>
<td>...</td>
...
</tr>
...
</tbody>
</table> |
...
Code Block |
---|
<p class="text--emulate-h1">...</p> <p class="text--emulate-h2">...</p> <p class="text--emulate-h3">...</p> <p class="text--emulate-h4">...</p> <p class="text--emulate-h5">...</p> <p class="text--emulate-h6">...</p> |
Animating links
The following classes will cause links to animate on hover and focus:
text--animated-links
text--animated-links-boderless
text--animated-link
text--animated-link-borderless
What’s the difference?
Classes text--animated-links and text--animated-links-borderless are applied to container elements (e.g., <div>, <p>, etc.) and apply hover/focus animations to all links within that element (note the plural links in the class name). Classes text--animated-link and text--animated-link-borderless are applied directly to <a> elements and affect only the elements they are applied to (note the singular link in the class name).
Code Block |
---|
<!-- Apply animations to all links -->
<p class="text--animated-links">
Be a hero - <a href="...">adopt a homeless animal</a> or <a href="...">make a monetary donation</a>.
</p>
<!-- Apply animation to a specific link -->
<p>
Be a hero - <a class="text--animated-link" href="...">adopt a homeless animal</a> or <a href="...">make a monetary donation</a>.
</p> |
Classes with the -borderless suffix have no border treatment applied in the links off state, whereas classes without the -borderless suffix will apply a bottom border in this case.
Info |
---|
WYSIWYGs apply link animations by default, so there is no need to use these classes there. These classes are most helpful in custom widgets and layouts. → Detail: Creating custom widgets and layouts |