Skip to content

Commit 51632cc

Browse files
authored
Merge pull request #54 from alexmingoia/topic/border-rules
Add border rules.
2 parents e8a1da9 + 74df108 commit 51632cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/CSS/Border.purs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ outset = Stroke $ fromString "outset"
5050
border :: Stroke -> Size Abs -> Color -> CSS
5151
border a b c = key (fromString "border") $ tuple3 a b c
5252

53+
borderTop :: Stroke -> Size Abs -> Color -> CSS
54+
borderTop a b c = key (fromString "border-top") $ tuple3 a b c
55+
56+
borderBottom :: Stroke -> Size Abs -> Color -> CSS
57+
borderBottom a b c = key (fromString "border-bottom") $ tuple3 a b c
58+
59+
borderLeft :: Stroke -> Size Abs -> Color -> CSS
60+
borderLeft a b c = key (fromString "border-left") $ tuple3 a b c
61+
62+
borderRight :: Stroke -> Size Abs -> Color -> CSS
63+
borderRight a b c = key (fromString "border-right") $ tuple3 a b c
64+
5365
borderColor :: Color -> CSS
5466
borderColor = key $ fromString "border-color"
5567

0 commit comments

Comments
 (0)