diff options
Diffstat (limited to 'stdlib/source/lux/data/format/css/query.lux')
-rw-r--r-- | stdlib/source/lux/data/format/css/query.lux | 134 |
1 files changed, 0 insertions, 134 deletions
diff --git a/stdlib/source/lux/data/format/css/query.lux b/stdlib/source/lux/data/format/css/query.lux deleted file mode 100644 index 6b1e57554..000000000 --- a/stdlib/source/lux/data/format/css/query.lux +++ /dev/null @@ -1,134 +0,0 @@ -(.module: - [lux (#- and or not) - [control - [parser - ["s" code]]] - [data - [text - ["%" format (#+ format)]]] - [macro - ["." template] - ["." code] - [syntax (#+ syntax:)]] - [type - abstract]] - ["." // #_ - ["#." value (#+ Value Length Count Resolution Ratio - Orientation Scan Boolean Update - Block-Overflow Inline-Overflow - Display-Mode Color-Gamut Inverted-Colors - Pointer Hover - Light Scripting Motion Color-Scheme)]]) - -(syntax: (text-identifier {identifier s.text}) - (wrap (list (code.local-identifier identifier)))) - -(abstract: #export Media - Text - - (def: #export media - (-> Media Text) - (|>> :representation)) - - (template [<media>] - [(`` (def: #export (~~ (text-identifier <media>)) - Media - (:abstraction <media>)))] - - ["all"] - ["print"] - ["screen"] - ["speech"] - )) - -(abstract: #export Feature - Text - - (def: #export feature - (-> Feature Text) - (|>> :representation)) - - (template [<feature> <brand>] - [(`` (def: #export ((~~ (text-identifier <feature>)) input) - (-> (Value <brand>) Feature) - (:abstraction (format "(" <feature> ": " (//value.value input) ")"))))] - - ["min-color" Count] - ["color" Count] - ["max-color" Count] - - ["min-color-index" Count] - ["color-index" Count] - ["max-color-index" Count] - - ["min-monochrome" Count] - ["monochrome" Count] - ["max-monochrome" Count] - - ["min-height" Length] - ["height" Length] - ["max-height" Length] - - ["min-width" Length] - ["width" Length] - ["max-width" Length] - - ["min-resolution" Resolution] - ["resolution" Resolution] - ["max-resolution" Resolution] - - ["aspect-ratio" Ratio] - ["max-aspect-ratio" Ratio] - ["min-aspect-ratio" Ratio] - - ["display-mode" Display-Mode] - ["color-gamut" Color-Gamut] - ["grid" Boolean] - ["orientation" Orientation] - ["overflow-block" Block-Overflow] - ["overflow-inline" Inline-Overflow] - ["scan" Scan] - ["update" Update] - ["inverted-colors" Inverted-Colors] - ["pointer" Pointer] - ["any-pointer" Pointer] - ["hover" Hover] - ["any-hover" Hover] - ["light-level" Light] - ["scripting" Scripting] - ["prefers-reduced-motion" Motion] - ["prefers-color-scheme" Color-Scheme] - ) - ) - -(abstract: #export Query - Text - - (def: #export query - (-> Query Text) - (|>> :representation)) - - (template [<name> <operator>] - [(def: #export <name> - (-> Media Query) - (|>> ..media (format <operator>) :abstraction))] - - [except "not "] - [only "only "] - ) - - (def: #export not - (-> Feature Query) - (|>> ..feature (format "not ") :abstraction)) - - (template [<name> <operator>] - [(def: #export (<name> left right) - (-> Query Query Query) - (:abstraction (format (:representation left) - <operator> - (:representation right))))] - - [and " and "] - [or " or "] - ) - ) |