web: small style cleanup
This commit is contained in:
		
							parent
							
								
									bd325e1061
								
							
						
					
					
						commit
						e3d5fdde66
					
				@ -1,4 +1,5 @@
 | 
				
			|||||||
-- | Common page components and rendering helpers.
 | 
					-- | Common page components and rendering helpers.
 | 
				
			||||||
 | 
					-- For global page layout, see Application.hs.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module Handler.Common where
 | 
					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.
 | 
					-- | Render an "EntriesReport" as html for the journal entries view.
 | 
				
			||||||
entriesReportAsHtml :: WebOpts -> ViewData -> EntriesReport -> HtmlUrl AppRoute
 | 
					entriesReportAsHtml :: WebOpts -> ViewData -> EntriesReport -> HtmlUrl AppRoute
 | 
				
			||||||
entriesReportAsHtml _ vd items = [hamlet|
 | 
					entriesReportAsHtml _ vd items = [hamlet|
 | 
				
			||||||
<table.journalreport>
 | 
					<table.entriesreport>
 | 
				
			||||||
 $forall i <- numbered items
 | 
					 $forall i <- numbered items
 | 
				
			||||||
  ^{itemAsHtml vd i}
 | 
					  ^{itemAsHtml vd i}
 | 
				
			||||||
 |]
 | 
					 |]
 | 
				
			||||||
@ -380,7 +381,7 @@ entriesReportAsHtml _ vd items = [hamlet|
 | 
				
			|||||||
-- | Render a "TransactionsReport" as html for the formatted journal view.
 | 
					-- | Render a "TransactionsReport" as html for the formatted journal view.
 | 
				
			||||||
journalTransactionsReportAsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute
 | 
					journalTransactionsReportAsHtml :: WebOpts -> ViewData -> TransactionsReport -> HtmlUrl AppRoute
 | 
				
			||||||
journalTransactionsReportAsHtml _ vd (_,items) = [hamlet|
 | 
					journalTransactionsReportAsHtml _ vd (_,items) = [hamlet|
 | 
				
			||||||
<table.journalreport>
 | 
					<table.transactionsreport>
 | 
				
			||||||
 <tr.headings>
 | 
					 <tr.headings>
 | 
				
			||||||
  <th.date align=left>Date
 | 
					  <th.date align=left>Date
 | 
				
			||||||
  <th.description align=left>Description
 | 
					  <th.description align=left>Description
 | 
				
			||||||
 | 
				
			|||||||
@ -6,7 +6,7 @@
 | 
				
			|||||||
/* green */
 | 
					/* green */
 | 
				
			||||||
body                                                                 { background-color:white; color:black; }
 | 
					body                                                                 { background-color:white; color:black; }
 | 
				
			||||||
.registerreport .odd                                                 { background-color:#ded; }
 | 
					.registerreport .odd                                                 { background-color:#ded; }
 | 
				
			||||||
.journalreport .odd                                                 { background-color:#eee; }
 | 
					.transactionsreport .odd                                             { background-color:#eee; }
 | 
				
			||||||
.filtering                                                           { background-color:#ded; }
 | 
					.filtering                                                           { background-color:#ded; }
 | 
				
			||||||
/* #main                                                                { border-color:#ded; } see below */
 | 
					/* #main                                                                { border-color:#ded; } see below */
 | 
				
			||||||
/* .journalreport td                                                    { border-color:thin solid #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 }
 | 
					.togglelink                                        { font-size:smaller; white-space:nowrap }
 | 
				
			||||||
.help                                              { font-size:smaller; }
 | 
					.help                                              { font-size:smaller; }
 | 
				
			||||||
.form                                              { font-size:small; }
 | 
					.form                                              { font-size:small; }
 | 
				
			||||||
.journalreport                                     { font-size:small; }
 | 
					.transactionsreport                                { font-size:small; }
 | 
				
			||||||
 | 
					.entriesreport                                     { font-size:small; }
 | 
				
			||||||
.balancereport                                     { font-size:small; }
 | 
					.balancereport                                     { font-size:small; }
 | 
				
			||||||
.registerreport                                    { font-size:small; }
 | 
					.registerreport                                    { font-size:small; }
 | 
				
			||||||
.showall                                           { font-size:small; }
 | 
					.showall                                           { font-size:small; }
 | 
				
			||||||
@ -103,9 +104,13 @@ body                        { margin:0; }
 | 
				
			|||||||
.amount, .balance { width:2em; }  /* minimise width */
 | 
					.amount, .balance { width:2em; }  /* minimise width */
 | 
				
			||||||
.positive                   { }
 | 
					.positive                   { }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
table.journalreport         { border-spacing: 0; }
 | 
					/* table.transactionsreport         { border-spacing: 0; } */
 | 
				
			||||||
.journalreport td           {  }
 | 
					/* .transactionsreport td           {  } */
 | 
				
			||||||
.journalreport pre          { margin-top:0; }
 | 
					/* .transactionsreport pre          { margin-top:0; } */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/* table.entriesreport         { border-spacing: 0; } */
 | 
				
			||||||
 | 
					/* .entriesreport td           {  } */
 | 
				
			||||||
 | 
					/* .entriesreport pre          { margin-top:0; } */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.balancereport              { border-spacing:0; }
 | 
					.balancereport              { border-spacing:0; }
 | 
				
			||||||
.balancereport tr           { vertical-align:bottom; border-spacing:0; }
 | 
					.balancereport tr           { vertical-align:bottom; border-spacing:0; }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user