web: small style cleanup

This commit is contained in:
Simon Michael 2012-12-03 23:53:26 +00:00
parent bd325e1061
commit e3d5fdde66
2 changed files with 13 additions and 7 deletions

View File

@ -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|
<table.journalreport>
<table.entriesreport>
$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|
<table.journalreport>
<table.transactionsreport>
<tr.headings>
<th.date align=left>Date
<th.description align=left>Description

View File

@ -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; }