Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
578a2c0b
Commit
578a2c0b
authored
Sep 01, 2016
by
baiyaaaaa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update menu docs
parent
5abde26e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
120 additions
and
290 deletions
+120
-290
examples/docs/menu.md
examples/docs/menu.md
+104
-284
examples/nav.config.json
examples/nav.config.json
+6
-0
packages/theme-default/src/menu.css
packages/theme-default/src/menu.css
+10
-6
No files found.
examples/docs/menu.md
View file @
578a2c0b
This diff is collapsed.
Click to expand it.
examples/nav.config.json
View file @
578a2c0b
...
@@ -199,6 +199,12 @@
...
@@ -199,6 +199,12 @@
{
{
"groupName"
:
"Nav"
,
"groupName"
:
"Nav"
,
"list"
:
[
"list"
:
[
{
"path"
:
"/menu"
,
"name"
:
"导航菜单 (menu)"
,
"title"
:
"NavMenu 导航菜单"
,
"description"
:
"富展现的标签页"
},
{
{
"path"
:
"/tabs"
,
"path"
:
"/tabs"
,
"name"
:
"标签页 (tabs)"
,
"name"
:
"标签页 (tabs)"
,
...
...
packages/theme-default/src/menu.css
View file @
578a2c0b
...
@@ -4,11 +4,14 @@
...
@@ -4,11 +4,14 @@
@component-namespace
el
{
@component-namespace
el
{
@b
menu
{
@b
menu
{
height
:
60px
;
height
:
60px
;
border-radius
:
2px
;
line-height
:
60px
;
line-height
:
60px
;
list-style
:
none
;
list-style
:
none
;
position
:
relative
;
position
:
relative
;
margin
:
0
;
margin
:
0
;
padding-left
:
0
;
padding-left
:
0
;
background-color
:
#fff
;
background-color
:
var
(
--menu-item-fill
);
&
li
{
&
li
{
list-style
:
none
;
list-style
:
none
;
...
@@ -38,6 +41,8 @@
...
@@ -38,6 +41,8 @@
}
}
}
}
@m
dark
{
@m
dark
{
background-color
:
var
(
--dark-menu-item-fill
);
&
.el-menu-item,
&
.el-menu-item,
&
.el-submenu__title
{
&
.el-submenu__title
{
color
:
#c0ccda
;
color
:
#c0ccda
;
...
@@ -81,8 +86,7 @@
...
@@ -81,8 +86,7 @@
color
:
var
(
--menu-item-color
);
color
:
var
(
--menu-item-color
);
float
:
left
;
float
:
left
;
height
:
100%
;
height
:
100%
;
padding
:
0
10px
;
padding
:
0
20px
;
margin
:
0
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
transition
:
var
(
--md-fade-transition
);
transition
:
var
(
--md-fade-transition
);
...
@@ -133,14 +137,14 @@
...
@@ -133,14 +137,14 @@
margin
:
0
;
margin
:
0
;
top
:
50%
;
top
:
50%
;
right
:
20px
;
right
:
20px
;
transform
:
rotateZ
(
180deg
)
translateY
(
-50%
);
margin-top
:
-8px
;
transform
:
rotateZ
(
180deg
);
font-size
:
12px
;
font-size
:
12px
;
transition
:
transform
.3s
ease-in-out
;
transition
:
transform
.3s
;
transform-origin
:
center
0
;
}
}
@when
opened
{
@when
opened
{
&
.el-submenu__icon-arrow
{
&
.el-submenu__icon-arrow
{
transform
:
translateY
(
-50%
);
transform
:
rotateZ
(
0
);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment