You can use one of the following display
classes:
block
flex
inline
inline-block
inline-flex
For example, here's how the is-flex
helper works:
---
title: Responsive helpers
layout: documentation
hide_categories: true
doc-tab: modifiers
doc-subtab: responsive-helpers
breadcrumb:
- home
- documentation
- modifiers
- modifiers-responsive-helpers
---
{% capture thead %}
{% endcapture %}
{% capture flex %}
Class
{% for breakpoint_hash in site.data.breakpoints %}
{% assign breakpoint = breakpoint_hash[1] %}
{{ breakpoint.name }}
{% endfor %}
{% if breakpoint.id == 'mobile' %}
Up to {{ breakpoint.to }}px
{% elsif breakpoint.id == 'fullhd' %}
{{ breakpoint.from }}px
and above
{% else %}
Between {{ breakpoint.from }}px
and {{ breakpoint.to }}px
{% endif %}
flex
visible
hidden
unchanged
You can use one of the following display
classes:
block
flex
inline
inline-block
inline-flex
For example, here's how the is-flex
helper works:
is-flex-mobile
|
{{ flex }}
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
||||
is-flex-tablet-only
|
{{ unchanged }}
{{ flex }}
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
||||
is-flex-desktop-only
|
{{ unchanged }}
{{ unchanged }}
{{ flex }}
{{ unchanged }}
{{ unchanged }}
||||
is-flex-widescreen-only
|
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
{{ flex }}
{{ unchanged }}
||||
Classes to display up to or from a specific breakpoint |
||||
---|---|---|---|---|
is-flex-touch
|
{{ flex }}
{{ flex }}
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
||||
is-flex-tablet
|
{{ unchanged }}
{{ flex }}
{{ flex }}
{{ flex }}
{{ flex }}
||||
is-flex-desktop
|
{{ unchanged }}
{{ unchanged }}
{{ flex }}
{{ flex }}
{{ flex }}
||||
is-flex-widescreen
|
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
{{ flex }}
{{ flex }}
||||
is-flex-fullhd
|
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
{{ unchanged }}
{{ flex }}
For the other display options, just replace is-flex
with is-block
is-inline
is-inline-block
or is-inline-flex
is-hidden-mobile
|
{{ hidden }}
{{ visible }}
{{ visible }}
{{ visible }}
{{ visible }}
||||
is-hidden-tablet-only
|
{{ visible }}
{{ hidden }}
{{ visible }}
{{ visible }}
{{ visible }}
||||
is-hidden-desktop-only
|
{{ visible }}
{{ visible }}
{{ hidden }}
{{ visible }}
{{ visible }}
||||
is-hidden-widescreen-only
|
{{ visible }}
{{ visible }}
{{ visible }}
{{ hidden }}
{{ visible }}
||||
Classes to hide up to or from a specific breakpoint |
||||
---|---|---|---|---|
is-hidden-touch
|
{{ hidden }}
{{ hidden }}
{{ visible }}
{{ visible }}
{{ visible }}
||||
is-hidden-tablet
|
{{ visible }}
{{ hidden }}
{{ hidden }}
{{ hidden }}
{{ hidden }}
||||
is-hidden-desktop
|
{{ visible }}
{{ visible }}
{{ hidden }}
{{ hidden }}
{{ hidden }}
||||
is-hidden-widescreen
|
{{ visible }}
{{ visible }}
{{ visible }}
{{ hidden }}
{{ hidden }}
||||
is-hidden-fullhd
|
{{ visible }}
{{ visible }}
{{ visible }}
{{ visible }}
{{ hidden }}