---
title: Responsiveness
layout: documentation
doc-tab: overview
doc-subtab: responsiveness
breadcrumb:
- home
- documentation
- overview
- overview-responsiveness
variables_keys:
- gap
- tablet
- desktop
- widescreen
- fullhd
---
{% capture scss_code %}
// Disable the widescreen breakpoint
$widescreen-enabled: false
// Disable the fullhd breakpoint
$fullhd-enabled: false
{% endcapture %}
{% include anchor.html name="Vertical by default" %}
Every element in Bulma is mobile-first and optimizes for vertical reading, so by default on mobile:
columns
are stacked vertically
- the
level
component will show its children stacked vertically
- the
nav
menu will be hidden
You can however enforce the horizontal layout for both columns
or nav
by appending the is-mobile
modifier.
{% include anchor.html name="Breakpoints" %}
{% assign variables_file_url = "/blob/master/sass/utilities/initial-variables.sass#L46,L57" | prepend: site.data.meta.github %}
{% assign mixins_file_url = "/blob/master/sass/utilities/mixins.sass#L182,L226" | prepend: site.data.meta.github %}
Bulma has 5 breakpoints:
{% for breakpoint_hash in site.data.breakpoints %}
{% assign breakpoint = breakpoint_hash[1] %}
{{ breakpoint.id }}
: {% if breakpoint.id == 'mobile' %}up to {{ breakpoint.to }}px
{% else %}from {{ breakpoint.from }}px
{% endif %}
{% endfor %}
Bulma uses 9 responsive mixins:
{% for breakpoint_hash in site.data.breakpoints %}
{% assign breakpoint = breakpoint_hash[1] %}
{% case breakpoint.id %}
{% when 'mobile' %}
-
={{ breakpoint.id }}
until {{ breakpoint.to }}px
{% when 'fullhd' %}
-
={{ breakpoint.id }}
from {{ breakpoint.from }}px
{% else %}
-
={{ breakpoint.id }}
from {{ breakpoint.from }}px
-
={{ breakpoint.id }}-only
from {{ breakpoint.from }}px
and until {{ breakpoint.to }}px
{% if breakpoint.id == 'tablet' %}
-
=touch
until {{ breakpoint.to }}px
{% endif %}
{% endcase %}
{% endfor %}
By default, the $widecreen
and $fullhd
breakpoints are enabled. You can disable them by setting the corresponding Sass boolean to false
:
You can use these variables to customize the responsive breakpoints. Simply set one or multiple of these variables before importing Bulma. Learn how.