Skip to content

Commit

Permalink
Fixes #1598: added IE9 targeted fixes to .tabs-style-2/3
Browse files Browse the repository at this point in the history
  • Loading branch information
patheard committed Mar 22, 2013
1 parent f901da6 commit 77b4504
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/pe-ap.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@
pe.urlhash = pe.urlpage.hash;
pe.urlquery = pe.urlpage.params;

// Identify whether or not the device supports JavaScript and has a touchscreen
$html.removeClass('no-js').addClass(wet_boew_theme !== null ? wet_boew_theme.theme : '').addClass(pe.touchscreen ? 'touchscreen' : '');
// Identify whether or not the device supports JavaScript, has a touchscreen and is a modern version of IE
$html.removeClass('no-js').addClass(wet_boew_theme !== null ? wet_boew_theme.theme : '').addClass(pe.touchscreen ? 'touchscreen' : '').addClass(pe.ie > 8 ? 'ie' + parseInt(pe.ie, 10) : '');

hlinks = pe.bodydiv.find('#wb-main a, #wb-skip a').filter(function () {
return this.href.indexOf('#') !== -1;
Expand Down
21 changes: 21 additions & 0 deletions src/js/sass/includes/_tabbedinterface.scss
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,25 @@
.tabs-panel > div {
display: block;
}
}

.ie9 {
.tabs-style-2 {
.tabs {
li {
a {
display: inline;
}
}
}
}
.tabs-style-3 {
.tabs {
li {
&:not(.tabs-toggle) {
display: inline;
}
}
}
}
}

0 comments on commit 77b4504

Please sign in to comment.