diff options
Diffstat (limited to 'src/server/Design/Helper.hs')
-rw-r--r-- | src/server/Design/Helper.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/Design/Helper.hs b/src/server/Design/Helper.hs index 53839c1..6e2fde3 100644 --- a/src/server/Design/Helper.hs +++ b/src/server/Design/Helper.hs @@ -6,6 +6,7 @@ module Design.Helper , defaultInput , centeredWithMargin , expandBlock + , verticalCentering ) where import Clay @@ -60,3 +61,9 @@ expandBlock headerBackground headerColor headerHeight = do position relative paddingLeft blockPadding paddingRight (px 55) + +verticalCentering :: Css +verticalCentering = do + position absolute + top (pct 50) + "transform" -: "translateY(-50%)" |