File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ letterSpacing = key $ fromString "letter-spacing"
12
12
newtype TextDecoration = TextDecoration Value
13
13
14
14
derive instance eqTextDecoration :: Eq TextDecoration
15
- derive instance ordTextDecoration :: Ord TextDecoration
15
+ derive instance ordTextDecoration :: Ord TextDecoration
16
16
17
17
instance valTextDecoration :: Val TextDecoration where
18
18
value (TextDecoration v) = v
Original file line number Diff line number Diff line change
1
+ module CSS.TextDirection where
2
+
3
+ import Prelude
4
+ import CSS.Property (class Val , Value )
5
+ import CSS.String (fromString )
6
+ import CSS.Stylesheet (CSS , key )
7
+
8
+ newtype TextDirection = TextDirection Value
9
+
10
+ derive instance eqTextDirection :: Eq TextDirection
11
+ derive instance ordTextDirection :: Ord TextDirection
12
+
13
+ instance valTextDirection :: Val TextDirection where
14
+ value (TextDirection v) = v
15
+
16
+ direction :: TextDirection -> CSS
17
+ direction = key $ fromString " direction"
18
+
19
+ ltr :: TextDirection
20
+ ltr = TextDirection $ fromString " ltr"
21
+
22
+ rtl :: TextDirection
23
+ rtl = TextDirection $ fromString " rtl"
You can’t perform that action at this time.
0 commit comments