clay 0.4 → 0.5
raw patch · 3 files changed
+24/−19 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Clay.Dynamic: instance All UserFocus
- Clay.Dynamic: instance None UserModify
- Clay.Dynamic: instance Other UserFocus
+ Clay.Dynamic: instance Auto UserFocus
+ Clay.Dynamic: selectAll :: UserFocus
- Clay.Border: borderRadius :: Size a -> Css
+ Clay.Border: borderRadius :: Size a -> Size a -> Size a -> Size a -> Css
Files
- clay.cabal +4/−8
- src/Clay/Border.hs +2/−2
- src/Clay/Dynamic.hs +18/−9
clay.cabal view
@@ -1,5 +1,5 @@ Name: clay-Version: 0.4+Version: 0.5 Synopsis: CSS preprocessor as embedded Haskell. Description: Clay is a CSS preprocessor like LESS and Sass, but implemented as an embedded@@ -11,13 +11,9 @@ . The API documentation can be found in the top level module "Clay". .- > 0.3 -> 0.4- > - Added dynamic presentation. (thanks to chrisdone)- > - Float now has its own value, don't incorrectly share side. (thanks to chrisdone)- > - Added nil size constructor.- > - Slightly improved the gradient syntax.- > - Expose the Propery module by default.- > - Introduced shared 'all' value.+ > 0.4 -> 0.5+ > - Generalized the borderRadius function.+ > - Fixed some small issues in Dynamic. Author: Sebastiaan Visser Maintainer: Sebastiaan Visser <code@fvisser.nl>
src/Clay/Border.hs view
@@ -122,8 +122,8 @@ ------------------------------------------------------------------------------- -borderRadius :: Size a -> Css-borderRadius = key "border-radius"+borderRadius :: Size a -> Size a -> Size a -> Size a -> Css+borderRadius a b c d = key "border-radius" (a ! b ! c ! d) borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadius :: Size a -> Size a -> Css
src/Clay/Dynamic.hs view
@@ -12,16 +12,24 @@ module Clay.Dynamic ( -- * User input- userInput, UserInput, inputEnabled, inputDisabled+ UserInput+, userInput+, inputEnabled, inputDisabled -- * User modifiability-, userModify, UserModify, readOnly, readWrite, writeOnly+, UserModify+, userModify+, readOnly, readWrite, writeOnly -- * User selection-, userSelect, UserSelect, selectText, selectToggle, selectElement, selectElements+, UserSelect+, userSelect+, selectText, selectToggle, selectElement, selectElements -- * User focus-, userFocus, UserFocus, selectBefore, selectAfter, selectSame, selectMenu+, UserFocus+, userFocus+, selectAll, selectBefore, selectAfter, selectSame, selectMenu ) where @@ -62,7 +70,7 @@ -- | Selection mode. newtype UserModify = UserModify Value- deriving (Val, Inherit, None)+ deriving (Val, Inherit) -- | Selection mode. @@ -97,7 +105,7 @@ -------------------------------------------------------------------------------- -- Focus selection behavior of the contents of an element: the 'user-focus' property --- | Content focusion granularity.+-- | Content focusing granularity. userFocus :: UserFocus -> Css userFocus = prefixed (browsers <> "user-focus")@@ -105,12 +113,13 @@ -- | Focus behaviour. newtype UserFocus = UserFocus Value- deriving (Val, Inherit, None, Normal, Other, All)+ deriving (Val, Inherit, None, Normal, Auto) --- | Focusion mode.+-- | Focus mode. -selectBefore, selectAfter, selectSame, selectMenu :: UserFocus+selectAll, selectBefore, selectAfter, selectSame, selectMenu :: UserFocus +selectAll = UserFocus "select-all" selectBefore = UserFocus "select-before" selectAfter = UserFocus "select-after" selectSame = UserFocus "select-same"