Helper classes
Here is the complete list of helper classes that can be applied to elements in order to unlock new customization options.
Compact
The class of .compact
will reduce the padding top and bottom.
Code | Preview |
---|---|
|
Flush
The classes of .flush-top
and .flush-bottom
will remove the top and bottom padding respectively. Best used with sections.
Code | Preview |
---|---|
|
Section content.
|
Shadow
The class of .shadow
will add a shadow to an element.
Code | Preview |
---|---|
|
If you want, you can have a stronger shadow by using the additional class of .strong
.
Code | Preview |
---|---|
|
Round, circle and square
The .round
, .circle
and .square
helper classes are used to control the border radius of an element.
Helper classes
Class | Description | Code & preview |
---|---|---|
round |
Sets the border radius to 5px by default. |
![]() |
circle |
Sets the border radius to 50%. |
![]() |
square |
Sets the border radius to 0. |
![]() |
Alignment classes
Because Ascension is powered by flexbox, you can achieve some pretty advanced alignment by using a few dedicated alignment classes.
Text alignment
Text alignment can be achieved by using the following classes:
Class | Description | Code & preview |
---|---|---|
text-left |
Aligns the text to the left. |
The content goes here. |
text-center |
Aligns the text to the center. |
The content goes here. |
text-right |
Aligns the text to the right. |
The content goes here. |
Element alignment
Aligning elements is super easy. The only requirement is that they're placed in a parent that's styled with display: flex
. Otherwise, they have no context for alignment. The simplest way to achieve this is to use the grid system since the .grid
class is automatically set to flex mode.
Class | Description | Code & preview |
---|---|---|
center |
Aligns elements horizontally in the center. In this example, the cell is aligned in the center of the grid container. A solid background was added for clarity. |
Award-winning software that makes customers happy.Start a Free Trial |
right |
Aligns elements horizontally to the right. In this example, the cell is aligned to the right of the grid container. A solid background was added for clarity. |
Award-winning software that makes customers happy.Start a Free Trial |
distribute |
Equally distributes elements horizontally and aligns the first and last ones to the edges of the container. |
The first card.
The second card.
The third card.
|
top |
Aligns elements to the top, vertically. This is actually the default behaviour so using the class of top is optional. |
The first cell.
The second cell. This one contains more text and is a lot taller than the first cell.
|
middle |
Aligns elements to the middle, vertically. |
The first cell.
The second cell. This one contains more text and is a lot taller than the first cell.
|
bottom |
Aligns elements to the bottom, vertically. |
The first cell.
The second cell. This one contains more text and is a lot taller than the first cell.
|
Please note that individual cells can overwrite the parent alignment class by specifying a class of their own. Simply use one of the above classes on a cell to align that cell in any way you want.