Updated CSS
This commit is contained in:
parent
c55157beed
commit
f2aaac4c0f
2 changed files with 15 additions and 2 deletions
|
@ -3,10 +3,23 @@ module Aggreact.Css where
|
|||
import Clay
|
||||
|
||||
genCss :: Css
|
||||
genCss =
|
||||
genCss = do
|
||||
body ? do
|
||||
fontFamily ["Menlo"] [monospace]
|
||||
fontSize (px 14)
|
||||
maxWidth (px 800)
|
||||
lineHeight (em 1.5)
|
||||
margin (px 0) auto (px 0) auto
|
||||
borderLeft solid (em 1) black
|
||||
paddingLeft (em 1)
|
||||
label ?
|
||||
minWidth (px 100)
|
||||
pre ? do
|
||||
marginTop (px 0)
|
||||
marginBottom (px 0)
|
||||
li ? do
|
||||
borderLeft solid (px 1) black
|
||||
paddingLeft (em 1)
|
||||
".metas" ? do
|
||||
borderTop solid (px 1) black
|
||||
fontSize (px 11)
|
||||
|
|
|
@ -16,7 +16,7 @@ import Servant.API (Accept (..), MimeRender (..))
|
|||
data CSS deriving Typeable
|
||||
|
||||
instance Accept CSS where
|
||||
contentType _ = "test" M.// "css" M./: ("charset","utf-8")
|
||||
contentType _ = "text" M.// "css" M./: ("charset","utf-8")
|
||||
|
||||
instance MimeRender CSS Css where
|
||||
mimeRender _ = encodeUtf8 . renderWith compact []
|
||||
|
|
Loading…
Reference in a new issue