Skip to content

Commit 45d141b

Browse files
committed
取消logo滚动
1 parent 503ea6a commit 45d141b

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/components/Layout/Navbar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
color: #fff;
3232
&:hover{
3333
background-color: #d73925;
34-
border-bottom: 2px solid #fff;
34+
border-bottom-color: #fff;
3535
}
3636
}
3737
.el-menu-item{
@@ -45,7 +45,7 @@
4545
}
4646
}
4747
.el-menu-item.is-active{
48-
border-bottom: 2px solid #fff;
48+
background-color: #d73925;
4949
}
5050
.el-menu{
5151
background-color: #dd4b39;

src/components/Layout/Sidebar.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
2+
<div>
3+
<div class="layout-logo-left">CoreCMF</div>
24
<el-menu default-active="1-4-1" theme="dark" class="sidebar-container">
3-
<div class="layout-logo-left">CoreCMF</div>
45
<el-submenu index="1">
56
<template slot="title">导航一</template>
67
<el-menu-item-group title="分组一">
@@ -46,6 +47,7 @@
4647
<el-menu-item index="2">导航二</el-menu-item>
4748
<el-menu-item index="3">导航三</el-menu-item>
4849
</el-menu>
50+
</div>
4951
</template>
5052
<script>
5153
export default {
@@ -67,9 +69,17 @@
6769
position: fixed;
6870
width:200px;
6971
min-height: 100%;
70-
top: 0;
72+
top: 50px;
7173
bottom:0;
7274
overflow-x: hidden;
7375
@include scrollBar;
7476
}
77+
.el-submenu__title {
78+
background-color: #d73925;
79+
}
80+
.el-submenu {
81+
82+
// background-color: #d73925;
83+
border-right-color: #dd4b39;
84+
}
7585
</style>

0 commit comments

Comments
 (0)