aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/data/format/css.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/data/format/css.lux')
-rw-r--r--stdlib/source/library/lux/data/format/css.lux24
1 files changed, 12 insertions, 12 deletions
diff --git a/stdlib/source/library/lux/data/format/css.lux b/stdlib/source/library/lux/data/format/css.lux
index 488ccba64..90cb8ad54 100644
--- a/stdlib/source/library/lux/data/format/css.lux
+++ b/stdlib/source/library/lux/data/format/css.lux
@@ -49,19 +49,19 @@
(def: .public (font font)
(-> Font (CSS Special))
- (let [with_unicode (case (value@ #/font.unicode_range font)
- {#.Some unicode_range}
- (let [unicode_range' (format "U+" (\ nat.hex encoded (value@ #/font.start unicode_range))
- "-" (\ nat.hex encoded (value@ #/font.end unicode_range)))]
+ (let [with_unicode (case (value@ /font.#unicode_range font)
+ {.#Some unicode_range}
+ (let [unicode_range' (format "U+" (\ nat.hex encoded (value@ /font.#start unicode_range))
+ "-" (\ nat.hex encoded (value@ /font.#end unicode_range)))]
(list ["unicode-range" unicode_range']))
- #.None
+ {.#None}
(list))]
- (|> (list& ["font-family" (value@ #/font.family font)]
- ["src" (format "url(" (value@ #/font.source font) ")")]
- ["font-stretch" (|> font (value@ #/font.stretch) (maybe.else /value.normal_stretch) /value.value)]
- ["font-style" (|> font (value@ #/font.style) (maybe.else /value.normal_style) /value.value)]
- ["font-weight" (|> font (value@ #/font.weight) (maybe.else /value.normal_weight) /value.value)]
+ (|> (list& ["font-family" (value@ /font.#family font)]
+ ["src" (format "url(" (value@ /font.#source font) ")")]
+ ["font-stretch" (|> font (value@ /font.#stretch) (maybe.else /value.normal_stretch) /value.value)]
+ ["font-style" (|> font (value@ /font.#style) (maybe.else /value.normal_style) /value.value)]
+ ["font-weight" (|> font (value@ /font.#weight) (maybe.else /value.normal_weight) /value.value)]
with_unicode)
(list\each (function (_ [property value])
(format property ": " value ";")))
@@ -74,10 +74,10 @@
(-> URL (Maybe Query) (CSS Special))
(:abstraction (format (format "@import url(" (%.text url) ")")
(case query
- {#.Some query}
+ {.#Some query}
(format " " (/query.query query))
- #.None
+ {.#None}
"")
";")))