We have created some pseudo element shorthand classes for frequently used unicode icons. These icons are commonly used with buttons and navigation to make UI more interactive
Example | Name | Class |
plus |
.before-plus |
|
minus |
.before-minus |
|
times |
.before-times |
|
times-large |
.before-times-large |
|
circle-plus |
.before-circle-plus |
|
circle-minus |
.before-circle-minus |
|
circle-times |
.before-circle-times |
|
hash |
.before-hash |
|
ellipsis |
.before-ellipsis |
|
ellipsis-midline |
.before-ellipsis-midline |
|
ellipsis-vertical |
.before-ellipsis-vertical |
|
arrow-left |
.before-arrow-left |
|
arrow-right |
.before-arrow-right |
|
arrow-up |
.before-arrow-up |
|
arrow-down |
.before-arrow-down |
|
triangle-left |
.before-triangle-left |
|
triangle-right |
.before-triangle-right |
|
triangle-up |
.before-triangle-up |
|
triangle-down |
.before-triangle-down |
|
asterisk |
.before-asterisk |
|
menu |
.before-menu |
|
checkmark |
.before-checkmark |
Use class .after-right
to float right .after-{icon}
available shorthands:
.after-left
.after-right
.before-left
.before-right
Pseudo elements inherits font-color and size.
Pseudo elements inherits font-size. But if you want to increase or decrease size, you can use scale class like .after-scale-up-3
Margin can be applied on pseudo elements, you can use margin class like .after-mr-5