Permalink
Browse files

Merge pull request #975 from daftspunk/master

Adds mobile to one up to block grid, top bar touchable area on iPad improvements.
  • Loading branch information...
2 parents 0860fc6 + fe31ae6 commit 278a2e52594ae01f8cc038b84b808257528502b9 @mrsweaters mrsweaters committed Oct 2, 2012
@@ -182,6 +182,8 @@ that IE7/8 do not support :nth-child.
.block-grid {
&>li { clear: none !important; }
+ &.mobile-one-up>li { width: 100%; }
+
&.mobile-two-up>li { width: 50%;
&:nth-child(2n+1) { clear: both; }
}
@@ -47,8 +47,10 @@
// Show the Dropdown Levels on Click
$('.top-bar .has-dropdown>a').live('click.fndtn', function (e) {
- if (methods.breakpoint()) {
+ if (Modernizr.touch || methods.breakpoint())
e.preventDefault();
+
+ if (methods.breakpoint()) {
var $this = $(this),
$selectedLi = $this.closest('li'),
$nextLevelUl = $selectedLi.children('ul'),

0 comments on commit 278a2e5

Please sign in to comment.