File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ class Hidden a where hidden :: a
28
28
class Initial a where initial :: a
29
29
class Unset a where unset :: a
30
30
31
+ class URL a where url :: String -> a
32
+
31
33
-- | The other type class is used to escape from the type safety introduced by
32
34
-- embedding CSS properties into the typed world of purescript-css.
33
35
-- `Other` allows you to cast any `Value` to a specific value type.
@@ -47,6 +49,8 @@ instance otherValue :: Other Value where other = id
47
49
instance initialValue :: Initial Value where initial = fromString " initial"
48
50
instance unsetValue :: Unset Value where unset = fromString " unset"
49
51
52
+ instance urlValue :: URL Value where url s = fromString (" url(\" " <> s <> " \" )" )
53
+
50
54
-- -----------------------------------------------------------------------------
51
55
52
56
-- | Common list browser prefixes to make experimental properties work in
You can’t perform that action at this time.
0 commit comments