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
2828class Initial a where initial :: a
2929class Unset a where unset :: a
3030
31+ class URL a where url :: String -> a
32+
3133-- | The other type class is used to escape from the type safety introduced by
3234-- embedding CSS properties into the typed world of purescript-css.
3335-- `Other` allows you to cast any `Value` to a specific value type.
@@ -47,6 +49,8 @@ instance otherValue :: Other Value where other = id
4749instance initialValue :: Initial Value where initial = fromString " initial"
4850instance unsetValue :: Unset Value where unset = fromString " unset"
4951
52+ instance urlValue :: URL Value where url s = fromString (" url(\" " <> s <> " \" )" )
53+
5054-- -----------------------------------------------------------------------------
5155
5256-- | Common list browser prefixes to make experimental properties work in
You can’t perform that action at this time.
0 commit comments