Skip to content

Instantly share code, notes, and snippets.

@okdewit
Last active August 31, 2016 09:05
Show Gist options
  • Save okdewit/5c9e02def4d6b4e8793d35bc7ca74165 to your computer and use it in GitHub Desktop.
Save okdewit/5c9e02def4d6b4e8793d35bc7ca74165 to your computer and use it in GitHub Desktop.
#menu
^{transition "all 0.2s ease-out"}
module Handler.Mainhandler where
import Import
import Service.Theme
import Service.Mixin
getMainR :: Handler Html
getMainR = do
defaultLayout $ do
setTitle "Main page"
$(widgetFile "main")
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