diff --git a/hledger-web/.hledger/web/static/hledger.js b/hledger-web/.hledger/web/static/hledger.js index a3dce01a8..653bef58f 100644 --- a/hledger-web/.hledger/web/static/hledger.js +++ b/hledger-web/.hledger/web/static/hledger.js @@ -9,8 +9,8 @@ $(document).ready(function() { if ($.url.param('accounts')=='0') $('#accounts').hide(); /* set up sidebar account mouse-over handlers */ - $('.balancereport td.account').mouseenter(function(){ $(this).addClass('mouseover'); }); - $('.balancereport td.account').mouseleave(function(){ $(this).removeClass('mouseover'); }); + $('.balancereport td').mouseenter(function(){ $(this).addClass('mouseover'); }); + $('.balancereport td').mouseleave(function(){ $(this).removeClass('mouseover'); }); /* set up various show/hide toggles */ $('#search-help-link').click(function() { $('#search-help').slideToggle('fast'); event.preventDefault(); }); diff --git a/hledger-web/.hledger/web/static/style.css b/hledger-web/.hledger/web/static/style.css index 87f3b942b..3916a8331 100644 --- a/hledger-web/.hledger/web/static/style.css +++ b/hledger-web/.hledger/web/static/style.css @@ -23,14 +23,18 @@ body { backgroun .negative { color:#800; } .help { } -.balancereport .inacct { background-color:#ddd; font-weight:bold; } -.notinacct, .notinacct :link, .notinacct :visited, .notinacct .negative { /*color:#aaa;*/ } +.balancereport .inacct { /*background-color:#ddd;*/ font-weight:bold; } +.notinacct, .notinacct :link, .notinacct :visited, .notinacct .negative { color:#aaa; } .balancereport .numpostings { padding-left:1em; color:#aaa; } -.balancereport .accountextralinks { visibility:hidden; } +.balancereport .hoverlinks { visibility:hidden; } +.balancereport td.add.mouseover { background-color:rgba(208,208,208,0.5); } +.balancereport td.journal.mouseover { background-color:rgba(208,208,208,0.5); } +.balancereport td.journal.mouseover .hoverlinks { visibility:visible; } +.balancereport .hoverlinks { visibility:hidden; } .balancereport td.account.mouseover { background-color:rgba(208,208,208,0.5); } -.balancereport td.account.mouseover .accountextralinks { visibility:visible; } -.balancereport .accountextralinks { margin-left:0em; font-weight:normal; font-size:smaller; display:inline-block; text-align:right; } -.balancereport .accountextralinks a { margin-left:0.5em; } +.balancereport td.account.mouseover .hoverlinks { visibility:visible; } +.balancereport .hoverlinks { margin-left:0em; font-weight:normal; font-size:smaller; display:inline-block; text-align:right; } +.balancereport .hoverlinks a { margin-left:0.5em; } /*------------------------------------------------------------------------------------------*/ /* 2. font families & sizes */ @@ -120,7 +124,7 @@ tr.firstposting td { } tr.newday td { border-top: 1px solid black; } tr.newmonth td { border-top: 2px solid black; } /* tr.newyear td { border-top: 3px solid black; } */ -#accountsheading { white-space:nowrap; margin-bottom:1em; } +#accountsheading { white-space:nowrap; } #addform input.textinput, #addform .dhx_combo_input, .dhx_combo_list { padding:4px; } diff --git a/hledger-web/.hledger/web/templates/balancereport.hamlet b/hledger-web/.hledger/web/templates/balancereport.hamlet index 414ef4259..f92efd64a 100644 --- a/hledger-web/.hledger/web/templates/balancereport.hamlet +++ b/hledger-web/.hledger/web/templates/balancereport.hamlet @@ -1,12 +1,26 @@