aboutsummaryrefslogtreecommitdiff
path: root/css/Style.hs
diff options
context:
space:
mode:
authorJoris2019-05-01 15:52:32 +0200
committerJoris2019-05-01 17:11:02 +0200
commit23f04635cc26e1b0553088f28553f518488a9fc8 (patch)
tree97037643bab24564046ce4aba90481e3b92a15d3 /css/Style.hs
parent0fe906ae7453aa684e998bbcc7a78b62d84f0206 (diff)
Setup personal page with Hakyll
Diffstat (limited to 'css/Style.hs')
-rw-r--r--css/Style.hs58
1 files changed, 58 insertions, 0 deletions
diff --git a/css/Style.hs b/css/Style.hs
new file mode 100644
index 0000000..f53ca1e
--- /dev/null
+++ b/css/Style.hs
@@ -0,0 +1,58 @@
+{-# LANGUAGE OverloadedStrings #-}
+
+import Clay
+import qualified Data.Text.Lazy.IO as T
+
+import qualified Body
+import qualified Color
+import qualified Header
+import qualified IconLink
+import qualified Media
+import qualified Project
+import qualified Resume
+import qualified Section
+import qualified Skills
+
+main :: IO ()
+main = T.putStrLn . renderWith compact [] $ do
+
+ appearKeyframes
+
+ body ? do
+ overflowX hidden
+ color Color.black
+ margin (px 0) (px 0) (px 40) (px 0)
+ Media.mobile $ fontSize (px 16)
+ Media.tabletDesktop $ fontSize (px 18)
+
+ ".Main__Container" ? do
+ animationName "appear"
+ animationDuration (sec 0.2)
+ animationTimingFunction easeIn
+ animationIterationCount (iterationCount 1.0)
+
+ svg ? do
+ width inherit
+ height inherit
+
+ ul ? do
+ listStyleType none
+ paddingLeft (px 0)
+
+ Body.style
+ Header.style
+ IconLink.style
+ Project.style
+ Resume.style
+ Section.style
+ Skills.style
+
+appearKeyframes :: Css
+appearKeyframes = keyframes
+ "appear"
+ [ (0, do
+ "transform" -: "translateX(10px)"
+ opacity 0
+ )
+ , (100, "transform" -: "translateX(0px)")
+ ]