def css.media.result

gralha-css-style@0.1.0.1 · css.bend:318

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

318def css.media.result(+word: String, +result: Bool) -> Bool:
319  U.choose(Bool, U.string.equal(word, "not"), Bool.not(result),
320    (U.string.equal(word, "screen") || U.string.equal(word, "all") || U.string.equal(word, "and") || U.string.equal(word, "only")) && result)

Uses (7)

Used by (1)