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/Body.hs | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 css/Body.hs (limited to 'css/Body.hs') diff --git a/css/Body.hs b/css/Body.hs new file mode 100644 index 0000000..74aa969 --- /dev/null +++ b/css/Body.hs @@ -0,0 +1,35 @@ +{-# LANGUAGE OverloadedStrings #-} + +module Body + ( style + ) where + +import Clay hiding (style) +import Prelude hiding ((**)) + +import qualified Color +import qualified Link +import qualified Media +import qualified Size + +style :: Css +style = do + + ".Body__Container" ** p ? do + lineHeight (px 28) + + ".Body__Container" ** ul ? do + paddingLeft (px 0) + Media.desktop $ margin (px 20) (px 0) (px 20) (px 30) + Media.tablet $ margin (px 15) (px 0) (px 15) (px 20) + Media.mobile $ marginBottom Size.listItemSep + + ".Body__Container" ** li ? do + Size.lineHeight + before & do + content (stringContent "•") + color Color.red + display inlineBlock + marginRight (px 10) + + Link.style (".Body__Container" ** a) -- cgit v1.2.3