Skip to content

Commit

Permalink
ListStyleType to new Clay.List
Browse files Browse the repository at this point in the history
  • Loading branch information
Heather committed Jun 19, 2014
1 parent 1cc4214 commit 1bdd69e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Clay.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module Clay
, module Clay.Geometry
, module Clay.Gradient
, module Clay.Text
, module Clay.List
, module Clay.Transform
, module Clay.Transition
, module Clay.Animation
Expand Down Expand Up @@ -139,6 +140,7 @@ import Clay.Geometry
import Clay.Gradient
import Clay.Size
import Clay.Text hiding (pre)
import Clay.List
import Clay.Transform
import Clay.Transition
import Clay.Animation
Expand Down
24 changes: 24 additions & 0 deletions src/Clay/List.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-}
module Clay.List
( listStyleType
, disc
, decimal
, hiragana
)
where

import Clay.Common
import Clay.Property
import Clay.Stylesheet

newtype ListStyleType = ListStyleType Value
deriving (Val, Auto, Inherit, Other)

disc, decimal, hiragana :: ListStyleType

disc = ListStyleType "disc"
decimal = ListStyleType "decimal"
hiragana = ListStyleType "hiragana"

listStyleType :: ListStyleType -> Css
listStyleType = key "list-style-type"

0 comments on commit 1bdd69e

Please sign in to comment.