{% extends "layout/_layout.html" %} {% set page_title = 'Responsive utilites' %} {% block main %}

Responsive utilites

Mw-grid has 2 utilites for responsive display (show/hide) elements. They are CSS-classes ".*hidden" and ".*visible", which add display: none;

'Hidden' show on small and hide on large up from breakpoint (Hide up)
'Visible' show on large and hide on small down from breakpoint (Hide down)

  • ".*hidden" use media min-width to hide
  • ".*visible" use media max-width to hide
  • Mix 'Hidden' and 'Visible' to show on one device only
  • These classes add left and right paddings (columns gap) to element. You can use ".collapse" to reset it when you need

With default breakpoints it looks like this:

Mobile Vertical (mv_)
320px
Mobile Horizontal (mh_)
576px
Tablets (tb_)
768px
Desktops (ds_)
1024px
High Definition (hd_)
1366px
".mv_hidden" hide hide hide hide hide
".mh_hidden" show hide hide hide hide
".tb_hidden" show show hide hide hide
".ds_hidden" show show show hide hide
".hd_hidden" show show show show hide

Mobile Vertical (mv_)
320px
Mobile Horizontal (mh_)
576px
Tablets (tb_)
768px
Desktops (ds_)
1024px
High Definition (hd_)
1366px
".mv_visible" show show show show show
".mh_visible" hide show show show show
".tb_visible" hide hide show show show
".ds_visible" hide hide hide show show
".hd_visible" hide hide hide hide show
Mobile Vertical (mv_)
320px
Mobile Horizontal (mh_)
576px
Tablets (tb_)
768px
Desktops (ds_)
1024px
High Definition (hd_)
1366px
".mv_visible" hide hide hide hide hide
".mh_visible" show hide hide hide hide
".tb_visible" show show hide hide hide
".ds_visible" show show show hide hide
".hd_visible" hide hide hide hide show
{% include "blocks/responsive-utilites/view/_responsive-utilites.html" %}
{% endblock %}