diff options
author | Ben Sima <ben@bsima.me> | 2020-05-06 09:27:42 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-05-06 09:27:42 -0700 |
commit | 4516330d7bdf1819b7d22bbd9bb2b101cb53f97f (patch) | |
tree | ecff456d8b56503f1eba79bb6ec42ef040b9ec22 /Biz | |
parent | c55c4d1814a0af427dd170065432c3c5c62b9669 (diff) |
Add the initial library of styles
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Look.hs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Biz/Look.hs b/Biz/Look.hs new file mode 100644 index 0000000..4315994 --- /dev/null +++ b/Biz/Look.hs @@ -0,0 +1,40 @@ +{-# LANGUAGE OverloadedLists #-} +{-# LANGUAGE OverloadedStrings #-} + +-- | Library of styles +-- +-- https://leerob.io/blog/how-stripe-designs-beautiful-websites +module Biz.Look + ( fontstack, + hoverButton, + ) +where + +import Clay + +fontstack :: Css +fontstack = do + -- i like adobe source pro, maybe use that instead of camphor + fontFamily ["Camphor", "Open Sans", "Segoe UI"] [sansSerif] + textRendering optimizeLegibility + +-- TODO: fontSmoothing is not yet implemented in clay +-- -webkit-font-smoothing: antialiased +-- -moz-osx-font-smoothing: grayscale + +hoverButton :: Css +hoverButton = do + button # hover ? do + color "#7795f8" + transform $ translateY $ px (-1) + boxShadow + [ bsColor (rgba 50 50 93 0.1) $ + shadow + (px 7) + (px 14), + bsColor + (rgba 0 0 0 0.08) + $ shadow + (px 3) + (px 6) + ] |