From e3d5fdde66ecd87c115309da73ae14f53f93e5b3 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 3 Dec 2012 23:53:26 +0000 Subject: [PATCH] web: small style cleanup --- hledger-web/Handler/Common.hs | 5 +++-- hledger-web/static/style.css | 15 ++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/hledger-web/Handler/Common.hs b/hledger-web/Handler/Common.hs index daae666d3..faf3caaaf 100644 --- a/hledger-web/Handler/Common.hs +++ b/hledger-web/Handler/Common.hs @@ -1,4 +1,5 @@ -- | Common page components and rendering helpers. +-- For global page layout, see Application.hs. module Handler.Common where @@ -362,7 +363,7 @@ accountUrl r a = (r, [("q", pack $ accountQuery a)]) -- | Render an "EntriesReport" as html for the journal entries view. entriesReportAsHtml :: WebOpts -> ViewData -> EntriesReport -> HtmlUrl AppRoute entriesReportAsHtml _ vd items = [hamlet| - + $forall i <- numbered items ^{itemAsHtml vd i} |] @@ -380,7 +381,7 @@ entriesReportAsHtml _ vd items = [hamlet| -- | Render a "TransactionsReport" as html for the formatted journal view. journalTransactionsReportAsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute journalTransactionsReportAsHtml _ vd (_,items) = [hamlet| - + Date Description diff --git a/hledger-web/static/style.css b/hledger-web/static/style.css index ddb202b20..7e672f4ec 100644 --- a/hledger-web/static/style.css +++ b/hledger-web/static/style.css @@ -6,7 +6,7 @@ /* green */ body { background-color:white; color:black; } .registerreport .odd { background-color:#ded; } -.journalreport .odd { background-color:#eee; } +.transactionsreport .odd { background-color:#eee; } .filtering { background-color:#ded; } /* #main { border-color:#ded; } see below */ /* .journalreport td { border-color:thin solid #ded; } see below */ @@ -52,7 +52,8 @@ input.textinput, .dhx_combo_input, .dhx_combo_list { font-size:small; } .togglelink { font-size:smaller; white-space:nowrap } .help { font-size:smaller; } .form { font-size:small; } -.journalreport { font-size:small; } +.transactionsreport { font-size:small; } +.entriesreport { font-size:small; } .balancereport { font-size:small; } .registerreport { font-size:small; } .showall { font-size:small; } @@ -103,9 +104,13 @@ body { margin:0; } .amount, .balance { width:2em; } /* minimise width */ .positive { } -table.journalreport { border-spacing: 0; } -.journalreport td { } -.journalreport pre { margin-top:0; } +/* table.transactionsreport { border-spacing: 0; } */ +/* .transactionsreport td { } */ +/* .transactionsreport pre { margin-top:0; } */ + +/* table.entriesreport { border-spacing: 0; } */ +/* .entriesreport td { } */ +/* .entriesreport pre { margin-top:0; } */ .balancereport { border-spacing:0; } .balancereport tr { vertical-align:bottom; border-spacing:0; }