Commit 578a2c0b authored by baiyaaaaa's avatar baiyaaaaa

update menu docs

parent 5abde26e
This diff is collapsed.
...@@ -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)",
......
...@@ -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);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment