Last active
August 31, 2016 09:05
-
-
Save okdewit/5c9e02def4d6b4e8793d35bc7ca74165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#menu | |
^{transition "all 0.2s ease-out"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Handler.Mainhandler where | |
import Import | |
import Service.Theme | |
import Service.Mixin | |
getMainR :: Handler Html | |
getMainR = do | |
defaultLayout $ do | |
setTitle "Main page" | |
$(widgetFile "main") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Service.Mixin where | |
{-# LANGUAGE QuasiQuotes #-} | |
import Text.Cassius | |
import Data.Text | |
transition :: Text -> Mixin | |
transition val = | |
[cassiusMixin| | |
-webkit-transition: #{val} | |
-moz-transition: #{val} | |
-ms-transition: #{val} | |
-o-transition: #{val} | |
transition: #{val} | |
|] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment