Authored by xuqi

category height

... ... @@ -15,6 +15,18 @@ var $curContent = $contents.not('.hide');
var navHammer, ccHammer;
//初始化container高度
(function() {
var $header = $('.yoho-header'),
$search = $('#search-input');
var h = $(window).height() - $header.outerHeight() - $search.outerHeight() - $nav.outerHeight();
$categoryContainer.css('min-height', h);
$contents.height(h);
}());
$('#search-input').focus(function() {
$(this).blur();
});
... ...
... ... @@ -68,15 +68,18 @@
}
}
.content.hide {
display: none;
.content {
background: #f8f8f8;
&.hide {
display: none;
}
}
.primary-level {
float: left;
box-sizing: border-box;
width: 40%;
background: #f8f8f8;
> li {
height: 69rem / $pxConvertRem;
... ... @@ -95,6 +98,8 @@
padding-left: 20rem / $pxConvertRem;
background: #fff;
width: 60%;
height: 100%;
overflow: auto;
}
.sub-level {
... ...