From e2608ad2ce70cd01a28830e39c3ece16f9d46064 Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 17 Jan 2015 14:30:57 +0100 Subject: [PATCH] medium site now looks fine --- Handler/Medium.hs | 6 +-- templates/medium.cassius | 30 +++++++++-- templates/medium.hamlet | 104 ++++++++++++++++++++------------------- 3 files changed, 83 insertions(+), 57 deletions(-) diff --git a/Handler/Medium.hs b/Handler/Medium.hs index 19efcef..916e2fe 100644 --- a/Handler/Medium.hs +++ b/Handler/Medium.hs @@ -33,9 +33,9 @@ getMediumR mediumId = do (commentWidget, enctype) <- generateFormPost $ commentForm userId userSl mediumId Nothing comments <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent ==. Nothing] [Desc CommentTime] replies <- runDB $ selectList [CommentOrigin ==. mediumId, CommentParent !=. Nothing] [Desc CommentTime] - dataWidth <- case mediumWidth medium >= 750 of - True -> return 750 - False -> return $ (mediumWidth medium) + 53 + dataWidth <- case mediumWidth medium >= 850 of + True -> return 850 + False -> return $ (mediumWidth medium) formLayout $ do setTitle $ toHtml ("Eidolon :: Medium " `T.append` (mediumTitle medium)) $(widgetFile "medium") diff --git a/templates/medium.cassius b/templates/medium.cassius index 347a1f9..8895107 100644 --- a/templates/medium.cassius +++ b/templates/medium.cassius @@ -1,15 +1,39 @@ +/*templates/medium.cassius*/ + img position: relative !important max-width: 100% !important - max-height: 28em !important width: auto !important + display: block !important + margin-left: auto !important + margin-right: auto !important .comment + border: 5px solid rgb(255, 255, 255) + padding: 2em 3em background: #d64760 url('/static/css/images/overlay.png') .reply background: #47d65f url('/static/css/images/overlay.png') +.image + width: 100% !important + +#wrapper + overflow: auto !important + +#reel + width: 90% !important + max-height: auto !important + +#reel .item + float: none !important + display: inline-block !important + width: 100% !important + div #main - margin-top: 0 !important - top : 20% !important + margin-top: 60px !important + position: static !important + +#footer + position: static !important diff --git a/templates/medium.hamlet b/templates/medium.hamlet index baab069..7642ee9 100644 --- a/templates/medium.hamlet +++ b/templates/medium.hamlet @@ -1,69 +1,71 @@ -