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
梁志锋
9 years ago
Commit
669e03634f7377d418300540620bb8b686ddb8a3
1 parent
2dfca00f
提交侧边栏代码
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
25 deletions
static/js/home/home.js
static/sass/home/_side-nav.scss
static/js/home/home.js
View file @
669e036
...
...
@@ -29,6 +29,11 @@ $('.nav-btn').on('touchstart', function(event) {
$overlay
.
show
().
css
(
'opacity'
,
0.3
);
$sideNav
.
addClass
(
'on'
);
openSideNav
=
true
;
//设置boy高宽,页面不能上下滑动
$
(
'body'
).
css
({
overflow
:
'hidden'
});
return
false
;
});
...
...
@@ -39,6 +44,9 @@ function hideSideBar() {
$
(
'.overlay'
).
hide
();
$
(
'.sub-nav'
).
removeClass
(
'show'
);
$sideNav
.
removeClass
(
'on'
);
$
(
'body'
).
css
({
overflow
:
'auto'
});
}
}
...
...
@@ -60,10 +68,6 @@ $sideNav.on('touchstart', 'li', function(e) {
}
});
$sideNav
.
on
(
'touchmove'
,
function
(
e
)
{
return
false
;
});
//返回一级导航,收起二级导航
$subNav
.
each
(
function
()
{
$
(
this
).
find
(
'li'
).
eq
(
0
).
on
(
'touchstart'
,
function
()
{
...
...
static/sass/home/_side-nav.scss
View file @
669e036
...
...
@@ -152,18 +152,6 @@
}
}
// li.new {
// margin: (19rem / $pxConvertRem) 0 0;
// border-top: 1px solid #e0e0e0;
//
// a {}
//
// i {
// background: image-url("side-nav/new.png") no-repeat left center;
// background-size: 100% 100%;
// }
// }
li
.guang
,
li
.trendfinder
{
.nav-icon
{
background
:
image-url
(
"side-nav/guang.png"
)
no-repeat
left
center
;
...
...
@@ -208,15 +196,6 @@
z-index
:
2
;
}
/* img{
position: absolute;
max-width: 50rem / $pxConvertRem;
max-height: 50rem / $pxConvertRem;
left: 32rem / $pxConvertRem;
top: 50%;
margin-top: -25rem / $pxConvertRem;
border: none;
} */
.nav-point
{
position
:
absolute
;
left
:
0rem
/
$pxConvertRem
;
...
...
Please
register
or
login
to post a comment