Skip to main content

emit_adaptive

Function emit_adaptive 

Source
pub fn emit_adaptive(breakpoints: &[(u32, &Layout)]) -> String
Expand description

Emit CSS with @media wrappers for adaptive breakpoints.

Each entry is (min_width_px, layout). Breakpoints must be sorted ascending by min_width. The first breakpoint gets only a max-width query, the last gets only a min-width query, and middle breakpoints get both.