diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/base.scss | 11 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 10 |
2 files changed, 14 insertions, 7 deletions
diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index 07b89cfe3..38c74fbaf 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -103,8 +103,15 @@ h1 { line-height: 1em; font-weight: normal; margin-bottom: 0.5em; - } - +} +h1#reports_heading span { + display: none; +} +h1#reports_heading a { + display: block; + font-size: 50%; +} + h2 { font-family:'Museo300-display', 'Helvetica', 'Arial', sans-serif; font-size: 1.5em; /*24px*/ diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index c192db8fa..7d9e73aa3 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -35,7 +35,7 @@ function form_category_onchange() { * * elem1: element to check against * elem2: target element - * offest: this will be added (if present) to the final value, useful for height errors + * offset: this will be added (if present) to the final value, useful for height errors */ function heightFix(elem1, elem2, offset){ var h1 = $(elem1).height(), @@ -264,8 +264,8 @@ $(function(){ * Report a problem page */ //desktop - if($('#report-a-problem-sidebar:visible').length > 0){ - heightFix('#report-a-problem-sidebar:visible', '.content', 26); + if ($('#report-a-problem-sidebar').is(':visible')) { + heightFix('#report-a-problem-sidebar', '.content', 26); } //show/hide notes on mobile @@ -302,8 +302,8 @@ $(function(){ * Tabs */ //make initial tab active - $('.tab-nav a:first').addClass('active'); - $('.tab:first').addClass('open'); + $('.tab-nav a').first().addClass('active'); + $('.tab').first().addClass('open'); //hide other tabs $('.tab').not('.open').hide(); |