diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-03-10 01:39:05 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-03-10 01:39:05 +0000 |
commit | 342c091c70aae5c2051af49bf4963e49d632eef4 (patch) | |
tree | 00fedc0e70fe15d066eb38fa69cc49c76b8ba2c3 | |
parent | 9cc72424e17293fc8bd6226b721ac4e66dcc185e (diff) |
Span mobile table heading across all rows.
-rw-r--r-- | web/cobrands/fixmystreet/base.scss | 8 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index bf433bdbf..05ff23ac9 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -1268,16 +1268,16 @@ table.nicetable { } } tr { - &.gone { - color: #666666; - background-color: #cccccc; - } &.a { background:#f6f6f6; } &:nth-child(even) { background:#f6f6f6; } + &.gone { + color: #666666; + background-color: #cccccc; + } &:hover { background:#FFF5CC; cursor:pointer; diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 231f09130..af1915621 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -355,7 +355,7 @@ $(function(){ */ $('.mobile .nicetable th.title').remove(); $('.mobile .nicetable td.title').each(function(i){ - $(this).insertBefore($(this).parent('tr')).wrap('<tr class="heading" />'); + $(this).attr('colspan', 5).insertBefore($(this).parent('tr')).wrap('<tr class="heading" />'); }); // $('.mobile .nicetable tr.heading > td.title').css({'min-width':'300px'}); // $('.mobile .nicetable tr > td.data').css({'max-width':'12%'}); |