From 23f04635cc26e1b0553088f28553f518488a9fc8 Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 1 May 2019 15:52:32 +0200 Subject: Setup personal page with Hakyll --- css/Size.hs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 css/Size.hs (limited to 'css/Size.hs') diff --git a/css/Size.hs b/css/Size.hs new file mode 100644 index 0000000..1fc097b --- /dev/null +++ b/css/Size.hs @@ -0,0 +1,24 @@ +module Size + ( lineHeight + , listItemSep + , tabletMarginBottom + ) where + +import Clay hiding (lineHeight) +import qualified Clay + +import qualified Media + +lineHeight :: Css +lineHeight = do + Media.desktop $ Clay.lineHeight (px 40) + Media.tablet $ Clay.lineHeight (px 35) + Media.mobile $ Clay.lineHeight (px 30) + +listItemSep :: Size LengthUnit +listItemSep = + px 8 + +tabletMarginBottom :: Css +tabletMarginBottom = + Media.tablet $ marginBottom (px 15) -- cgit v1.2.3