Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tsinghua
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zhefu Li
Tsinghua
Commits
3d5e7555
Commit
3d5e7555
authored
5 months ago
by
HouTeng Chan
Browse files
Options
Downloads
Patches
Plain Diff
Update file menu.html
parent
b470952e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wiki/menu.html
+5
-8
5 additions, 8 deletions
wiki/menu.html
with
5 additions
and
8 deletions
wiki/menu.html
+
5
−
8
View file @
3d5e7555
...
...
@@ -108,18 +108,18 @@
}
.hamburger
{
display
:
block
;
/* 显示汉堡菜单 */
display
:
block
;
}
.my-navbar
{
flex-direction
:
column
;
align-items
:
flex-start
;
display
:
none
;
/* 默认隐藏导航菜单 */
display
:
none
;
width
:
100%
;
}
.my-navbar.show-menu
{
display
:
flex
;
/* 显示导航菜单 */
display
:
flex
;
}
.my-navbar
>
li
{
...
...
@@ -134,7 +134,7 @@
.my-navbar
>
li
>
ul
.son
{
position
:
static
;
display
:
none
;
/* 默认隐藏子菜单 */
display
:
none
;
width
:
100%
;
opacity
:
1
;
box-shadow
:
none
;
...
...
@@ -144,7 +144,7 @@
}
.my-navbar
>
li
.show
>
ul
.son
{
display
:
block
;
/* 显示子菜单 */
display
:
block
;
}
.son
li
a
{
...
...
@@ -248,13 +248,10 @@
}
});
});
// 监听窗口大小变化,重置导航菜单状态
window
.
addEventListener
(
'
resize
'
,
function
()
{
var
navbar
=
document
.
getElementById
(
'
my-navbar
'
);
if
(
window
.
innerWidth
>
768
){
navbar
.
classList
.
remove
(
'
show-menu
'
);
// 移除所有菜单项的 'show' 类
navItems
.
forEach
(
function
(
item
){
item
.
classList
.
remove
(
'
show
'
);
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment