Throughout the codebase, Bulma uses Sass mixins to enhance and facilitate the CSS output. While these mixins are mainly used within the context of Bulma, they are of course available for you to re-use in your own projects.
--- title: Mixins layout: documentation doc-tab: utilities doc-subtab: mixins breadcrumb: - home - documentation - utilities - utilities-mixins ---
Throughout the codebase, Bulma uses Sass mixins to enhance and facilitate the CSS output. While these mixins are mainly used within the context of Bulma, they are of course available for you to re-use in your own projects.
The arrow() mixin creates a down-facing arrow. The $color parameter defines the color of the arrow.
The hamburger() mixin creates a 16x16px set of 3 horizontal bars grouped within square. The dimensions of this square are defined by the $dimensions parameter.
The delete() mixin creates a 20x20px circle containing a cross. It comes with 3 modifiers: is-small, is-medium and is-large.
The loader() mixin creates a 1em spinning circle.
The block() mixin adds spacing below an element, but only if it's not the last child.
The $spacing parameter defines the value of the margin-bottom.
This element has a margin-bottom.
This element too.
Not this one because it's the last child.
{% endcapture %} {% include elements/snippet.html content=block %}
The fa() mixin creates a square inline-block element, ideal for containing a Font Awesome icon, or any other type of icon font.
The first $size parameter defines the icon font size.
The second $dimensions parameter defines the dimensions of the square container.