Responsive controls
The editorResponsive controls
Tune how each block behaves on mobile.
mobile_styles, per-block overrides applied under a mobile media queryhide_mobile/hide_desktop, show a block only where it belongs- Stack-on-mobile for columns
Preview both breakpoints from the toolbar, see editor behavior.
Where the breakpoint is
Mobile rules apply at screen widths up to body.mobile_breakpoint, 620px by default (the schema accepts 320 to 1600). Below it every row's columns stack to full width, so there is no separate stack setting to turn on. Buttons also fill the column on phones unless the button sets mobile_full_width: false.
What mobile_styles accepts
A block's Mobile tab sets a mobile font size (8 to 80px), colour, line height, letter spacing, alignment and padding; Divider, Spacer and HTML blocks get padding and Hide on Mobile. In the design JSON you can set any CSS property:
{
"type": "heading",
"values": { "text": "Big sale", "font_size": 32 },
"mobile_styles": { "font-size": "22px", "text-align": "center" }
}Property names can be kebab-case or camelCase. Each rule gets !important and applies to the block and everything inside it. A value that contains url(, expression(, @import or javascript: is dropped.
Rows have hide_desktop and hide_mobile in their settings too, to hide a whole row.
On the Mobile tab, a Button also takes button_background_color, button_width (auto or a percent), button_padding_top / _right / _bottom / _left, button_border_style / _width / _color and button_radius; an Image or GIF takes image_width (auto or a percent); a Table takes table_header_font_size, table_footer_font_size and table_border_style / _width / _color. These keys style the button, picture or cells, not the whole block.
The Row panel has a Mobile tab too. It writes row.settings.mobile_styles (background_color, content_background_color, background_image, padding_top / _right / _bottom / _left) and each column's settings.mobile_styles (background_color, the four paddings, border_style, border_width, border_color). Do Not Stack on Mobile (row.settings.no_stack_mobile) keeps the columns side by side on phones, each at its desktop share; Unlayer's noStackMobile imports as it.