Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
e3a678a592fe29266de15487f22a6b4d8e8be2bf
1 parent
ed5576a7
category height
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
static/js/category/index.js
static/sass/category/_index.scss
static/js/category/index.js
View file @
e3a678a
...
...
@@ -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
();
});
...
...
static/sass/category/_index.scss
View file @
e3a678a
...
...
@@ -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
{
...
...
Please
register
or
login
to post a comment