Skip to main content

Waterfall System

Core Concept

Block attributes initially adopt desktop values as their default. These values are inherited by smaller viewports unless overridden by specific settings for those smaller sizes. In essence, values flow from larger to smaller viewports in a cascading manner. However, the cascade is always down; values do not flow upward.

  1. Green means that the value is inherited from a larger viewport.
  2. Blue means that the value is overridden for the current viewport.

Waterfall

Examples

Below we have a table with a examples of how values cascade when set in various viewports.

Desktop Mode Only

ViewportValue
Desktopmax-height: 100px;
Tabletmax-height: 100px;
Mobilemax-height: 100px;

Tablet Mode

ViewportValue
Desktopmax-height: 100px;
Tabletmax-height: 25px;
Mobilemax-height: 25px;

Mobile Mode

ViewportValue
Desktopmax-height: 100px;
Tabletmax-height: 100px;
Mobilemax-height: 10px;

Multiple modes

ViewportValue
Desktopmax-height: 100px;
Tabletmax-height: 25px;
Mobilemax-height: 10px;