def css.media.query
gralha-css-style@0.1.0.1 · css.bend:328
import gralha-css-style@0.1.0.1/css.bend as Css
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
328def css.media.query(+s: String, +w: F32, +h: F32) -> Bool:
329 match s:
330 case SNil{}: True{}
331 case SCon{Chr{c}, t}:
332 U.branch(Bool, U.space(c), _ => css.media.query(t, w, h),
333 _ => U.branch(Bool, U32.is_eq(c, 40), _ => css.media.parens(css.scan(t, 41), w, h, rest => css.media.query(rest, w, h)),
334 _ => css.media.word(css.ident(s, ""), rest => css.media.query(rest, w, h))))