Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon class as a container:
Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon class as a container:
The icon container will take up exactly 1.5rem x 1.5rem. The icon itself is sized at 1em.
The Bulma icon container should always be slightly bigger than the font-size used. For example, Font Awesome icons use a font-size of 1em by default, but provides additional sizes.
| Container class | Container size | Font Awesome class | Icon size | Result |
|---|---|---|---|---|
icon is-small
|
1rem x 1rem
|
fa
|
1em
|
|
icon
|
1.5rem x 1.5rem
|
fa
|
1em
|
|
icon is-medium
|
2rem x 2rem
|
fa
|
1em
|
|
fa fa-lg
|
1.33em
|
|||
fa fa-2x
|
2em
|
|||
icon is-large
|
3rem x 3rem
|
fa
|
1em
|
|
fa fa-lg
|
1.33em
|
|||
fa fa-2x
|
2em
|
|||
fa fa-3x
|
3em
|
Font Awesome also provides modifier classes for:
| Type | Font Awesome class | Result |
|---|---|---|
| Fixed width |
fa fa-fw
|
|
| Bordered |
fa fa-border
|
|
| Animated |
fa fa-refresh fa-spin
|
|
| Rotated & flipped |
fa fa-shieldfa fa-shield fa-rotate-90fa fa-shield fa-rotate-180fa fa-shield fa-rotate-270fa fa-shield fa-flip-horizontalfa fa-shield fa-flip-vertical
|
|
| Stacked | {% highlight html %} {% endhighlight %} | |
| {% highlight html %} {% endhighlight %} |